package ed25519
Import Path
crypto/internal/fips140/ed25519 (on go.dev )
Dependency Relation
imports 9 packages , and imported by one package
Package-Level Type Names (total 2, both are exported)
/* sort exporteds by: alphabet | popularity */
type PrivateKey (struct)
Fields (total 4, none are exported )
/* 4 unexporteds ... */ /* 4 unexporteds: */
prefix [32]byte
pub [32]byte
s edwards25519 .Scalar
seed [32]byte
Methods (total 3, all are exported )
(*PrivateKey) Bytes () []byte
(*PrivateKey) PublicKey () []byte
(*PrivateKey) Seed () []byte
As Outputs Of (at least 6, in which 3 are exported )
func GenerateKey () (*PrivateKey , error )
func NewPrivateKey (priv []byte ) (*PrivateKey , error )
func NewPrivateKeyFromSeed (seed []byte ) (*PrivateKey , error )
/* 3+ unexporteds ... */ /* 3+ unexporteds: */
func generateKey (priv *PrivateKey ) (*PrivateKey , error )
func newPrivateKey (priv *PrivateKey , privBytes []byte ) (*PrivateKey , error )
func newPrivateKeyFromSeed (priv *PrivateKey , seed []byte ) (*PrivateKey , error )
As Inputs Of (at least 14, in which 3 are exported )
func Sign (priv *PrivateKey , message []byte ) []byte
func SignCtx (priv *PrivateKey , message []byte , context string ) ([]byte , error )
func SignPH (priv *PrivateKey , message []byte , context string ) ([]byte , error )
/* 11+ unexporteds ... */ /* 11+ unexporteds: */
func fipsPCT (k *PrivateKey )
func generateKey (priv *PrivateKey ) (*PrivateKey , error )
func newPrivateKey (priv *PrivateKey , privBytes []byte ) (*PrivateKey , error )
func newPrivateKeyFromSeed (priv *PrivateKey , seed []byte ) (*PrivateKey , error )
func pairwiseTest (k *PrivateKey ) error
func precomputePrivateKey (priv *PrivateKey )
func sign (signature []byte , priv *PrivateKey , message []byte ) []byte
func signCtx (signature []byte , priv *PrivateKey , message []byte , context string ) ([]byte , error )
func signPH (signature []byte , priv *PrivateKey , message []byte , context string ) ([]byte , error )
func signWithDom (signature []byte , priv *PrivateKey , message []byte , domPrefix, context string ) []byte
func signWithoutSelfTest (priv *PrivateKey , message []byte ) []byte
type PublicKey (struct)
Fields (total 2, neither is exported )
/* 2 unexporteds ... */ /* 2 unexporteds: */
a edwards25519 .Point
aBytes [32]byte
Methods (only one, which is exported )
(*PublicKey) Bytes () []byte
As Outputs Of (at least 2, in which 1 is exported )
func NewPublicKey (pub []byte ) (*PublicKey , error )
/* at least one unexported ... */ /* at least one unexported: */
func newPublicKey (pub *PublicKey , pubBytes []byte ) (*PublicKey , error )
As Inputs Of (at least 7, in which 3 are exported )
func Verify (pub *PublicKey , message, sig []byte ) error
func VerifyCtx (pub *PublicKey , message []byte , sig []byte , context string ) error
func VerifyPH (pub *PublicKey , message []byte , sig []byte , context string ) error
/* 4+ unexporteds ... */ /* 4+ unexporteds: */
func newPublicKey (pub *PublicKey , pubBytes []byte ) (*PublicKey , error )
func verify (pub *PublicKey , message, sig []byte ) error
func verifyWithDom (pub *PublicKey , message, sig []byte , domPrefix, context string ) error
func verifyWithoutSelfTest (pub *PublicKey , message, sig []byte ) error
The pages are generated with Golds v0.8.4 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .