Versions in this module Expand all Collapse all v1 v1.0.1 May 8, 2026 Changes in this version + var ErrKeyMustBePEMEncoded = errors.New(...) + var ErrNotEdPrivateKey = errors.New("go-cryptobin/eddsa: key is not a valid Ed25519 private key") + var ErrNotEdPublicKey = errors.New("go-cryptobin/eddsa: key is not a valid Ed25519 public key") + var GetCipherFromName = pkcs8.GetCipherFromName + var GetHashFromName = pkcs8.GetHashFromName + type EdDSA struct + Errors []error + func FromBase64String(data string) EdDSA + func FromBytes(data []byte) EdDSA + func FromHexString(data string) EdDSA + func FromPrivateKey(key []byte) EdDSA + func FromPrivateKeySeed(seed []byte) EdDSA + func FromPrivateKeyWithPassword(key []byte, password string) EdDSA + func FromPublicKey(key []byte) EdDSA + func FromString(data string) EdDSA + func GenerateKey() EdDSA + func GenerateKeyWithSeed(reader io.Reader) EdDSA + func New() EdDSA + func NewEdDSA() EdDSA + func (this EdDSA) AppendError(err ...error) EdDSA + func (this EdDSA) CheckKeyPair() bool + func (this EdDSA) CreatePrivateKey() EdDSA + func (this EdDSA) CreatePrivateKeyWithPassword(password string, opts ...any) EdDSA + func (this EdDSA) CreatePublicKey() EdDSA + func (this EdDSA) Error() error + func (this EdDSA) FromBase64String(data string) EdDSA + func (this EdDSA) FromBytes(data []byte) EdDSA + func (this EdDSA) FromHexString(data string) EdDSA + func (this EdDSA) FromPrivateKey(key []byte) EdDSA + func (this EdDSA) FromPrivateKeyDer(der []byte) EdDSA + func (this EdDSA) FromPrivateKeySeed(seed []byte) EdDSA + func (this EdDSA) FromPrivateKeyString(keyString string) EdDSA + func (this EdDSA) FromPrivateKeyWithPassword(key []byte, password string) EdDSA + func (this EdDSA) FromPublicKey(key []byte) EdDSA + func (this EdDSA) FromPublicKeyDer(der []byte) EdDSA + func (this EdDSA) FromPublicKeyString(keyString string) EdDSA + func (this EdDSA) FromString(data string) EdDSA + func (this EdDSA) GenerateKey() EdDSA + func (this EdDSA) GenerateKeyWithSeed(reader io.Reader) EdDSA + func (this EdDSA) GetData() []byte + func (this EdDSA) GetErrors() []error + func (this EdDSA) GetKeyData() []byte + func (this EdDSA) GetOptions() *Options + func (this EdDSA) GetParsedData() []byte + func (this EdDSA) GetPrivateKey() ed25519.PrivateKey + func (this EdDSA) GetPrivateKeySeed() []byte + func (this EdDSA) GetPrivateKeySeedString() string + func (this EdDSA) GetPrivateKeyString() string + func (this EdDSA) GetPublicKey() ed25519.PublicKey + func (this EdDSA) GetPublicKeyString() string + func (this EdDSA) GetVerify() bool + func (this EdDSA) MakeKeyDer() EdDSA + func (this EdDSA) MakePublicKey() EdDSA + func (this EdDSA) OnError(fn func([]error)) EdDSA + func (this EdDSA) ParsePrivateKeyFromPEM(key []byte) (crypto.PrivateKey, error) + func (this EdDSA) ParsePrivateKeyFromPEMWithPassword(key []byte, password string) (crypto.PrivateKey, error) + func (this EdDSA) ParsePublicKeyFromPEM(key []byte) (crypto.PublicKey, error) + func (this EdDSA) SetOptions(name string, context ...string) EdDSA + func (this EdDSA) Sign() EdDSA + func (this EdDSA) ToBase64String() string + func (this EdDSA) ToBytes() []byte + func (this EdDSA) ToHexString() string + func (this EdDSA) ToKeyBytes() []byte + func (this EdDSA) ToKeyString() string + func (this EdDSA) ToString() string + func (this EdDSA) ToVerify() bool + func (this EdDSA) ToVerifyInt() int + func (this EdDSA) Verify(data []byte) EdDSA + func (this EdDSA) WithData(data []byte) EdDSA + func (this EdDSA) WithErrors(errs []error) EdDSA + func (this EdDSA) WithOptions(op *Options) EdDSA + func (this EdDSA) WithParsedData(data []byte) EdDSA + func (this EdDSA) WithPrivateKey(data ed25519.PrivateKey) EdDSA + func (this EdDSA) WithPublicKey(data ed25519.PublicKey) EdDSA + func (this EdDSA) WithVerify(data bool) EdDSA + type Options = ed25519.Options + type Opts = pkcs8.Opts + type PBKDF2Opts = pkcs8.PBKDF2Opts + type ScryptOpts = pkcs8.ScryptOpts