Documentation ¶
Overview ¶
Package composite provides the core crypto composite primitives such as ECDH-ES and ECDH-1PU to be used by JWE crypto
Index ¶
Constants ¶
const ( // AESCBCHMACAEADTypeURL for AESCBC+HMAC AEAD content encryption URL. AESCBCHMACAEADTypeURL = composite.AESCBCHMACAEADTypeURL // AESGCMTypeURL for AESGCM content encryption URL identifier. AESGCMTypeURL = composite.AESGCMTypeURL // ChaCha20Poly1305TypeURL for Chacha20Poly1305 content encryption URL identifier. ChaCha20Poly1305TypeURL = composite.ChaCha20Poly1305TypeURL // XChaCha20Poly1305TypeURL for XChachaPoly1305 content encryption URL identifier. XChaCha20Poly1305TypeURL = composite.XChaCha20Poly1305TypeURL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncryptedData ¶
type EncryptedData = composite.EncryptedData
EncryptedData represents the Encryption's output data as a result of ECDHEncrypt.Encrypt(pt, aad) call The user of the primitive must unmarshal the result and build their own ECDH-ES/1PU compliant message (ie JWE msg).
type EncrypterHelper ¶
type EncrypterHelper = composite.EncrypterHelper
EncrypterHelper is a helper for Content Encryption of composite ECDH (ES/1PU) key wrapping + AEAD content encryption This interface is used internally by the composite primitives.
type RegisterCompositeAEADEncHelper ¶
type RegisterCompositeAEADEncHelper = composite.RegisterCompositeAEADEncHelper
RegisterCompositeAEADEncHelper registers a content encryption helper.
func NewRegisterCompositeAEADEncHelper ¶
func NewRegisterCompositeAEADEncHelper(k *tinkpb.KeyTemplate) (*RegisterCompositeAEADEncHelper, error)
NewRegisterCompositeAEADEncHelper initializes and returns a RegisterCompositeAEADEncHelper.