subtle

package
v2.0.0-...-f1ce5d7 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AESCTRMinIVSize is the minimum IV size that this implementation supports.
	AESCTRMinIVSize = 12
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TpmAesCtr

type TpmAesCtr struct {
	TPMDevice io.ReadWriteCloser

	Key         tinktpmprotopb.AesCtrTpmKey
	AuthSession tinkcommon.AuthCallback
	KeyFormat   tinktpmprotopb.AesCtrTpmKeyFormat
	// contains filtered or unexported fields
}

AESCTR is an implementation of AEAD interface.

func NewTPMAESCTR

func NewTPMAESCTR(ctx context.Context, conf *TpmAesCtr) (*TpmAesCtr, error)

func (*TpmAesCtr) Decrypt

func (a *TpmAesCtr) Decrypt(ciphertext []byte) ([]byte, error)

Decrypt decrypts ciphertext.

func (*TpmAesCtr) Encrypt

func (a *TpmAesCtr) Encrypt(plaintext []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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