Some functions have been renamed.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
CryptoPkg/Library/OpensslLib/rand_pool.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/CryptoPkg/Library/OpensslLib/rand_pool.c b/CryptoPkg/Library/OpensslLib/rand_pool.c
index 6218ae0c1cd7..89713494dcb3 100644
--- a/CryptoPkg/Library/OpensslLib/rand_pool.c
+++ b/CryptoPkg/Library/OpensslLib/rand_pool.c
@@ -75,7 +75,7 @@ RandGetBytes (
* This is OpenSSL required interface.
*/
size_t
-rand_pool_acquire_entropy (
+ossl_pool_acquire_entropy (
RAND_POOL *pool
)
{
@@ -83,22 +83,22 @@ rand_pool_acquire_entropy (
size_t Bytes_needed;
unsigned char *Buffer;
- Bytes_needed = rand_pool_bytes_needed (pool, 1 /*entropy_factor*/);
+ Bytes_needed = ossl_rand_pool_bytes_needed (pool, 1 /*entropy_factor*/);
if (Bytes_needed > 0) {
- Buffer = rand_pool_add_begin (pool, Bytes_needed);
+ Buffer = ossl_rand_pool_add_begin (pool, Bytes_needed);
if (Buffer != NULL) {
Ret = RandGetBytes (Bytes_needed, Buffer);
if (FALSE == Ret) {
- rand_pool_add_end (pool, 0, 0);
+ ossl_rand_pool_add_end (pool, 0, 0);
}
else {
- rand_pool_add_end (pool, Bytes_needed, 8 * Bytes_needed);
+ ossl_rand_pool_add_end (pool, Bytes_needed, 8 * Bytes_needed);
}
}
}
- return rand_pool_entropy_available (pool);
+ return ossl_rand_pool_entropy_available (pool);
}
/*
@@ -107,14 +107,14 @@ rand_pool_acquire_entropy (
* This is OpenSSL required interface.
*/
int
-rand_pool_add_nonce_data (
+ossl_pool_add_nonce_data (
RAND_POOL *pool
)
{
UINT8 data[16];
RandGetBytes (sizeof(data), data);
- return rand_pool_add (pool, (unsigned char*)&data, sizeof(data), 0);
+ return ossl_rand_pool_add (pool, (unsigned char*)&data, sizeof(data), 0);
}
/*
@@ -130,7 +130,7 @@ rand_pool_add_additional_data (
UINT8 data[16];
RandGetBytes (sizeof(data), data);
- return rand_pool_add (pool, (unsigned char*)&data, sizeof(data), 0);
+ return ossl_rand_pool_add (pool, (unsigned char*)&data, sizeof(data), 0);
}
/*
@@ -139,7 +139,7 @@ rand_pool_add_additional_data (
* This is OpenSSL required interface.
*/
int
-rand_pool_init (
+ossl_rand_pool_init (
VOID
)
{
--
2.33.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#84314): https://edk2.groups.io/g/devel/message/84314
Mute This Topic: https://groups.io/mt/87479963/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-