Versions in this module Expand all Collapse all v1 v1.0.0 Jan 6, 2017 Changes in this version + type CurvePoint struct + R *big.Int + S *big.Int + type ECDSASignerVerifier struct + func NewECDSASignerVerifier(hashtype crypto.Hash) (*ECDSASignerVerifier, error) + func NewECDSASignerVerifierWithKey(key *ecdsa.PrivateKey) (*ECDSASignerVerifier, error) + func (sv *ECDSASignerVerifier) Alg() string + func (sv *ECDSASignerVerifier) Sign(message []byte) ([]byte, error) + func (sv *ECDSASignerVerifier) Verify(message []byte, messageMac []byte) (bool, error) + type HSSignerVerifier struct + func NewHSSignerVerifier(hashtype crypto.Hash) (*HSSignerVerifier, error) + func NewHSSignerVerifierWithKey(key []byte, hashtype crypto.Hash) (*HSSignerVerifier, error) + func (sv *HSSignerVerifier) Alg() string + func (sv *HSSignerVerifier) Sign(message []byte) ([]byte, error) + func (sv *HSSignerVerifier) Verify(message []byte, messageMac []byte) (bool, error) + type NoneSignerVerifier struct + func (sv *NoneSignerVerifier) Alg() string + func (sv *NoneSignerVerifier) Sign(message []byte) ([]byte, error) + func (sv *NoneSignerVerifier) Verify(message []byte, messageMac []byte) (bool, error) + type RSAPSSSignerVerifier struct + func NewRSAPSSSignerVerifier(hashtype crypto.Hash) (*RSAPSSSignerVerifier, error) + func NewRSAPSSSignerVerifierWithKey(hashtype crypto.Hash, key *rsa.PrivateKey) (*RSAPSSSignerVerifier, error) + func (sv *RSAPSSSignerVerifier) Alg() string + func (sv *RSAPSSSignerVerifier) Sign(message []byte) ([]byte, error) + func (sv *RSAPSSSignerVerifier) Verify(message []byte, messageMac []byte) (bool, error) + type RSASSASignerVerifier struct + func NewRSASSASignerVerifier(hashtype crypto.Hash) (*RSASSASignerVerifier, error) + func NewRSASSASignerVerifierWithKey(hashtype crypto.Hash, key *rsa.PrivateKey) (*RSASSASignerVerifier, error) + func (sv *RSASSASignerVerifier) Alg() string + func (sv *RSASSASignerVerifier) Sign(message []byte) ([]byte, error) + func (sv *RSASSASignerVerifier) Verify(message []byte, messageMac []byte) (bool, error) + type SignerVerifier interface + Alg func() string + Sign func(payload []byte) ([]byte, error) + Verify func(payload []byte, messageMac []byte) (bool, error)