Commit 5da28098 authored by Geir Istad's avatar Geir Istad

test_srtp.c: Add status check in test

For srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
parent a54de816
...@@ -87,6 +87,7 @@ void srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output() ...@@ -87,6 +87,7 @@ void srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
uint32_t sequence_num; uint32_t sequence_num;
// Postconditions // Postconditions
srtp_err_status_t status;
const v128_t zero_vector; const v128_t zero_vector;
memset((v128_t *)&zero_vector, 0, sizeof(v128_t)); memset((v128_t *)&zero_vector, 0, sizeof(v128_t));
...@@ -97,9 +98,10 @@ void srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output() ...@@ -97,9 +98,10 @@ void srtp_calc_aead_iv_srtcp_all_zero_input_yield_zero_output()
sequence_num = 0x0UL; sequence_num = 0x0UL;
// When // When
srtp_calc_aead_iv_srtcp(&session_keys, &init_vector, sequence_num, &header); status = srtp_calc_aead_iv_srtcp(&session_keys, &init_vector, sequence_num, &header);
// Then // Then
TEST_CHECK(status == srtp_err_status_ok);
TEST_CHECK(memcmp(&zero_vector, &init_vector, sizeof(v128_t)) == 0); TEST_CHECK(memcmp(&zero_vector, &init_vector, sizeof(v128_t)) == 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment