lib/crypto/tests/blake2b-testvecs.h

Source file repositories/reference/linux-study-clean/lib/crypto/tests/blake2b-testvecs.h

File Facts

System
Linux kernel
Corpus path
lib/crypto/tests/blake2b-testvecs.h
Extension
.h
Size
12021 bytes
Lines
343
Domain
Kernel Services
Bucket
lib
Inferred role
Kernel Services: implementation source
Status
source implementation candidate

Why This File Exists

Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.

Dependency Surface

Detected Declarations

Annotated Snippet

static const struct {
	size_t data_len;
	u8 digest[BLAKE2B_HASH_SIZE];
} hash_testvecs[] = {
	{
		.data_len = 0,
		.digest = {
			0x78, 0x6a, 0x02, 0xf7, 0x42, 0x01, 0x59, 0x03,
			0xc6, 0xc6, 0xfd, 0x85, 0x25, 0x52, 0xd2, 0x72,
			0x91, 0x2f, 0x47, 0x40, 0xe1, 0x58, 0x47, 0x61,
			0x8a, 0x86, 0xe2, 0x17, 0xf7, 0x1f, 0x54, 0x19,
			0xd2, 0x5e, 0x10, 0x31, 0xaf, 0xee, 0x58, 0x53,
			0x13, 0x89, 0x64, 0x44, 0x93, 0x4e, 0xb0, 0x4b,
			0x90, 0x3a, 0x68, 0x5b, 0x14, 0x48, 0xb7, 0x55,
			0xd5, 0x6f, 0x70, 0x1a, 0xfe, 0x9b, 0xe2, 0xce,
		},
	},
	{
		.data_len = 1,
		.digest = {
			0x6f, 0x2e, 0xcc, 0x83, 0x53, 0xa3, 0x20, 0x16,
			0x5b, 0xda, 0xd0, 0x04, 0xd3, 0xcb, 0xe4, 0x37,
			0x5b, 0xf0, 0x84, 0x36, 0xe1, 0xad, 0x45, 0xcc,
			0x4d, 0x7f, 0x09, 0x68, 0xb2, 0x62, 0x93, 0x7f,
			0x72, 0x32, 0xe8, 0xa7, 0x2f, 0x1f, 0x6f, 0xc6,
			0x14, 0xd6, 0x70, 0xae, 0x0c, 0xf0, 0xf3, 0xce,
			0x64, 0x4d, 0x22, 0xdf, 0xc7, 0xa7, 0xf8, 0xa8,
			0x18, 0x23, 0xd8, 0x6c, 0xaf, 0x65, 0xa2, 0x54,
		},
	},
	{
		.data_len = 2,
		.digest = {
			0x04, 0x13, 0xe2, 0x10, 0xbe, 0x65, 0xde, 0xce,
			0x61, 0xa8, 0xe0, 0xd6, 0x35, 0xb1, 0xb8, 0x88,
			0xd2, 0xea, 0x45, 0x3a, 0xe1, 0x8d, 0x94, 0xb5,
			0x66, 0x06, 0x98, 0x96, 0x39, 0xf8, 0x0e, 0xcb,
			0x34, 0xa6, 0xa8, 0x17, 0xfe, 0x56, 0xbc, 0xa9,
			0x5e, 0x1b, 0xb1, 0xde, 0x3c, 0xc7, 0x78, 0x4f,
			0x39, 0xc6, 0xfc, 0xa8, 0xb3, 0x27, 0x66, 0x3e,
			0x4e, 0xb5, 0x5d, 0x08, 0x89, 0xee, 0xd1, 0xe0,
		},
	},
	{
		.data_len = 3,
		.digest = {
			0x2b, 0x4a, 0xa3, 0x4e, 0x2b, 0x7a, 0x47, 0x20,
			0x30, 0x5b, 0x09, 0x17, 0x3a, 0xf4, 0xcc, 0xf0,
			0xf7, 0x7b, 0x97, 0x68, 0x98, 0x9f, 0x4f, 0x09,
			0x46, 0x25, 0xe7, 0xd6, 0x53, 0x6b, 0xf9, 0x68,
			0x48, 0x12, 0x44, 0x8c, 0x9a, 0xc8, 0xd4, 0x42,
			0xeb, 0x2c, 0x5f, 0x41, 0xba, 0x17, 0xd0, 0xc3,
			0xad, 0xfd, 0xfb, 0x42, 0x33, 0xcb, 0x08, 0x5d,
			0xd2, 0x5c, 0x3d, 0xde, 0x87, 0x4d, 0xd6, 0xe4,
		},
	},
	{
		.data_len = 16,
		.digest = {
			0xbf, 0x40, 0xf2, 0x38, 0x44, 0x8e, 0x24, 0x5e,
			0xbc, 0x67, 0xbb, 0xf0, 0x10, 0x9a, 0x79, 0xbb,
			0x36, 0x55, 0xce, 0xd2, 0xba, 0x04, 0x0d, 0xe8,
			0x30, 0x29, 0x5c, 0x2a, 0xa6, 0x3a, 0x4f, 0x37,
			0xac, 0x5f, 0xd4, 0x13, 0xa2, 0xf4, 0xfe, 0x80,
			0x61, 0xd7, 0x58, 0x66, 0x0c, 0x7f, 0xa2, 0x56,
			0x6b, 0x52, 0x7c, 0x22, 0x73, 0x7f, 0x17, 0xaa,
			0x91, 0x5a, 0x22, 0x06, 0xd9, 0x00, 0x48, 0x12,
		},
	},
	{
		.data_len = 32,
		.digest = {
			0x41, 0x04, 0x65, 0x93, 0x81, 0x9a, 0x20, 0x0a,
			0x00, 0x60, 0x00, 0x64, 0x4c, 0x04, 0x3d, 0xe0,
			0x6b, 0x17, 0x0c, 0xe1, 0x0e, 0x28, 0x8b, 0xa0,
			0x76, 0xd2, 0x79, 0xb0, 0x33, 0x60, 0x61, 0x27,
			0xf2, 0x64, 0xf1, 0x8a, 0xe5, 0x3e, 0xaa, 0x37,
			0x60, 0xad, 0x2d, 0x75, 0x13, 0xae, 0xd8, 0x9e,
			0xec, 0xe0, 0xe4, 0x40, 0x2f, 0x59, 0x44, 0xb0,
			0x66, 0x7a, 0x68, 0x38, 0xce, 0x21, 0x99, 0x2a,
		},
	},
	{
		.data_len = 48,
		.digest = {
			0x19, 0x6f, 0x9d, 0xc7, 0x87, 0x12, 0x5c, 0xa3,
			0xe2, 0xd3, 0xf1, 0x82, 0xec, 0xf3, 0x55, 0x9c,
			0x86, 0xd1, 0x6d, 0xde, 0xcf, 0x5b, 0xec, 0x4c,
			0x43, 0x25, 0x85, 0x90, 0xef, 0xe8, 0xe3, 0x5f,
			0x2c, 0x3a, 0x84, 0x07, 0xb8, 0x55, 0xfd, 0x5e,

Annotation

Implementation Notes