summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-05 18:55:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-05 18:55:21 +0000
commit9c535909fd3c529e53dc0c8089b2957f873851d4 (patch)
tree19d4970cb947a75bea2c5d12945a31a4f59bc4e4
parentc3418369b9c3df40b150ce4e974e91d6d0246a1e (diff)
expose two more functions
-rw-r--r--sys/crypto/rijndael.c6
-rw-r--r--sys/crypto/rijndael.h5
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/crypto/rijndael.c b/sys/crypto/rijndael.c
index 5be52bf1c21..26070ac4ca5 100644
--- a/sys/crypto/rijndael.c
+++ b/sys/crypto/rijndael.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rijndael.c,v 1.13 2003/12/26 10:04:49 markus Exp $ */
+/* $OpenBSD: rijndael.c,v 1.14 2004/02/05 18:55:20 deraadt Exp $ */
/**
* rijndael-alg-fst.c
@@ -723,7 +723,7 @@ static const u32 rcon[] = {
*
* @return the number of rounds for the given cipher key size.
*/
-static int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits) {
+int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits) {
int i = 0;
u32 temp;
@@ -808,7 +808,7 @@ static int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int
*
* @return the number of rounds for the given cipher key size.
*/
-static int
+int
rijndaelKeySetupDec(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits) {
int Nr, i, j;
u32 temp;
diff --git a/sys/crypto/rijndael.h b/sys/crypto/rijndael.h
index 6cfb3813dad..d1f3f4b57f4 100644
--- a/sys/crypto/rijndael.h
+++ b/sys/crypto/rijndael.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rijndael.h,v 1.8 2003/12/26 10:04:49 markus Exp $ */
+/* $OpenBSD: rijndael.h,v 1.9 2004/02/05 18:55:20 deraadt Exp $ */
/**
* rijndael-alg-fst.h
@@ -49,4 +49,7 @@ void rijndael_set_key_enc_only(rijndael_ctx *, u_char *, int);
void rijndael_decrypt(rijndael_ctx *, u_char *, u_char *);
void rijndael_encrypt(rijndael_ctx *, u_char *, u_char *);
+int rijndaelKeySetupEnc(unsigned int [], const unsigned char [], int);
+int rijndaelKeySetupDec(unsigned int [], const unsigned char [], int);
+
#endif /* __RIJNDAEL_H */