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

# Functions

ComputeSharedSecret is used to compute a shared secret using given private key and peer public key.
GenerateECDHKeyPair will create a new private key for a given curve.
GetCurve returns the elliptic.Curve for a given standard curve name.
GetECPrivateKey converts a stored private key to ECPrivateKey.
KeysetHandleFromSerializedPublicKey returns a keyset handle containing a primary key that has the specified pubKeyBytes and matches template.
NewECIESAEADHKDFHybridDecrypt returns ECIES decryption construct with HKDF-KEM (key encapsulation mechanism) and AEAD-DEM (data encapsulation mechanism).
NewECIESAEADHKDFHybridEncrypt returns ECIES encryption construct with HKDF-KEM (key encapsulation mechanism) and AEAD-DEM (data encapsulation mechanism).
PointDecode decodes a encoded point to return an ECPoint.
PointEncode encodes a point into the format specified.
SerializePrimaryPublicKey serializes a public keyset handle's primary key if the primary key is a public key and matches both the template argument and a supported template.

# Structs

ECIESAEADHKDFHybridDecrypt is an instance of ECIES decryption with HKDF-KEM (key encapsulation mechanism) and AEAD-DEM (data encapsulation mechanism).
ECIESAEADHKDFHybridEncrypt is an instance of ECIES encryption with HKDF-KEM (key encapsulation mechanism) and AEAD-DEM (data encapsulation mechanism).
ECIESHKDFRecipientKem represents a HKDF-based KEM (key encapsulation mechanism) for ECIES recipient.
ECIESHKDFSenderKem represents HKDF-based ECIES-KEM (key encapsulation mechanism)for ECIES sender.
ECPoint represents a point on the elliptic curve.
ECPrivateKey represents a elliptic curve private key.
ECPublicKey represents a elliptic curve public key.
KEMKey represents a KEM managed key.

# Interfaces

EciesAEADHKDFDEMHelper a helper for DEM (data encapsulation mechanism) of ECIES-AEAD-HKDF.