diff options
Diffstat (limited to 'src/daemon/https/lgl/gc-gnulib.c')
-rw-r--r-- | src/daemon/https/lgl/gc-gnulib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon/https/lgl/gc-gnulib.c b/src/daemon/https/lgl/gc-gnulib.c index 46448679..7c16d443 100644 --- a/src/daemon/https/lgl/gc-gnulib.c +++ b/src/daemon/https/lgl/gc-gnulib.c | |||
@@ -316,17 +316,17 @@ MHD_gc_cipher_setkey (MHD_gc_cipher_handle handle, size_t keylen, const char *ke | |||
316 | for (i = 0; i < keylen; i++) | 316 | for (i = 0; i < keylen; i++) |
317 | sprintf (&keyMaterial[2 * i], "%02x", key[i] & 0xFF); | 317 | sprintf (&keyMaterial[2 * i], "%02x", key[i] & 0xFF); |
318 | 318 | ||
319 | rc = rijndaelMakeKey (&ctx->aesEncKey, RIJNDAEL_DIR_ENCRYPT, | 319 | rc = MHD_rijndaelMakeKey (&ctx->aesEncKey, RIJNDAEL_DIR_ENCRYPT, |
320 | keylen * 8, keyMaterial); | 320 | keylen * 8, keyMaterial); |
321 | if (rc < 0) | 321 | if (rc < 0) |
322 | return GC_INVALID_CIPHER; | 322 | return GC_INVALID_CIPHER; |
323 | 323 | ||
324 | rc = rijndaelMakeKey (&ctx->aesDecKey, RIJNDAEL_DIR_DECRYPT, | 324 | rc = MHD_rijndaelMakeKey (&ctx->aesDecKey, RIJNDAEL_DIR_DECRYPT, |
325 | keylen * 8, keyMaterial); | 325 | keylen * 8, keyMaterial); |
326 | if (rc < 0) | 326 | if (rc < 0) |
327 | return GC_INVALID_CIPHER; | 327 | return GC_INVALID_CIPHER; |
328 | 328 | ||
329 | rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_ECB, NULL); | 329 | rc = MHD_MHD_rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_ECB, NULL); |
330 | if (rc < 0) | 330 | if (rc < 0) |
331 | return GC_INVALID_CIPHER; | 331 | return GC_INVALID_CIPHER; |
332 | } | 332 | } |
@@ -374,7 +374,7 @@ MHD_gc_cipher_setiv (MHD_gc_cipher_handle handle, size_t ivlen, const char *iv) | |||
374 | for (i = 0; i < ivlen; i++) | 374 | for (i = 0; i < ivlen; i++) |
375 | sprintf (&ivMaterial[2 * i], "%02x", iv[i] & 0xFF); | 375 | sprintf (&ivMaterial[2 * i], "%02x", iv[i] & 0xFF); |
376 | 376 | ||
377 | rc = rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_CBC, | 377 | rc = MHD_MHD_rijndaelCipherInit (&ctx->aesContext, RIJNDAEL_MODE_CBC, |
378 | ivMaterial); | 378 | ivMaterial); |
379 | if (rc < 0) | 379 | if (rc < 0) |
380 | return GC_INVALID_CIPHER; | 380 | return GC_INVALID_CIPHER; |
@@ -449,7 +449,7 @@ MHD_gc_cipher_encrypt_inline (MHD_gc_cipher_handle handle, size_t len, char *dat | |||
449 | { | 449 | { |
450 | int nblocks; | 450 | int nblocks; |
451 | 451 | ||
452 | nblocks = rijndaelBlockEncrypt (&ctx->aesContext, &ctx->aesEncKey, | 452 | nblocks = MHD_rijndaelBlockEncrypt (&ctx->aesContext, &ctx->aesEncKey, |
453 | data, 8 * len, data); | 453 | data, 8 * len, data); |
454 | if (nblocks < 0) | 454 | if (nblocks < 0) |
455 | return GC_INVALID_CIPHER; | 455 | return GC_INVALID_CIPHER; |
@@ -521,7 +521,7 @@ MHD_gc_cipher_decrypt_inline (MHD_gc_cipher_handle handle, size_t len, char *dat | |||
521 | { | 521 | { |
522 | int nblocks; | 522 | int nblocks; |
523 | 523 | ||
524 | nblocks = rijndaelBlockDecrypt (&ctx->aesContext, &ctx->aesDecKey, | 524 | nblocks = MHD_rijndaelBlockDecrypt (&ctx->aesContext, &ctx->aesDecKey, |
525 | data, 8 * len, data); | 525 | data, 8 * len, data); |
526 | if (nblocks < 0) | 526 | if (nblocks < 0) |
527 | return GC_INVALID_CIPHER; | 527 | return GC_INVALID_CIPHER; |