Documentation
¶
Overview ¶
Package common provides shared helper functions used across multiple cryptographic sub-packages to eliminate code duplication. This package is a leaf dependency and must not import other project packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func GenerateKeyPair(name string, genFunc func() ([]byte, []byte, error), log *logger.Logger) ([]byte, []byte, error)
GenerateKeyPair generates a cryptographic key pair using the provided generation function, logging the operation with the given algorithm name. It returns raw public and private key bytes for the caller to convert to package-specific types. This consolidates the duplicated key generation pattern shared by ed25519, ed25519ph, and red25519 packages.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.