Convert rand_bytes_ex and rand_priv_bytes_ex to public functions
[oweals/openssl.git] / providers / implementations / ciphers / cipher_aes_cbc_hmac_sha256_hw.c
index 26bc8f7c495248bcca310ab1fe560a90155b3915..5cfa76fde57d6f5275cc9084798adf106b2d9c00 100644 (file)
@@ -23,7 +23,7 @@ int cipher_capable_aes_cbc_hmac_sha256(void)
 }
 #else
 
-# include "crypto/rand.h"
+# include <openssl/rand.h>
 # include "crypto/evp.h"
 # include "internal/constant_time.h"
 
@@ -139,7 +139,7 @@ static size_t tls1_multi_block_encrypt(void *vctx,
 #  endif
 
     /* ask for IVs in bulk */
-    if (rand_bytes_ex(ctx->base.libctx, (IVs = blocks[0].c), 16 * x4) <= 0)
+    if (RAND_bytes_ex(ctx->base.libctx, (IVs = blocks[0].c), 16 * x4) <= 0)
         return 0;
 
     mctx = (SHA256_MB_CTX *) (storage + 32 - ((size_t)storage % 32)); /* align */