diff options
author | Jack Lloyd <[email protected]> | 2018-03-10 15:01:09 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-10 15:01:09 -0500 |
commit | afe4ae0f83b7207873afac760cb3c32ed40ce4c9 (patch) | |
tree | 93f65bd1ab32d3cf161888ccada926e633fd1e82 /src/lib/modes | |
parent | 920001cae022190bc86ec818ab4af0ac7513777c (diff) |
Minor tweaks for coverage
Diffstat (limited to 'src/lib/modes')
-rw-r--r-- | src/lib/modes/aead/gcm/gcm.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/modes/aead/gcm/gcm.cpp b/src/lib/modes/aead/gcm/gcm.cpp index dfaffedb7..b0240eb7f 100644 --- a/src/lib/modes/aead/gcm/gcm.cpp +++ b/src/lib/modes/aead/gcm/gcm.cpp @@ -86,8 +86,7 @@ void GCM_Mode::set_associated_data(const uint8_t ad[], size_t ad_len) void GCM_Mode::start_msg(const uint8_t nonce[], size_t nonce_len) { - if(!valid_nonce_length(nonce_len)) - throw Invalid_IV_Length(name(), nonce_len); + // any size is valid for GCM nonce secure_vector<uint8_t> y0(GCM_BS); |