Fix FileEncryptionKey.

GitOrigin-RevId: 59949d62ce074db7afe33e0b42666d7b8bd14973
This commit is contained in:
levlam 2018-06-09 00:02:19 +03:00
parent ecce3b4f53
commit 174eaf2817

View File

@ -166,7 +166,7 @@ struct FileEncryptionKey {
}
CHECK(key_iv_.size() == 64);
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) {