Add AES-ECB as a supported encryption mode in ECMG
This commit is contained in:
@@ -363,6 +363,18 @@ bool RsaPublicKey::MatchesPublicKey(const RsaPublicKey& public_key) const {
|
||||
|
||||
uint32_t RsaPublicKey::KeySize() const { return RSA_size(key_); }
|
||||
|
||||
bool RsaPublicKey::SerializedKey(std::string* serialized_key) const {
|
||||
if (serialized_key == nullptr) {
|
||||
return false;
|
||||
}
|
||||
std::string tmp_serialized_key;
|
||||
if (!rsa_util::SerializeRsaPublicKey(key(), &tmp_serialized_key)) {
|
||||
return false;
|
||||
}
|
||||
*serialized_key = tmp_serialized_key;
|
||||
return true;
|
||||
}
|
||||
|
||||
RsaKeyFactory::RsaKeyFactory() {}
|
||||
|
||||
RsaKeyFactory::~RsaKeyFactory() {}
|
||||
|
||||
Reference in New Issue
Block a user