keys

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAesGcmKey

func NewAesGcmKey(id types.KeyID, operation types.KeyOperation, data *AesGcmKeyData) types.Key

func NewXChaCha20Poly1305Key

func NewXChaCha20Poly1305Key(id types.KeyID,
	operation types.KeyOperation,
	data *XChaCha20Poly1305KeyData) types.Key

Types

type AesGcmKey

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

func (*AesGcmKey) Data

func (k *AesGcmKey) Data() types.KeyData

func (*AesGcmKey) KeyID

func (k *AesGcmKey) KeyID() types.KeyID

func (*AesGcmKey) Operation

func (k *AesGcmKey) Operation() types.KeyOperation

type AesGcmKeyData

type AesGcmKeyData struct {
	TypeURL         string
	Value           []byte
	KeyMaterialType types.KeyMaterialType
	Version         uint32
}

func (*AesGcmKeyData) FromValue

func (data *AesGcmKeyData) FromValue([]byte) error

func (*AesGcmKeyData) GetKeyMaterialType

func (data *AesGcmKeyData) GetKeyMaterialType() types.KeyMaterialType

func (*AesGcmKeyData) GetTypeURL

func (data *AesGcmKeyData) GetTypeURL() string

func (*AesGcmKeyData) GetValue

func (data *AesGcmKeyData) GetValue() ([]byte, error)

func (*AesGcmKeyData) GetVersion

func (data *AesGcmKeyData) GetVersion() uint32

type XChaCha20Poly1305Key

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

func (*XChaCha20Poly1305Key) Data

func (*XChaCha20Poly1305Key) KeyID

func (k *XChaCha20Poly1305Key) KeyID() types.KeyID

func (*XChaCha20Poly1305Key) Operation

func (k *XChaCha20Poly1305Key) Operation() types.KeyOperation

type XChaCha20Poly1305KeyData

type XChaCha20Poly1305KeyData struct {
	TypeURL         string
	Value           []byte
	KeyMaterialType types.KeyMaterialType
	Version         uint32
}

func (*XChaCha20Poly1305KeyData) FromValue

func (data *XChaCha20Poly1305KeyData) FromValue([]byte) error

func (*XChaCha20Poly1305KeyData) GetKeyMaterialType

func (data *XChaCha20Poly1305KeyData) GetKeyMaterialType() types.KeyMaterialType

func (*XChaCha20Poly1305KeyData) GetTypeURL

func (data *XChaCha20Poly1305KeyData) GetTypeURL() string

func (*XChaCha20Poly1305KeyData) GetValue

func (data *XChaCha20Poly1305KeyData) GetValue() ([]byte, error)

func (*XChaCha20Poly1305KeyData) GetVersion

func (data *XChaCha20Poly1305KeyData) GetVersion() uint32

Jump to

Keyboard shortcuts

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