Versions in this module Expand all Collapse all v1 v1.0.0 Sep 9, 2017 Changes in this version + func ValidateParams(hashAlg string, curve string, encoding string) error + type EcdsaSign struct + func NewEcdsaSign(hashAlg string, curve string, encoding string, keyValue []byte) (*EcdsaSign, error) + func NewEcdsaSignFromPrivateKey(hashAlg string, encoding string, privateKey *ecdsa.PrivateKey) (*EcdsaSign, error) + func (e *EcdsaSign) Sign(data []byte) ([]byte, error) + type EcdsaSignature struct + R *big.Int + S *big.Int + func DecodeSignature(encodedBytes []byte, encoding string) (*EcdsaSignature, error) + func NewSignature(r, s *big.Int) *EcdsaSignature + func (sig *EcdsaSignature) Encode(encoding string) ([]byte, error) + type EcdsaVerify struct + func NewEcdsaVerify(hashAlg string, curve string, encoding string, x []byte, y []byte) (*EcdsaVerify, error) + func NewEcdsaVerifyFromPublicKey(hashAlg string, encoding string, publicKey *ecdsa.PublicKey) (*EcdsaVerify, error) + func (e *EcdsaVerify) Verify(signatureBytes []byte, data []byte) error