fs/crypto/hkdf.c

Source file repositories/reference/linux-study-clean/fs/crypto/hkdf.c

File Facts

System
Linux kernel
Corpus path
fs/crypto/hkdf.c
Extension
.c
Size
4020 bytes
Lines
101
Domain
Core OS
Bucket
VFS And Filesystem Core
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

if (okmlen - i < HKDF_HASHLEN) {
			hmac_sha512_final(&ctx, tmp);
			memcpy(&okm[i], tmp, okmlen - i);
			memzero_explicit(tmp, sizeof(tmp));
		} else {
			hmac_sha512_final(&ctx, &okm[i]);
		}
		counter++;
	}
}

Annotation

Implementation Notes