From: Jonathan L. <jon...@us...> - 2010-05-20 23:53:23
|
Update of /cvsroot/srtp/srtp/crypto/include In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv30240/include Modified Files: crypto_kernel.h Log Message: Add crypto_kernel_replace_cipher_type and crypto_kernel_replace_auth_type functions, allowing users to plug-in their own implementations of ciphers and auth types. Index: crypto_kernel.h =================================================================== RCS file: /cvsroot/srtp/srtp/crypto/include/crypto_kernel.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** crypto_kernel.h 12 Jul 2006 00:50:56 -0000 1.4 --- crypto_kernel.h 20 May 2010 23:53:15 -0000 1.5 *************** *** 183,186 **** --- 183,208 ---- 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); |