common

package
v0.1.59999 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL