diff options
author | Jack Lloyd <[email protected]> | 2019-11-10 12:54:07 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-11-10 12:54:07 -0500 |
commit | 7001d660a47a0ea2809f79a42549b676fc179f49 (patch) | |
tree | 35ca83d89ab064fa1ec2b55dfc9184e810a3cdd2 | |
parent | 42e7d011144fd8504daa69097618f18dbe86c28f (diff) |
Avoid creating secure_vector each time during OAEP fuzzer
-rw-r--r-- | src/fuzzer/oaep.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzer/oaep.cpp b/src/fuzzer/oaep.cpp index 7b482edb8..3d8275bde 100644 --- a/src/fuzzer/oaep.cpp +++ b/src/fuzzer/oaep.cpp @@ -61,7 +61,7 @@ inline bool all_zeros(const Botan::secure_vector<uint8_t>& v) void fuzz(const uint8_t in[], size_t len) { - const Botan::secure_vector<uint8_t> Phash = { 1, 2, 3, 4 }; + static const Botan::secure_vector<uint8_t> Phash = { 1, 2, 3, 4 }; uint8_t lib_valid_mask = 0; const Botan::secure_vector<uint8_t> lib_output = Botan::oaep_find_delim(lib_valid_mask, in, len, Phash); |