block

package
v0.0.0-...-fb761c0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlockSessionEncrypterDecrypter

func NewBlockSessionEncrypterDecrypter(block cipher.Block) session.EncrypterDecrypter

Types

type BlockEncrypterDecrypter

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

func (*BlockEncrypterDecrypter) DecryptPublicKey

func (e *BlockEncrypterDecrypter) DecryptPublicKey(ctx context.Context, content []byte) (keyID, alg string, publicKey []byte, attributes any, err error)

func (*BlockEncrypterDecrypter) EncryptPublicKey

func (e *BlockEncrypterDecrypter) EncryptPublicKey(ctx context.Context, keyID, alg string, publicKey []byte, attributes any) ([]byte, error)

type SessionToken

type SessionToken struct {
	KeyID      string `json:"key_id"`
	Alg        string `json:"alg"`
	PublicKey  []byte `json:"public_key"`
	Attributes any    `json:"attributes"`
}

SessionToken is an internal format that for serializing sesion token information for encryption

Jump to

Keyboard shortcuts

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