subtle

package
v0.1.6-0...-5c25bcb Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDHAEADCompositeDecrypt

type ECDHAEADCompositeDecrypt struct {
	// contains filtered or unexported fields
}

ECDHAEADCompositeDecrypt is an instance of AES-GCM decryption in the context of ECDH/concat kdf WK of CEK and AEAD content decryption.

func NewECDHAEADCompositeDecrypt

func NewECDHAEADCompositeDecrypt(encHelper composite.EncrypterHelper, cek []byte) *ECDHAEADCompositeDecrypt

NewECDHAEADCompositeDecrypt returns ECDH composite decryption construct with Concat KDF/ECDH-ES key unwrapping and AEAD payload decryption.

func (*ECDHAEADCompositeDecrypt) Decrypt

func (d *ECDHAEADCompositeDecrypt) Decrypt(ciphertext, aad []byte) ([]byte, error)

Decrypt using composite ECDH-ES with a Concat KDF key unwrap and AEAD content decryption.

type ECDHAEADCompositeEncrypt

type ECDHAEADCompositeEncrypt struct {
	// contains filtered or unexported fields
}

ECDHAEADCompositeEncrypt is an instance of ECDH-ES encryption with Concat KDF and AEAD content encryption.

func NewECDHAEADCompositeEncrypt

func NewECDHAEADCompositeEncrypt(encHelper composite.EncrypterHelper, cek []byte) *ECDHAEADCompositeEncrypt

NewECDHAEADCompositeEncrypt returns ECDH (KW done outside of this Tink key implementation) AES encryption construct for AEAD content encryption.

func (*ECDHAEADCompositeEncrypt) Encrypt

func (e *ECDHAEADCompositeEncrypt) Encrypt(plaintext, aad []byte) ([]byte, error)

Encrypt using composite ECDH-ES with a Concat KDF key wrap and AEAD content encryption.

Jump to

Keyboard shortcuts

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