Documentation ¶
Index ¶
- Constants
- func GetPrimaryKey(ctx context.Context, kmsKey, hcVaultToken string) (tink.AEAD, error)
- func KeyHandleToSigner(kh *keyset.Handle) (crypto.Signer, error)
- func NewCryptoSigner(ctx context.Context, ...) (crypto.Signer, error)
- func NewTimestampingCertWithChain(signer crypto.Signer) ([]*x509.Certificate, error)
- func NewTinkSigner(ctx context.Context, tinkKeysetPath string, primaryKey tink.AEAD) (crypto.Signer, error)
- type File
Constants ¶
View Source
const FileScheme = "file"
View Source
const KMSScheme = "kms"
View Source
const MemoryScheme = "memory"
View Source
const TinkScheme = "tink"
Variables ¶
This section is empty.
Functions ¶
func GetPrimaryKey ¶
GetPrimaryKey returns a Tink AEAD encryption key from KMS Supports GCP, AWS, and Vault
func KeyHandleToSigner ¶
KeyHandleToSigner converts a key handle to the crypto.Signer interface. Heavily pulls from Tink's signature and subtle packages.
func NewCryptoSigner ¶
func NewTimestampingCertWithChain ¶
func NewTimestampingCertWithChain(signer crypto.Signer) ([]*x509.Certificate, error)
NewTimestampingCertWithChain generates an in-memory certificate chain.
Types ¶
Click to show internal directories.
Click to hide internal directories.