Moved keymat key length lookup functions to keymat.c

This commit is contained in:
Martin Willi
2012-03-20 17:30:48 +01:00
parent d4f6686c69
commit 6cd72730bf
3 changed files with 75 additions and 55 deletions
+16
View File
@@ -72,4 +72,20 @@ struct keymat_t {
*/
keymat_t *keymat_create(ike_version_t version, bool initiator);
/**
* Look up the key length of an encryption algorithm.
*
* @param alg algorithm to get key length for
* @return key length in bits
*/
int keymat_get_keylen_encr(encryption_algorithm_t alg);
/**
* Look up the key length of an integrity algorithm.
*
* @param alg algorithm to get key length for
* @return key length in bits
*/
int keymat_get_keylen_integ(integrity_algorithm_t alg);
#endif /** KEYMAT_H_ @}*/