symmetrickey

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MPL-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 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

func (*Key) Summary

func (key *Key) Summary() string

Jump to

Keyboard shortcuts

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