Remove else branch on NIST HMACVS testing, empty input does not exist there
@@ -65,11 +65,7 @@ fn hmac_tests() {
hmac_test_runner(alg, &key_value[..], &input[..], &output[..], true)?;
// Tamper with the input and check that verification fails
- if input.is_empty() {
- input.push(0);
- } else {
input[0] ^= 1;
- }
hmac_test_runner(alg, &key_value[..], &input[..], &output[..], false)
});
