mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Use the actual size of the structure
This commit is contained in:
@ -39305,7 +39305,7 @@ int wolfSSL_RAND_poll(void)
|
|||||||
case AES_192_CBC_TYPE :
|
case AES_192_CBC_TYPE :
|
||||||
case AES_256_CBC_TYPE :
|
case AES_256_CBC_TYPE :
|
||||||
WOLFSSL_MSG("AES CBC");
|
WOLFSSL_MSG("AES CBC");
|
||||||
XMEMCPY(ctx->iv, &ctx->cipher.aes.reg, AES_BLOCK_SIZE);
|
XMEMCPY(ctx->iv, &ctx->cipher.aes.reg, ctx->ivSz);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_AESGCM
|
#ifdef HAVE_AESGCM
|
||||||
@ -39313,7 +39313,7 @@ int wolfSSL_RAND_poll(void)
|
|||||||
case AES_192_GCM_TYPE :
|
case AES_192_GCM_TYPE :
|
||||||
case AES_256_GCM_TYPE :
|
case AES_256_GCM_TYPE :
|
||||||
WOLFSSL_MSG("AES GCM");
|
WOLFSSL_MSG("AES GCM");
|
||||||
XMEMCPY(ctx->iv, &ctx->cipher.aes.reg, AES_BLOCK_SIZE);
|
XMEMCPY(ctx->iv, &ctx->cipher.aes.reg, ctx->ivSz);
|
||||||
break;
|
break;
|
||||||
#endif /* HAVE_AESGCM */
|
#endif /* HAVE_AESGCM */
|
||||||
#ifdef HAVE_AES_ECB
|
#ifdef HAVE_AES_ECB
|
||||||
|
Reference in New Issue
Block a user