Documentation ¶
Overview ¶
Package eckcdsa implements the EC-KCDSA(Korean Certificate-based Digital Signature Algorithm using Elliptic Curves) as defined in TTAK.KO-12.0015/R3
Index ¶
- Variables
- func Sign(randReader io.Reader, priv *PrivateKey, h hash.Hash, M []byte) (r, s *big.Int, err error)
- func SignUsingK(k *big.Int, priv *PrivateKey, h hash.Hash, M []byte) (r, s *big.Int, err error)
- func Verify(pub *PublicKey, h hash.Hash, M []byte, r, s *big.Int) bool
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParametersNotSetUp = errors.New("krypto/eckcdsa: parameters not set up before generating key") ErrInvalidK = errors.New("krypto/eckcdsa: use another K") )
Functions ¶
func SignUsingK ¶
Sign data using K Specified
Types ¶
type PrivateKey ¶
func GenerateKey ¶
Generate the paramters
func (*PrivateKey) Public ¶ added in v1.2.2
func (priv *PrivateKey) Public() crypto.PublicKey
Public returns the public key corresponding to priv.
Click to show internal directories.
Click to hide internal directories.