Add +1 for ikev1 check when at max str length
@@ -392,7 +392,7 @@ ACVP_RESULT acvp_kdf135_ikev1_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) {
return ACVP_MISSING_ARG;
}
if (strnlen((char *)init_nonce,
- ACVP_KDF135_IKEV1_INIT_NONCE_STR_MAX) != ((init_nonce_len + 7) / 8) * 2) {
+ ACVP_KDF135_IKEV1_INIT_NONCE_STR_MAX + 1) != ((init_nonce_len + 7) / 8) * 2) {
ACVP_LOG_ERR("nInit length(%d) incorrect, expected(%d)",
strnlen((char *)init_nonce,
ACVP_KDF135_IKEV1_INIT_NONCE_STR_MAX),
@@ -406,7 +406,7 @@ ACVP_RESULT acvp_kdf135_ikev1_kat_handler (ACVP_CTX *ctx, JSON_Object *obj) {
return ACVP_MISSING_ARG;
}
if (strnlen((char *)resp_nonce,
- ACVP_KDF135_IKEV1_RESP_NONCE_STR_MAX) != ((resp_nonce_len + 7) / 8) * 2) {
+ ACVP_KDF135_IKEV1_RESP_NONCE_STR_MAX + 1) != ((resp_nonce_len + 7) / 8) * 2) {
ACVP_LOG_ERR("nResp length(%d) incorrect, expected(%d)",
strnlen((char *)resp_nonce,
ACVP_KDF135_IKEV1_RESP_NONCE_STR_MAX),
