aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/https/lgl/rijndael-alg-fst.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/https/lgl/rijndael-alg-fst.c')
-rw-r--r--src/daemon/https/lgl/rijndael-alg-fst.c10
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 */
764int 764int
765rijndaelKeySetupEnc (uint32_t rk[ /*4*(Nr + 1) */ ], 765MHD_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 */
859int 859int
860rijndaelKeySetupDec (uint32_t rk[ /*4*(Nr + 1) */ ], 860MHD_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
913void 913void
914rijndaelEncrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, 914MHD_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
1004void 1004void
1005rijndaelDecrypt (const uint32_t rk[ /*4*(Nr + 1) */ ], size_t Nr, 1005MHD_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;