diff options
author | x12xx12x <44411062+12xx12@users.noreply.github.com> | 2024-11-08 01:19:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 01:19:47 +0100 |
commit | e17f6906efe33245c320913a767f28ff764d1399 (patch) | |
tree | ac8f5377ad06b53a65fd3825b526e4fba22637c6 /src/mbedTLS++/CryptoKey.cpp | |
parent | Fix cChunkMap issues below with coords below y=0 (#5397) (diff) | |
download | cuberite-e17f6906efe33245c320913a767f28ff764d1399.tar cuberite-e17f6906efe33245c320913a767f28ff764d1399.tar.gz cuberite-e17f6906efe33245c320913a767f28ff764d1399.tar.bz2 cuberite-e17f6906efe33245c320913a767f28ff764d1399.tar.lz cuberite-e17f6906efe33245c320913a767f28ff764d1399.tar.xz cuberite-e17f6906efe33245c320913a767f28ff764d1399.tar.zst cuberite-e17f6906efe33245c320913a767f28ff764d1399.zip |
Diffstat (limited to 'src/mbedTLS++/CryptoKey.cpp')
-rw-r--r-- | src/mbedTLS++/CryptoKey.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mbedTLS++/CryptoKey.cpp b/src/mbedTLS++/CryptoKey.cpp index 742d9c73c..ea01bfc80 100644 --- a/src/mbedTLS++/CryptoKey.cpp +++ b/src/mbedTLS++/CryptoKey.cpp @@ -124,15 +124,18 @@ int cCryptoKey::ParsePrivate(const void * a_Data, size_t a_NumBytes, const AStri if (a_Password.empty()) { - return mbedtls_pk_parse_key(&m_Pk, reinterpret_cast<const unsigned char *>(keyData.data()), a_NumBytes + 1, nullptr, 0, mbedtls_ctr_drbg_random, m_CtrDrbg.GetInternal()); + return mbedtls_pk_parse_key( + &m_Pk, + reinterpret_cast<const unsigned char *>(keyData.data()), a_NumBytes + 1, + nullptr, 0 + ); } else { return mbedtls_pk_parse_key( &m_Pk, reinterpret_cast<const unsigned char *>(keyData.data()), a_NumBytes + 1, - reinterpret_cast<const unsigned char *>(a_Password.c_str()), a_Password.size(), - mbedtls_ctr_drbg_random, m_CtrDrbg.GetInternal() + reinterpret_cast<const unsigned char *>(a_Password.c_str()), a_Password.size() ); } } |