utils

package
v0.0.0-...-cf5a519 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aes256Decrypt

func Aes256Decrypt(ciphertext []byte, key []byte, iv []byte) ([]byte, error)

func Aes256Encrypt

func Aes256Encrypt(plaintext []byte, key []byte, iv []byte) ([]byte, error)

func Hkdf

func Hkdf(hash func() hash.Hash, secret []byte, salt []byte, info []byte, length int) []byte

func Pkcs7Pad

func Pkcs7Pad(data []byte, blockSize int) ([]byte, error)

func Pkcs7Strip

func Pkcs7Strip(data []byte, blockSize int) ([]byte, error)

func SecureRandomBytes

func SecureRandomBytes(length int32) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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