utils

package
v0.0.0-...-214c3af Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpBytes

func DumpBytes(note string, in []byte)

func DumpWords

func DumpWords(note string, in []uint32)

func PKCS7Padding

func PKCS7Padding(in []byte, blockLen int) []byte

func PKCS7Unpadding

func PKCS7Unpadding(in []byte) []byte

func ReadBytesHex

func ReadBytesHex(filename string) []byte

func ReadStringHex

func ReadStringHex(filename string) string

func WriteBytesHex

func WriteBytesHex(filename string, msg []byte)

func WriteStringHex

func WriteStringHex(filename string, msg string)

func ZeroPadding

func ZeroPadding(in []byte, blockLen int) []byte

func ZeroUnpadding

func ZeroUnpadding(in []byte) []byte

Types

type PaddingFunc

type PaddingFunc func([]byte, int) []byte

type UnpaddingFunc

type UnpaddingFunc func([]byte) []byte

Jump to

Keyboard shortcuts

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