lib/crypto/arm/poly1305.h

Source file repositories/reference/linux-study-clean/lib/crypto/arm/poly1305.h

File Facts

System
Linux kernel
Corpus path
lib/crypto/arm/poly1305.h
Extension
.h
Size
1562 bytes
Lines
52
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_branch_likely(&have_neon) && likely(may_use_simd())) {
		do {
			unsigned int todo = min_t(unsigned int, len, SZ_4K);

			scoped_ksimd()
				poly1305_blocks_neon(state, src, todo, padbit);

			len -= todo;
			src += todo;
		} while (len);
	} else
		poly1305_blocks_arm(state, src, len, padbit);
}

#ifdef CONFIG_KERNEL_MODE_NEON
#define poly1305_mod_init_arch poly1305_mod_init_arch
static void poly1305_mod_init_arch(void)
{
	if (elf_hwcap & HWCAP_NEON)
		static_branch_enable(&have_neon);
}
#endif /* CONFIG_KERNEL_MODE_NEON */

Annotation

Implementation Notes