composite

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 3

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

View Source
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.

Directories

Path Synopsis
Package ecdh provides implementations of payload encryption using ECDH-ES/1PU KW key wrapping with AEAD primitives.
Package ecdh provides implementations of payload encryption using ECDH-ES/1PU KW key wrapping with AEAD primitives.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL