mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 01:01:02 +00:00
fixed compilation warning
This commit is contained in:
parent
75b67b7ea7
commit
1a69770e15
@ -391,7 +391,7 @@ namespace crypto
|
|||||||
|
|
||||||
uint8_t digest[Hash::DIGESTSIZE];
|
uint8_t digest[Hash::DIGESTSIZE];
|
||||||
m_Hash.Final (digest);
|
m_Hash.Final (digest);
|
||||||
if (keyLen < Hash::DIGESTSIZE) return false; // can't verify digest longer than key
|
if ((int)keyLen < Hash::DIGESTSIZE) return false; // can't verify digest longer than key
|
||||||
// we assume digest is right aligned, at least for PKCS#1 v1.5 padding
|
// we assume digest is right aligned, at least for PKCS#1 v1.5 padding
|
||||||
return !memcmp (enSigBuf + (keyLen - Hash::DIGESTSIZE), digest, Hash::DIGESTSIZE);
|
return !memcmp (enSigBuf + (keyLen - Hash::DIGESTSIZE), digest, Hash::DIGESTSIZE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user