mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 18:11:03 +00:00
Update ring to 0.13 and subtle to 2.0 (#1383)
This commit is contained in:
committed by
Bastian Köcher
parent
bbbf315854
commit
42c30609d3
@@ -110,7 +110,7 @@ impl EncryptedKey {
|
||||
|
||||
let mac = blake2_256(&crypto::derive_mac(&derived_right_bits, &self.ciphertext));
|
||||
|
||||
if subtle::slices_equal(&mac[..], &self.mac[..]) != 1 {
|
||||
if subtle::ConstantTimeEq::ct_eq(&mac[..], &self.mac[..]).unwrap_u8() != 1 {
|
||||
return Err(ErrorKind::InvalidPassword.into());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user