lib/crypto/tests/polyval-testvecs.h

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

File Facts

System
Linux kernel
Corpus path
lib/crypto/tests/polyval-testvecs.h
Extension
.h
Size
4089 bytes
Lines
187
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[POLYVAL_DIGEST_SIZE];
} hash_testvecs[] = {
	{
		.data_len = 0,
		.digest = {
			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
		},
	},
	{
		.data_len = 1,
		.digest = {
			0xb5, 0x51, 0x69, 0x89, 0xd4, 0x3c, 0x59, 0xca,
			0x6a, 0x1c, 0x2a, 0xe9, 0xa1, 0x9c, 0x6c, 0x83,
		},
	},
	{
		.data_len = 2,
		.digest = {
			0xf4, 0x50, 0xaf, 0x07, 0xda, 0x42, 0xa7, 0x41,
			0x4d, 0x24, 0x88, 0x87, 0xe3, 0x40, 0x73, 0x7c,
		},
	},
	{
		.data_len = 3,
		.digest = {
			0x9e, 0x88, 0x78, 0x71, 0x4c, 0x55, 0x87, 0xe8,
			0xb4, 0x96, 0x3d, 0x56, 0xc8, 0xb2, 0xe1, 0x68,
		},
	},
	{
		.data_len = 16,
		.digest = {
			0x9e, 0x81, 0x37, 0x8f, 0x49, 0xf7, 0xa2, 0xe4,
			0x04, 0x45, 0x12, 0x78, 0x45, 0x42, 0x27, 0xad,
		},
	},
	{
		.data_len = 32,
		.digest = {
			0x60, 0x19, 0xd0, 0xa4, 0xf0, 0xde, 0x9e, 0xe7,
			0x6a, 0x89, 0x1a, 0xea, 0x80, 0x14, 0xa9, 0xa3,
		},
	},
	{
		.data_len = 48,
		.digest = {
			0x0c, 0xa2, 0x70, 0x4d, 0x7c, 0x89, 0xac, 0x41,
			0xc2, 0x9e, 0x0d, 0x07, 0x07, 0x6a, 0x7f, 0xd5,
		},
	},
	{
		.data_len = 49,
		.digest = {
			0x91, 0xd3, 0xa9, 0x5c, 0x79, 0x3d, 0x6b, 0x84,
			0x99, 0x54, 0xa7, 0xb4, 0x06, 0x66, 0xfd, 0x1c,
		},
	},
	{
		.data_len = 63,
		.digest = {
			0x29, 0x37, 0xb8, 0xe5, 0xd8, 0x27, 0x4d, 0xfb,
			0x83, 0x4f, 0x67, 0xf7, 0xf9, 0xc1, 0x0a, 0x9d,
		},
	},
	{
		.data_len = 64,
		.digest = {
			0x17, 0xa9, 0x06, 0x2c, 0xf3, 0xe8, 0x2e, 0xa6,
			0x6b, 0xb2, 0x1f, 0x5d, 0x94, 0x3c, 0x02, 0xa2,
		},
	},
	{
		.data_len = 65,
		.digest = {
			0x7c, 0x80, 0x74, 0xd7, 0xa1, 0x37, 0x30, 0x64,
			0x3b, 0xa4, 0xa3, 0x98, 0xde, 0x47, 0x10, 0x23,
		},
	},
	{
		.data_len = 127,
		.digest = {
			0x27, 0x3a, 0xcf, 0xf5, 0xaf, 0x9f, 0xd8, 0xd8,
			0x2d, 0x6a, 0x91, 0xfb, 0xb8, 0xfa, 0xbe, 0x0c,
		},
	},
	{
		.data_len = 128,

Annotation

Implementation Notes