Merge "Resize signature buffer" into jb-mr2-dev
This commit is contained in:
@@ -410,6 +410,9 @@ bool CryptoSession::GenerateSignature(const std::string& message,
|
||||
return false;
|
||||
}
|
||||
|
||||
// TODO(fredgc): remove in K, when L1 library reports correct length.
|
||||
signature->resize(length);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -556,6 +559,8 @@ bool CryptoSession::RewrapDeviceRSAKey(const std::string& message,
|
||||
reinterpret_cast<uint8_t*>(const_cast<char*>(wrapped_rsa_key->data())),
|
||||
&wrapped_rsa_key_length);
|
||||
|
||||
// TODO(fredgc): remove in K, when L1 library reports correct length.
|
||||
wrapped_rsa_key->resize(wrapped_rsa_key_length);
|
||||
if (OEMCrypto_SUCCESS != status) {
|
||||
LOGE("OEMCrypto_RewrapDeviceRSAKey fails with %d", status);
|
||||
return false;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user