FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
sha.c File Reference
+ Include dependency graph for sha.c:

Go to the source code of this file.

Functions

 UNITTEST_REGISTER_CRYPTO_TEST (nist_sha1_tc1)
 
 UNITTEST_REGISTER_CRYPTO_TEST (nist_sha224_tc1)
 
 UNITTEST_REGISTER_CRYPTO_TEST (nist_sha256_tc1)
 
 UNITTEST_REGISTER_CRYPTO_TEST (nist_sha384_tc1)
 
 UNITTEST_REGISTER_CRYPTO_TEST (nist_sha512_tc1)
 

Variables

static char sha_data [3] = "abc"
 
static u8 sha1_tc1_digest [20]
 
static u8 sha224_digest []
 
static u8 sha256_digest []
 
static u8 sha384_digest []
 
static u8 sha512_digest []
 

Function Documentation

◆ UNITTEST_REGISTER_CRYPTO_TEST() [1/5]

UNITTEST_REGISTER_CRYPTO_TEST ( nist_sha1_tc1  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [2/5]

UNITTEST_REGISTER_CRYPTO_TEST ( nist_sha224_tc1  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [3/5]

UNITTEST_REGISTER_CRYPTO_TEST ( nist_sha256_tc1  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [4/5]

UNITTEST_REGISTER_CRYPTO_TEST ( nist_sha384_tc1  )

◆ UNITTEST_REGISTER_CRYPTO_TEST() [5/5]

UNITTEST_REGISTER_CRYPTO_TEST ( nist_sha512_tc1  )

Variable Documentation

◆ sha1_tc1_digest

u8 sha1_tc1_digest[20]
static
Initial value:
= { 0xa9, 0x99, 0x3e, 0x36, 0x47, 0x06, 0x81,
0x6a, 0xba, 0x3e, 0x25, 0x71, 0x78, 0x50,
0xc2, 0x6c, 0x9c, 0xd0, 0xd8, 0x9d }

Definition at line 21 of file sha.c.

◆ sha224_digest

u8 sha224_digest[]
static
Initial value:
= {
0x23, 0x09, 0x7D, 0x22, 0x34, 0x05, 0xD8, 0x22, 0x86, 0x42,
0xA4, 0x77, 0xBD, 0xA2, 0x55, 0xB3, 0x2A, 0xAD, 0xBC, 0xE4,
0xBD, 0xA0, 0xB3, 0xF7, 0xE3, 0x6C, 0x9D, 0xA7,
}

Definition at line 25 of file sha.c.

◆ sha256_digest

u8 sha256_digest[]
static
Initial value:
= { 0xBA, 0x78, 0x16, 0xBF, 0x8F, 0x01, 0xCF, 0xEA,
0x41, 0x41, 0x40, 0xDE, 0x5D, 0xAE, 0x22, 0x23,
0xB0, 0x03, 0x61, 0xA3, 0x96, 0x17, 0x7A, 0x9C,
0xB4, 0x10, 0xFF, 0x61, 0xF2, 0x00, 0x15, 0xAD }

Definition at line 31 of file sha.c.

◆ sha384_digest

u8 sha384_digest[]
static
Initial value:
= { 0xCB, 0x00, 0x75, 0x3F, 0x45, 0xA3, 0x5E, 0x8B,
0xB5, 0xA0, 0x3D, 0x69, 0x9A, 0xC6, 0x50, 0x07,
0x27, 0x2C, 0x32, 0xAB, 0x0E, 0xDE, 0xD1, 0x63,
0x1A, 0x8B, 0x60, 0x5A, 0x43, 0xFF, 0x5B, 0xED,
0x80, 0x86, 0x07, 0x2B, 0xA1, 0xE7, 0xCC, 0x23,
0x58, 0xBA, 0xEC, 0xA1, 0x34, 0xC8, 0x25, 0xA7 }

Definition at line 36 of file sha.c.

◆ sha512_digest

u8 sha512_digest[]
static
Initial value:
= {
0xDD, 0xAF, 0x35, 0xA1, 0x93, 0x61, 0x7A, 0xBA, 0xCC, 0x41, 0x73, 0x49, 0xAE,
0x20, 0x41, 0x31, 0x12, 0xE6, 0xFA, 0x4E, 0x89, 0xA9, 0x7E, 0xA2, 0x0A, 0x9E,
0xEE, 0xE6, 0x4B, 0x55, 0xD3, 0x9A, 0x21, 0x92, 0x99, 0x2A, 0x27, 0x4F, 0xC1,
0xA8, 0x36, 0xBA, 0x3C, 0x23, 0xA3, 0xFE, 0xEB, 0xBD, 0x45, 0x4D, 0x44, 0x23,
0x64, 0x3C, 0xE8, 0x0E, 0x2A, 0x9A, 0xC9, 0x4F, 0xA5, 0x4C, 0xA4, 0x9F
}

Definition at line 43 of file sha.c.

◆ sha_data

char sha_data[3] = "abc"
static

Definition at line 19 of file sha.c.