Versions in this module Expand all Collapse all v0 v0.1.2 Dec 2, 2021 Changes in this version + const AlgoP256K1 + const AlgoP256K1Recover + const AlgoP256R1 + const AlgoP384R1 + const AlgoP521R1 + const AlgoRSA2048 + const AlgoRSA3072 + const AlgoRSA4096 + const AlgorithmNone + func Copy(in *big.Int) *big.Int + func Get32BYtes() []byte + func GetBig() *big.Int + func Put32Bytes(in []byte) + func PutBig(in *big.Int) + type ECDSA struct + Opt int + func NewECDSA(opt int) *ECDSA + func (sv *ECDSA) Sign(k []byte, digest []byte, reader io.Reader) (signature []byte, err error) + func (sv *ECDSA) Verify(k []byte, signature, digest []byte) (valid bool, err error) + type ECDSAPrivateKey struct + D *big.Int + func GenerateKey(opt int) (*ECDSAPrivateKey, error) + func (key *ECDSAPrivateKey) Bytes() ([]byte, error) + func (key *ECDSAPrivateKey) CalculatePublicKey() *ECDSAPrivateKey + func (key *ECDSAPrivateKey) FromBytes(k []byte, opt int) error + func (key *ECDSAPrivateKey) Public() std.PublicKey + func (key *ECDSAPrivateKey) SetPublicKey(k *ECDSAPublicKey) *ECDSAPrivateKey + func (key *ECDSAPrivateKey) Sign(k, digest []byte, reader io.Reader) (signature []byte, err error) + type ECDSAPublicKey struct + X *big.Int + Y *big.Int + func (key *ECDSAPublicKey) AlgorithmType() int + func (key *ECDSAPublicKey) Bytes() ([]byte, error) + func (key *ECDSAPublicKey) FromBytes(k []byte, opt int) error + func (key *ECDSAPublicKey) Verify(_ []byte, signature, digest []byte) (valid bool, err error) + type ECDSASignature struct + R *big.Int + S *big.Int v0.1.1 Jul 21, 2021