FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
rfc2202_hmac_md5.c File Reference
+ Include dependency graph for rfc2202_hmac_md5.c:

Go to the source code of this file.

Functions

 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc1)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc2)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc3)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc4)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc5)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc6)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc7)
 
 UNITTEST_REGISTER_CRYPTO_TEST (rfc_2202_md5_tc7_chained)
 

Variables

static u8 md5_tc1_key [16]
 
static char md5_tc1_data [8] = "Hi There"
 
static u8 md5_tc1_digest []
 
static char md5_tc2_key [4] = "Jefe"
 
static char md5_tc2_data [28] = "what do ya want for nothing?"
 
static u8 md5_tc2_digest []
 
static char md5_tc3_key [16]
 
static char md5_tc3_data [50]
 
static u8 md5_tc3_digest []
 
static u8 md5_tc4_key [25]
 
static u8 md5_tc4_data [50]
 
static u8 md5_tc4_digest []
 
static u8 md5_tc5_key [16]
 
static char md5_tc5_data [20] = "Test With Truncation"
 
static u8 md5_tc5_digest []
 
static u8 md5_tc6_key [80]
 
static char md5_tc6_data [54]
 
static u8 md5_tc6_digest []
 
static char md5_tc7_data [73]
 
static u8 md5_tc7_digest []
 

Function Documentation

◆ UNITTEST_REGISTER_CRYPTO_TEST() [1/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc1  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [2/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc2  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [3/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc3  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [4/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc4  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [5/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc5  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [6/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc6  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [7/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc7  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [8/8]

UNITTEST_REGISTER_CRYPTO_TEST ( rfc_2202_md5_tc7_chained  )

Variable Documentation

◆ md5_tc1_data

char md5_tc1_data[8] = "Hi There"
static

Definition at line 27 of file rfc2202_hmac_md5.c.

◆ md5_tc1_digest

u8 md5_tc1_digest[]
static
Initial value:
= {
0x92, 0x94, 0x72, 0x7a, 0x36, 0x38, 0xbb, 0x1c,
0x13, 0xf4, 0x8e, 0xf8, 0x15, 0x8b, 0xfc, 0x9d
}

Definition at line 29 of file rfc2202_hmac_md5.c.

◆ md5_tc1_key

u8 md5_tc1_key[16]
static
Initial value:
= {
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b
}

Definition at line 22 of file rfc2202_hmac_md5.c.

◆ md5_tc2_data

char md5_tc2_data[28] = "what do ya want for nothing?"
static

Definition at line 46 of file rfc2202_hmac_md5.c.

◆ md5_tc2_digest

u8 md5_tc2_digest[]
static
Initial value:
= {
0x75, 0x0c, 0x78, 0x3e, 0x6a, 0xb0, 0xb5, 0x03,
0xea, 0xa8, 0x6e, 0x31, 0x0a, 0x5d, 0xb7, 0x38,
}

Definition at line 48 of file rfc2202_hmac_md5.c.

◆ md5_tc2_key

char md5_tc2_key[4] = "Jefe"
static

Definition at line 44 of file rfc2202_hmac_md5.c.

◆ md5_tc3_data

char md5_tc3_data[50]
static
Initial value:
= {
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,
0xdd, 0xdd
}

Definition at line 68 of file rfc2202_hmac_md5.c.

◆ md5_tc3_digest

u8 md5_tc3_digest[]
static
Initial value:
= {
0x56, 0xbe, 0x34, 0x52, 0x1d, 0x14, 0x4c, 0x88,
0xdb, 0xb8, 0xc7, 0x33, 0xf0, 0xe8, 0xb3, 0xf6,
}

Definition at line 78 of file rfc2202_hmac_md5.c.

◆ md5_tc3_key

char md5_tc3_key[16]
static
Initial value:
= {
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa
}

Definition at line 63 of file rfc2202_hmac_md5.c.

◆ md5_tc4_data

u8 md5_tc4_data[50]
static
Initial value:
= {
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd, 0xcd,
0xcd, 0xcd,
}

Definition at line 100 of file rfc2202_hmac_md5.c.

◆ md5_tc4_digest

u8 md5_tc4_digest[]
static
Initial value:
= {
0x69, 0x7e, 0xaf, 0x0a, 0xca, 0x3a, 0x3a, 0xea,
0x3a, 0x75, 0x16, 0x47, 0x46, 0xff, 0xaa, 0x79,
}

Definition at line 110 of file rfc2202_hmac_md5.c.

◆ md5_tc4_key

u8 md5_tc4_key[25]
static
Initial value:
= {
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10,
0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18,
0x19,
}

Definition at line 93 of file rfc2202_hmac_md5.c.

◆ md5_tc5_data

char md5_tc5_data[20] = "Test With Truncation"
static

Definition at line 130 of file rfc2202_hmac_md5.c.

◆ md5_tc5_digest

u8 md5_tc5_digest[]
static
Initial value:
= {
0x56, 0x46, 0x1e, 0xf2, 0x34, 0x2e, 0xdc, 0x00,
0xf9, 0xba, 0xb9, 0x95, 0x69, 0x0e, 0xfd, 0x4c,
}

Definition at line 132 of file rfc2202_hmac_md5.c.

◆ md5_tc5_key

u8 md5_tc5_key[16]
static
Initial value:
= {
0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c, 0x0c,
}

Definition at line 125 of file rfc2202_hmac_md5.c.

◆ md5_tc6_data

char md5_tc6_data[54]
static
Initial value:
=
"Test Using Larger Than Block-Size Key - Hash Key First"

Definition at line 160 of file rfc2202_hmac_md5.c.

◆ md5_tc6_digest

u8 md5_tc6_digest[]
static
Initial value:
= {
0x6b, 0x1a, 0xb7, 0xfe, 0x4b, 0xd7, 0xbf, 0x8f,
0x0b, 0x62, 0xe6, 0xce, 0x61, 0xb9, 0xd0, 0xcd,
}

Definition at line 163 of file rfc2202_hmac_md5.c.

◆ md5_tc6_key

u8 md5_tc6_key[80]
static
Initial value:
= {
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa
}

Definition at line 147 of file rfc2202_hmac_md5.c.

◆ md5_tc7_data

char md5_tc7_data[73]
static
Initial value:
=
"Test Using Larger Than Block-Size Key and Larger Than One Block-Size Data"

Definition at line 178 of file rfc2202_hmac_md5.c.

◆ md5_tc7_digest

u8 md5_tc7_digest[]
static
Initial value:
= {
0x6f, 0x63, 0x0f, 0xad, 0x67, 0xcd, 0xa0, 0xee,
0x1f, 0xb1, 0xf5, 0x62, 0xdb, 0x3a, 0xa5, 0x3e,
}

Definition at line 181 of file rfc2202_hmac_md5.c.