Documentation
      ¶
    
    
  
    
  
    Index ¶
- func DERKeyTemplate() (*tinkpb.KeyTemplate, error)
 - func IEEEP1363KeyTemplate() (*tinkpb.KeyTemplate, error)
 - func NewSigner(h *keyset.Handle) (tink.Signer, error)
 - func NewSignerWithKeyManager(h *keyset.Handle, km registry.KeyManager) (tink.Signer, error)
 - func NewVerifier(h *keyset.Handle) (tink.Verifier, error)
 - func NewVerifierWithKeyManager(h *keyset.Handle, km registry.KeyManager) (tink.Verifier, error)
 - func ValidateSecp256K1Params(hashAlg, curve, encoding string) error
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DERKeyTemplate ¶
func DERKeyTemplate() (*tinkpb.KeyTemplate, error)
DERKeyTemplate is a KeyTemplate that generates a new ECDSA secp256k1 private key with the following parameters:
- Hash function: SHA256
 - Curve: secp256k1
 - Signature encoding: DER
 - Output prefix type: TINK
 
func IEEEP1363KeyTemplate ¶
func IEEEP1363KeyTemplate() (*tinkpb.KeyTemplate, error)
IEEEP1363KeyTemplate is a KeyTemplate that generates a new ECDSA secp256k1 private key with the following parameters:
- Hash function: SHA256
 - Curve: secp256k1
 - Signature encoding: IEEE-P1363
 - Output prefix type: TINK
 
func NewSignerWithKeyManager ¶
NewSignerWithKeyManager returns a Signer primitive from the given keyset handle and custom key manager. Deprecated: register the KeyManager and use New above.
func NewVerifier ¶
NewVerifier returns a Verifier primitive from the given keyset handle.
func NewVerifierWithKeyManager ¶
NewVerifierWithKeyManager returns a Verifier primitive from the given keyset handle and custom key manager. Deprecated: register the KeyManager and use New above.
func ValidateSecp256K1Params ¶
ValidateSecp256K1Params validates ECDSA parameters. The hash's strength must not be weaker than the curve's strength. DER and IEEE_P1363 encodings are supported.
Types ¶
This section is empty.