aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2023-01-12 02:28:18 -0900
committerDavid M. Syzdek <david@syzdek.net>2023-01-12 02:28:18 -0900
commitbc1545a1170d6cd3f35ffba599d31189a6af74ed (patch)
tree63669711a1b79608b6cd3e307c303a9108ee8c75 /tests
parent7826ab30ab9bb85809470a6a830a29e343f25a49 (diff)
downloadotputils-bc1545a1170d6cd3f35ffba599d31189a6af74ed.tar.gz
otputils-bc1545a1170d6cd3f35ffba599d31189a6af74ed.tar.bz2
otputils-bc1545a1170d6cd3f35ffba599d31189a6af74ed.tar.xz
otputils-bc1545a1170d6cd3f35ffba599d31189a6af74ed.zip
tests/otp-data.c: adding test record
Diffstat (limited to 'tests')
-rw-r--r--tests/otp-data.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/otp-data.c b/tests/otp-data.c
index 6df0d8f..ce23859 100644
--- a/tests/otp-data.c
+++ b/tests/otp-data.c
@@ -61,6 +61,21 @@
61#pragma mark otp_test_data[] 61#pragma mark otp_test_data[]
62otptest_t otp_test_data[] = 62otptest_t otp_test_data[] =
63{ 63{
64 // RFC 2289 Appendix C - OTP Verification Examples: GENERAL CHECKS
65 {
66 .method = OTPUTIL_MD_MD5,
67 .pass = "A_Valid_Pass_Phrase",
68 .seed = "AValidSeed",
69 .count = 99,
70 .hex = "85C4 3EE0 3857 765B",
71 .six = "FOWL KID MASH DEAD DUAL OAF",
72 .alt_md4 = NULL,
73 .alt_md5 = NULL,
74 .alt_sha1 = NULL,
75 .dat.bv_val = (uint8_t []){ 0x85, 0xc4, 0x3e, 0xe0, 0x38, 0x57, 0x76, 0x5b },
76 .dat.bv_len = 8,
77 },
78
64 // RFC 2289 Appendix C - OTP Verification Examples: MD4 ENCODINGS 79 // RFC 2289 Appendix C - OTP Verification Examples: MD4 ENCODINGS
65 { 80 {
66 .method = OTPUTIL_MD_MD4, 81 .method = OTPUTIL_MD_MD4,