From 9c535909fd3c529e53dc0c8089b2957f873851d4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 5 Feb 2004 18:55:21 +0000 Subject: expose two more functions --- sys/crypto/rijndael.c | 6 +++--- sys/crypto/rijndael.h | 5 ++++- 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 */ -- cgit v1.2.3