lib/crypto/tests/sha1-testvecs.h
Source file repositories/reference/linux-study-clean/lib/crypto/tests/sha1-testvecs.h
File Facts
- System
- Linux kernel
- Corpus path
lib/crypto/tests/sha1-testvecs.h- Extension
.h- Size
- 4772 bytes
- Lines
- 213
- 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.
- Shared kernel service surface used by multiple subsystems, including helpers, cryptography, virtualization support, and async I/O infrastructure.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
static const struct {
size_t data_len;
u8 digest[SHA1_DIGEST_SIZE];
} hash_testvecs[] = {
{
.data_len = 0,
.digest = {
0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d,
0x32, 0x55, 0xbf, 0xef, 0x95, 0x60, 0x18, 0x90,
0xaf, 0xd8, 0x07, 0x09,
},
},
{
.data_len = 1,
.digest = {
0x0a, 0xd0, 0x52, 0xdd, 0x9f, 0x32, 0x40, 0x55,
0x21, 0xe4, 0x3c, 0x6e, 0xbd, 0xc5, 0x2f, 0x5a,
0x02, 0x54, 0x93, 0xb2,
},
},
{
.data_len = 2,
.digest = {
0x13, 0x83, 0x82, 0x03, 0x23, 0xff, 0x46, 0xd6,
0x12, 0x7f, 0xad, 0x05, 0x2b, 0xc3, 0x4a, 0x42,
0x49, 0x6a, 0xf8, 0x84,
},
},
{
.data_len = 3,
.digest = {
0xe4, 0xdf, 0x7b, 0xdc, 0xe8, 0x6e, 0x81, 0x97,
0x1e, 0x0f, 0xe8, 0x8b, 0x76, 0xa8, 0x59, 0x04,
0xae, 0x92, 0x1a, 0x7c,
},
},
{
.data_len = 16,
.digest = {
0x8c, 0x1c, 0x30, 0xd8, 0xbc, 0xc4, 0xc3, 0xf5,
0xf8, 0x83, 0x0d, 0x1e, 0x04, 0x5d, 0x29, 0xb5,
0x68, 0x89, 0xc1, 0xe9,
},
},
{
.data_len = 32,
.digest = {
0x6c, 0x1d, 0x72, 0x31, 0xa5, 0x03, 0x4f, 0xdc,
0xff, 0x2d, 0x06, 0x3e, 0x24, 0x26, 0x34, 0x8d,
0x60, 0xa4, 0x67, 0x16,
},
},
{
.data_len = 48,
.digest = {
0x37, 0x53, 0x33, 0xfa, 0xd0, 0x21, 0xad, 0xe7,
0xa5, 0x43, 0xf1, 0x94, 0x64, 0x11, 0x47, 0x9c,
0x72, 0xb5, 0x78, 0xb4,
},
},
{
.data_len = 49,
.digest = {
0x51, 0x5c, 0xd8, 0x5a, 0xa9, 0xde, 0x7b, 0x2a,
0xa2, 0xff, 0x70, 0x09, 0x56, 0x88, 0x40, 0x2b,
0x50, 0x93, 0x82, 0x47,
},
},
{
.data_len = 63,
.digest = {
0xbc, 0x9c, 0xab, 0x93, 0x06, 0xd5, 0xdb, 0xac,
0x2c, 0x33, 0x15, 0x83, 0x56, 0xf6, 0x91, 0x20,
0x09, 0xc7, 0xb2, 0x6b,
},
},
{
.data_len = 64,
.digest = {
0x26, 0x90, 0x3b, 0x47, 0xe1, 0x92, 0x42, 0xd0,
0x85, 0x63, 0x2e, 0x6b, 0x68, 0xa4, 0xc4, 0x4c,
0xe6, 0xf4, 0xb0, 0x52,
},
},
{
.data_len = 65,
.digest = {
0x55, 0x6f, 0x87, 0xdc, 0x34, 0x3d, 0xe2, 0x4f,
0xc3, 0x81, 0xa4, 0x82, 0x79, 0x84, 0x64, 0x01,
0x55, 0xa0, 0x1e, 0x36,
Annotation
- Atlas domain: Kernel Services / lib.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.