Add secondary rc2 setup function

...to be able to pass the effective key length.
This commit is contained in:
Steffen Jaeckel
2017-02-28 20:09:32 +01:00
committed by Karel Miko
parent 43c50423ad
commit 9a29428f8e
2 changed files with 58 additions and 21 deletions
+1
View File
@@ -617,6 +617,7 @@ extern const struct ltc_cipher_descriptor rc6_desc;
#ifdef LTC_RC2
int rc2_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey);
int rc2_setup_ex(const unsigned char *key, int keylen, int bits, int num_rounds, symmetric_key *skey);
int rc2_ecb_encrypt(const unsigned char *pt, unsigned char *ct, symmetric_key *skey);
int rc2_ecb_decrypt(const unsigned char *ct, unsigned char *pt, symmetric_key *skey);
int rc2_test(void);