symmetrickey

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionType

type EncryptionType int
const (
	AesCbc256_B64            EncryptionType = 0
	AesCbc128_HmacSha256_B64 EncryptionType = 1
	AesCbc256_HmacSha256_B64 EncryptionType = 2
	Rsa2048_OaepSha256_B64   EncryptionType = 3
	Rsa2048_OaepSha1_B64     EncryptionType = 4
)

type Key

type Key struct {
	Key            []byte
	EncryptionKey  []byte
	EncryptionType EncryptionType
	MacKey         []byte
}

func NewFromRawBytes

func NewFromRawBytes(rawKey []byte) (*Key, error)

func NewFromRawBytesWithEncryptionType

func NewFromRawBytesWithEncryptionType(rawKey []byte, encType EncryptionType) (*Key, error)

func (*Key) StretchKey

func (key *Key) StretchKey() (*Key, error)

Jump to

Keyboard shortcuts

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