Skip to content

Commit 6d20128

Browse files
author
Tobias Waurick
committed
test: add ignored tests for AesCtr128HmacSha256_80
1 parent c6f1462 commit 6d20128

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

src/crypto/aead.rs

+14
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,20 @@ mod test {
181181
fn should_decrypt_test_vectors_aes_ctr_64_hmac_sha256_32() {
182182
decrypt_test_vector(CipherSuiteVariant::AesCtr128HmacSha256_32);
183183
}
184+
185+
#[test]
186+
// AesCtr128HmacSha256_80 is not available in the test vectors
187+
#[ignore]
188+
fn should_encrypt_test_vectors_aes_ctr_64_hmac_sha256_80() {
189+
encrypt_test_vector(CipherSuiteVariant::AesCtr128HmacSha256_32);
190+
}
191+
192+
#[test]
193+
// AesCtr128HmacSha256_80 is not available in the test vectors
194+
#[ignore]
195+
fn should_decrypt_test_vectors_aes_ctr_64_hmac_sha256_80() {
196+
decrypt_test_vector(CipherSuiteVariant::AesCtr128HmacSha256_32);
197+
}
184198
}
185199
}
186200
}

src/crypto/key_expansion.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ mod test {
7575
derive_correct_sub_keys(CipherSuiteVariant::AesCtr128HmacSha256_32);
7676
}
7777

78+
#[test]
7879
// AesCtr128HmacSha256_80 is not available in the test vectors
79-
// #[test]
80-
// fn derive_correct_keys_aes_ctr_128_hmac_sha256_80() {
81-
// derive_correct_sub_keys(CipherSuiteVariant::AesCtr128HmacSha256_80);
82-
// }
80+
#[ignore]
81+
fn derive_correct_keys_aes_ctr_128_hmac_sha256_80() {
82+
derive_correct_sub_keys(CipherSuiteVariant::AesCtr128HmacSha256_80);
83+
}
8384
}
8485
}

0 commit comments

Comments
 (0)