Skip to content

New API introduced from v2.25

Pablo de Lara edited this page May 1, 2024 · 2 revisions

New API has been added to eventually replace the existing API (which will be marked as deprecated in the next release v2.25), adding parameter checking. The following tables show the old API and the new API for each algorithm:

New API has been added to eventually replace the existing API (which is marked as deprecated), adding parameter checking. The following tables shows the old API and the new API for each algorithm:

AES key expansion:

Old API New API
aes_keyexp_128 isal_aes_keyexp_128
aes_keyexp_192 isal_aes_keyexp_192
aes_keyexp_256 isal_aes_keyexp_256

AES-CBC:

Old API New API
aes_cbc_enc_128 isal_aes_cbc_enc_128
aes_cbc_enc_192 isal_aes_cbc_enc_192
aes_cbc_enc_256 isal_aes_cbc_enc_256
aes_cbc_dec_128 isal_aes_cbc_dec_128
aes_cbc_dec_192 isal_aes_cbc_dec_192
aes_cbc_dec_256 isal_aes_cbc_dec_256
aes_cbc_precomp isal_aes_keyexp_128/192/256

AES-GCM:

Old API New API
aes_gcm_enc_128 isal_aes_gcm_enc_128
aes_gcm_enc_256 isal_aes_gcm_enc_256
aes_gcm_dec_128 isal_aes_gcm_dec_128
aes_gcm_dec_256 isal_aes_gcm_dec_256
aes_gcm_128_pre isal_aes_gcm_pre_128
aes_gcm_256_pre isal_aes_gcm_pre_256
aes_gcm_128_init isal_aes_gcm_init_128
aes_gcm_256_init isal_aes_gcm_init_256
aes_gcm_enc_128_update isal_aes_gcm_enc_128_update
aes_gcm_enc_256_update isal_aes_gcm_enc_256_update
aes_gcm_dec_128_update isal_aes_gcm_dec_128_update
aes_gcm_dec_256_update isal_aes_gcm_dec_256_update
aes_gcm_enc_128_finalize isal_aes_gcm_enc_128_finalize
aes_gcm_enc_256_finalize isal_aes_gcm_enc_256_finalize
aes_gcm_dec_128_finalize isal_aes_gcm_dec_128_finalize
aes_gcm_dec_256_finalize isal_aes_gcm_dec_256_finalize
aes_gcm_enc_128_nt isal_aes_gcm_enc_128_nt
aes_gcm_enc_256_nt isal_aes_gcm_enc_256_nt
aes_gcm_dec_128_nt isal_aes_gcm_dec_128_nt
aes_gcm_dec_256_nt isal_aes_gcm_dec_256_nt
aes_gcm_enc_128_update_nt isal_aes_gcm_enc_128_update_nt
aes_gcm_enc_256_update_nt isal_aes_gcm_enc_256_update_nt
aes_gcm_dec_128_update_nt isal_aes_gcm_dec_128_update_nt
aes_gcm_dec_256_update_nt isal_aes_gcm_dec_256_update_nt

AES-XTS:

Old API New API
XTS_AES_128_enc isal_aes_xts_enc_128
XTS_AES_256_enc isal_aes_xts_enc_256
XTS_AES_128_dec isal_aes_xts_dec_128
XTS_AES_256_dec isal_aes_xts_dec_256
XTS_AES_128_enc_expanded_key isal_aes_xts_enc_128_expanded_key
XTS_AES_256_enc_expanded_key isal_aes_xts_enc_256_expanded_key
XTS_AES_128_dec_expanded_key isal_aes_xts_dec_128_expanded_key
XTS_AES_256_dec_expanded_key isal_aes_xts_dec_256_expanded_key

SHA1:

Old API New API
sha1_ctx_mgr_init isal_sha1_ctx_mgr_init
sha1_ctx_mgr_submit isal_sha1_ctx_mgr_submit
sha1_ctx_mgr_flush isal_sha1_ctx_mgr_flush

SHA256:

Old API New API
sha256_ctx_mgr_init isal_sha256_ctx_mgr_init
sha256_ctx_mgr_submit isal_sha256_ctx_mgr_submit
sha256_ctx_mgr_flush isal_sha256_ctx_mgr_flush

SHA512:

Old API New API
sha512_ctx_mgr_init isal_sha512_ctx_mgr_init
sha512_ctx_mgr_submit isal_sha512_ctx_mgr_submit
sha512_ctx_mgr_flush isal_sha512_ctx_mgr_flush

MD5:

Old API New API
md5_ctx_mgr_init isal_md5_ctx_mgr_init
md5_ctx_mgr_submit isal_md5_ctx_mgr_submit
md5_ctx_mgr_flush isal_md5_ctx_mgr_flush

SM3:

Old API New API
sm3_ctx_mgr_init isal_sm3_ctx_mgr_init
sm3_ctx_mgr_submit isal_sm3_ctx_mgr_submit
sm3_ctx_mgr_flush isal_sm3_ctx_mgr_flush

Multi-hash SHA1:

Old API New API
mh_sha1_init isal_mh_sha1_init
mh_sha1_update isal_mh_sha1_update
mh_sha1_finalize isal_mh_sha1_finalize

Multi-hash SHA256:

Old API New API
mh_sha256_init isal_mh_sha256_init
mh_sha256_update isal_mh_sha256_update
mh_sha256_finalize isal_mh_sha256_finalize

Rolling hash:

Old API New API
rolling_hash2_reset isal_rolling_hash2_reset
rolling_hash2_init isal_rolling_hash2_init
rolling_hash2_run isal_rolling_hash2_run
rolling_hashx_mask_gen isal_rolling_hashx_mask_gen
Clone this wiki locally