AtlasInsideAES

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 6 Imported by: 1

README

AtlasInsideAES

Documentation

Index

Constants

View Source
const IterationCount = 65536
View Source
const KeyLength = 16
View Source
const SaltLength = 16

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(crypt string, key []byte) (string, error)

func AESEncrypt

func AESEncrypt(src string, key []byte) (string, error)

func PKCS5Padding

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5Trimming

func PKCS5Trimming(encrypt []byte) []byte

Types

type CouldNotObtainRandomIVError

type CouldNotObtainRandomIVError struct {
	Msg string
}

func (*CouldNotObtainRandomIVError) Error

func (err *CouldNotObtainRandomIVError) Error() string

type CouldNotObtainRandomSaltError

type CouldNotObtainRandomSaltError struct {
	Msg string
}

func (*CouldNotObtainRandomSaltError) Error

type IncorrectPassphraseError

type IncorrectPassphraseError struct{}

func (*IncorrectPassphraseError) Error

func (err *IncorrectPassphraseError) Error() string

type InvalidAESKeyError

type InvalidAESKeyError struct {
	Msg string
}

func (*InvalidAESKeyError) Error

func (err *InvalidAESKeyError) Error() string

type InvalidEncryptedDataError

type InvalidEncryptedDataError struct {
	Msg string
}

func (*InvalidEncryptedDataError) Error

func (err *InvalidEncryptedDataError) Error() string

type InvalidIVError

type InvalidIVError struct {
	Msg string
}

func (*InvalidIVError) Error

func (err *InvalidIVError) Error() string

type InvalidPassphraseError

type InvalidPassphraseError struct {
	Msg string
}

func (*InvalidPassphraseError) Error

func (err *InvalidPassphraseError) Error() string

type InvalidSaltError

type InvalidSaltError struct {
	Msg string
}

func (*InvalidSaltError) Error

func (err *InvalidSaltError) Error() string

Jump to

Keyboard shortcuts

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