mirror of
https://github.com/luxfi/crypto.git
synced 2026-11-03 07:20:43 +00:00
21 lines
688 B
Go
21 lines
688 B
Go
//go:build cgo
|
|
// +build cgo
|
|
|
|
package slhdsa
|
|
|
|
// This file contains CGO-optimized implementations that are only compiled
|
|
// when CGO is explicitly enabled with CGO_ENABLED=1
|
|
//
|
|
// CGO optimizations reserved - currently using pure Go implementation.
|
|
// Future optimizations could include:
|
|
// - SLH-DSA-SHA2-128s/f, 192s/f, 256s/f from NIST reference implementation
|
|
// - SPHINCS+ optimized implementations
|
|
// - AVX2/AVX512 optimizations for hash functions
|
|
// - NEON optimizations for ARM64
|
|
// - Parallel tree traversal optimizations
|
|
//
|
|
// The pure Go implementation provides:
|
|
// - Full SLH-DSA compliance with FIPS 205
|
|
// - Stateless hash-based signatures
|
|
// - Cross-platform compatibility
|