mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Update comments
This commit is contained in:
parent
4caa5ee724
commit
de85886ca4
@ -385,10 +385,10 @@ bool ed25519PrivateKey::Validate(RandomNumberGenerator &rng, unsigned int level)
|
||||
return false;
|
||||
if (level >= 3)
|
||||
{
|
||||
SecByteBlock sk(m_sk, SECRET_KEYLENGTH), pk(PUBLIC_KEYLENGTH);
|
||||
SecretToPublicKey(pk, sk);
|
||||
// Verify m_pk is pairwise consistent with m_sk
|
||||
SecByteBlock pk(PUBLIC_KEYLENGTH);
|
||||
SecretToPublicKey(pk, m_sk);
|
||||
|
||||
// Secret key is already clamped, bufs are equal
|
||||
if (VerifyBufsEqual(pk, m_pk, PUBLIC_KEYLENGTH) == false)
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user