Documentation ¶
Index ¶
- func GetCurveHalfOrdersAt(c elliptic.Curve) *big.Int
- func GetSHA256HASH(data string) []byte
- func IsLowS(k *ecdsa.PublicKey, s *big.Int) (bool, error)
- func LoadPrivateKey(privateKey string) (*ecdsa.PrivateKey, error)
- func LoadPrivateKeyByFile(file string) (*ecdsa.PrivateKey, error)
- func LoadPublicKey(cert string) (*ecdsa.PublicKey, error)
- func LoadPublicKeyByFile(file string) (*ecdsa.PublicKey, error)
- func LoadPublicKeyNotCert(cert string) (*ecdsa.PublicKey, error)
- func NewEcdsaR1Handle(pub, pri string) (*ecdsaHandle, error)
- func SignECDSA(k *ecdsa.PrivateKey, digest []byte) (signature []byte, err error)
- func ToLowS(k *ecdsa.PublicKey, s *big.Int) (*big.Int, bool, error)
- func UnmarshalECDSASignature(raw []byte) (*big.Int, *big.Int, error)
- func VerifyECDSA(k *ecdsa.PublicKey, signature, digest []byte) (bool, error)
- type ECDSASignature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLowS ¶
IsLow checks that s is a low-S
func LoadPrivateKey ¶
func LoadPrivateKey(privateKey string) (*ecdsa.PrivateKey, error)
func LoadPrivateKeyByFile ¶
func LoadPrivateKeyByFile(file string) (*ecdsa.PrivateKey, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.