Fix FileEncryptionKey.
GitOrigin-RevId: 59949d62ce074db7afe33e0b42666d7b8bd14973
This commit is contained in:
parent
ecce3b4f53
commit
174eaf2817
@ -166,7 +166,7 @@ struct FileEncryptionKey {
|
|||||||
}
|
}
|
||||||
CHECK(key_iv_.size() == 64);
|
CHECK(key_iv_.size() == 64);
|
||||||
MutableSlice(key_iv_).copy_from(key);
|
MutableSlice(key_iv_).copy_from(key);
|
||||||
MutableSlice(key_iv_).remove_suffix(key.size()).copy_from(iv);
|
MutableSlice(key_iv_).substr(key.size()).copy_from(iv);
|
||||||
}
|
}
|
||||||
|
|
||||||
explicit FileEncryptionKey(const secure_storage::Secret &secret) : type_(Type::Secure) {
|
explicit FileEncryptionKey(const secure_storage::Secret &secret) : type_(Type::Secure) {
|
||||||
|
Reference in New Issue
Block a user