diff options
author | 2004-02-05 18:55:20 +0000 | |
---|---|---|
committer | 2004-02-05 18:55:20 +0000 | |
commit | 12605d870c4ecc98baee6fb36299137af4b10d3e (patch) | |
tree | 8c6700d9f17575b3e0b67c37143d277de5b4878e | |
parent | pfctl_update_qstats() returns -1 on error and the # of queues otehrwise (diff) | |
download | wireguard-openbsd-12605d870c4ecc98baee6fb36299137af4b10d3e.tar.xz wireguard-openbsd-12605d870c4ecc98baee6fb36299137af4b10d3e.zip |
expose two more functions
-rw-r--r-- | sys/crypto/rijndael.c | 6 | ||||
-rw-r--r-- | 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 */ |