privacy_crypto_fuzzer: aes encrypt uses const iv
Bug: 323289757 Test: privacy_crypto_fuzzer Change-Id: If3cde207fa726f6cbf8805cae0caa82a441c4173
This commit is contained in:
@@ -120,9 +120,8 @@ void PrivacyCryptoFuzzer::Process() {
|
|||||||
if (fdp_.ConsumeBool()) {
|
if (fdp_.ConsumeBool()) {
|
||||||
iv.resize(KEY_IV_SIZE, '0');
|
iv.resize(KEY_IV_SIZE, '0');
|
||||||
}
|
}
|
||||||
aes_cbc_key.Encrypt(fdp_.ConsumeRandomLengthString(kMaxByte),
|
aes_cbc_key.Encrypt(fdp_.ConsumeRandomLengthString(kMaxByte), iv,
|
||||||
fdp_.ConsumeBool() ? &enc_id : nullptr,
|
fdp_.ConsumeBool() ? &enc_id : nullptr);
|
||||||
fdp_.ConsumeBool() ? &iv : nullptr);
|
|
||||||
},
|
},
|
||||||
[&]() {
|
[&]() {
|
||||||
std::string data = fdp_.ConsumeRandomLengthString(kMaxByte);
|
std::string data = fdp_.ConsumeRandomLengthString(kMaxByte);
|
||||||
|
|||||||
Reference in New Issue
Block a user