package
1.7.0
Repository: https://github.com/google/tink.git
Documentation: pkg.go.dev

# Packages

Package subtle provides subtle implementations of the digital signature primitive.

# Functions

ECDSAP256KeyTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA256 - Curve: NIST P-256 - Signature encoding: DER - Output prefix type: TINK.
ECDSAP256KeyWithoutPrefixTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA256 - Curve: NIST P-256 - Signature encoding: DER - Output prefix type: RAW Note that this template uses a different encoding than ESDSA_P256_RAW in Tinkey.
ECDSAP256RawKeyTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA256 - Curve: NIST P-256 - Signature encoding: IEEE_P1363 - Output prefix type: RAW.
ECDSAP384KeyTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA512 - Curve: NIST P-384 - Signature encoding: DER - Output prefix type: TINK Deprecated: Use [ECDSAP384SHA384KeyTemplate] or [ECDSAP384SHA512KeyTemplate] instead.
ECDSAP384KeyWithoutPrefixTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA512 - Curve: NIST P-384 - Signature encoding: DER - Output prefix type: RAW.
ECDSAP384SHA384KeyTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA384 - Curve: NIST P-384 - Signature encoding: DER - Output prefix type: TINK.
ECDSAP384SHA512KeyTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA512 - Curve: NIST P-384 - Signature encoding: DER - Output prefix type: TINK.
ECDSAP521KeyTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA512 - Curve: NIST P-521 - Signature encoding: DER - Output prefix type: TINK.
ECDSAP521KeyWithoutPrefixTemplate is a KeyTemplate that generates a new ECDSA private key with the following parameters: - Hash function: SHA512 - Curve: NIST P-521 - Signature encoding: DER - Output prefix type: TINK.
ED25519KeyTemplate is a KeyTemplate that generates a new ED25519 private key.
ED25519KeyWithoutPrefixTemplate is a KeyTemplate that generates a new ED25519 private key.
NewSigner returns a Signer primitive from the given keyset handle.
NewSignerWithKeyManager returns a Signer primitive from the given keyset handle and custom key manager.
NewVerifier returns a Verifier primitive from the given keyset handle.
NewVerifierWithKeyManager returns a Verifier primitive from the given keyset handle and custom key manager.
RSA_SSA_PKCS1_3072_SHA256_F4_Key_Template is a KeyTemplate that generates a new RSA SSA PKCS1 private key with the following parameters: - Modulus size in bits: 3072.
RSA_SSA_PKCS1_3072_SHA256_F4_RAW_Key_Template is a KeyTemplate that generates a new RSA SSA PKCS1 private key with the following parameters: - Modulus size in bits: 3072.
RSA_SSA_PKCS1_4096_SHA512_F4_Key_Template is a KeyTemplate that generates a new RSA SSA PKCS1 private key with the following parameters: - Modulus size in bits: 4096.
RSA_SSA_PKCS1_4096_SHA512_F4_RAW_Key_Template is a KeyTemplate that generates a new RSA SSA PKCS1 private key with the following parameters: - Modulus size in bits: 4096.