diff options
Diffstat (limited to 'third_party/srtp/crypto/include/crypto_kernel.h')
-rw-r--r-- | third_party/srtp/crypto/include/crypto_kernel.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/third_party/srtp/crypto/include/crypto_kernel.h b/third_party/srtp/crypto/include/crypto_kernel.h index b8cd9be1..caccfa03 100644 --- a/third_party/srtp/crypto/include/crypto_kernel.h +++ b/third_party/srtp/crypto/include/crypto_kernel.h @@ -182,6 +182,28 @@ crypto_kernel_load_cipher_type(cipher_type_t *ct, cipher_type_id_t id); err_status_t crypto_kernel_load_auth_type(auth_type_t *ct, auth_type_id_t id); +/* + * crypto_kernel_replace_cipher_type(ct, id) + * + * replaces the crypto kernel's existing cipher for the cipher_type id + * with a new one passed in externally. The new cipher must pass all the + * existing cipher_type's self tests as well as its own. + */ +err_status_t +crypto_kernel_replace_cipher_type(cipher_type_t *ct, cipher_type_id_t id); + + +/* + * crypto_kernel_replace_auth_type(ct, id) + * + * replaces the crypto kernel's existing cipher for the auth_type id + * with a new one passed in externally. The new auth type must pass all the + * existing auth_type's self tests as well as its own. + */ +err_status_t +crypto_kernel_replace_auth_type(auth_type_t *ct, auth_type_id_t id); + + err_status_t crypto_kernel_load_debug_module(debug_module_t *new_dm); @@ -199,7 +221,8 @@ crypto_kernel_load_debug_module(debug_module_t *new_dm); err_status_t crypto_kernel_alloc_cipher(cipher_type_id_t id, cipher_pointer_t *cp, - int key_len); + int key_len, + int tag_len); /* * crypto_kernel_alloc_auth(id, ap, key_len, tag_len); |