diff options
Diffstat (limited to 'src/daemon/https/lgl/rijndael-alg-fst.c')
-rw-r--r-- | src/daemon/https/lgl/rijndael-alg-fst.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/daemon/https/lgl/rijndael-alg-fst.c b/src/daemon/https/lgl/rijndael-alg-fst.c index d14aad65..d17fbeed 100644 --- a/src/daemon/https/lgl/rijndael-alg-fst.c +++ b/src/daemon/https/lgl/rijndael-alg-fst.c | |||
@@ -762,7 +762,7 @@ static const uint32_t rcon[] = { | |||
762 | * @return the number of rounds for the given cipher key size. | 762 | * @return the number of rounds for the given cipher key size. |
763 | */ | 763 | */ |
764 | int | 764 | int |
765 | rijndaelKeySetupEnc (uint32_t rk[ /*4*(Nr + 1) */ ], | 765 | MHD_rijndaelKeySetupEnc (uint32_t rk[ /*4*(Nr + 1) */ ], |
766 | const char cipherKey[], size_t keyBits) | 766 | const char cipherKey[], size_t keyBits) |
767 | { | 767 | { |
768 | size_t i = 0; | 768 | size_t i = 0; |
@@ -857,14 +857,14 @@ rijndaelKeySetupEnc (uint32_t rk[ /*4*(Nr + 1) */ ], | |||
857 | * @return the number of rounds for the given cipher key size. | 857 | * @return the number of rounds for the given cipher key size. |
858 | */ | 858 | */ |
859 | int | 859 | int |
860 | rijndaelKeySetupDec (uint32_t rk[ /*4*(Nr + 1) */ ], | 860 | MHD_rijndaelKeySetupDec (uint32_t rk[ /*4*(Nr + 1) */ ], |
861 | const char cipherKey[], size_t keyBits) | 861 | const char cipherKey[], size_t keyBits) |
862 | { | 862 | { |
863 | size_t Nr, i, j; | 863 | size_t Nr, i, j; |
864 | uint32_t temp; | 864 | uint32_t temp; |
865 | 865 | ||
866 | /* expand the cipher key: */ | 866 | /* expand the cipher key: */ |
867 | Nr = rijndaelKeySetupEnc (rk, cipherKey, keyBits); | 867 | Nr = MHD_rijndaelKeySetupEnc (rk, cipherKey, keyBits); |
868 | /* invert the order of the round keys: */ | 868 | /* invert the order of the round keys: */ |
869 | for (i = 0, j = 4 * Nr; i < j; i += 4, j -= 4) | 869 | for (i = 0, j = 4 * Nr; i < j; i += 4, j -= 4) |
870 | { | 870 | { |
@@ -911,7 +911,7 @@ rijndaelKeySetupDec (uint32_t rk[ /*4*(Nr + 1) */ ], | |||
911 | } | 911 | } |
912 | 912 | ||
913 | void | 913 | void |
914 | rijndaelEncrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, | 914 | MHD_rijndaelEncrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, |
915 | const char pt[16], char ct[16]) | 915 | const char pt[16], char ct[16]) |
916 | { | 916 | { |
917 | uint32_t s0, s1, s2, s3, t0, t1, t2, t3; | 917 | uint32_t s0, s1, s2, s3, t0, t1, t2, t3; |
@@ -1002,7 +1002,7 @@ rijndaelEncrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, | |||
1002 | } | 1002 | } |
1003 | 1003 | ||
1004 | void | 1004 | void |
1005 | rijndaelDecrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, | 1005 | MHD_rijndaelDecrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, |
1006 | const char ct[16], char pt[16]) | 1006 | const char ct[16], char pt[16]) |
1007 | { | 1007 | { |
1008 | uint32_t s0, s1, s2, s3, t0, t1, t2, t3; | 1008 | uint32_t s0, s1, s2, s3, t0, t1, t2, t3; |