package
0.0.0-20241007201740-e151f76f08af
Repository: https://github.com/tkhq/go-sdk.git
Documentation: pkg.go.dev
# Functions
DecodeTurnkeyPrivateKey takes a Turnkey-encoded private key and creates a KEM private key.
DecodeTurnkeyPublicKey takes a Turnkey-encoded public key and creates a KEM public key.
EncodePrivateKey encodes a KEM private key into the Turnkey format.
EncodePublicKey encodes a KEM public key into the Turnkey format.
FromKemPrivateKey takes a HPKE KEM keypair and forms a Turnkey encryption key from it.
FromTurnkeyPrivateKey takes a Turnkey-encoded private key, derives a public key from it, and then returns the corresponding Turnkey API key.
New generates a new Turnkey encryption key.
# Constants
KemID for HPKE protocol.