Documentation ¶
Overview ¶
component.go
helpers.go
Index ¶
- func AesEncrypt(input, key []byte) []byte
- func BigByteLen(x []byte) *big.Int
- func BigCeilingDiv(x, y *big.Int) *big.Int
- func BigFloorDiv(x, y *big.Int) *big.Int
- func BigMod(x, m *big.Int) *big.Int
- func BigNUM(X []byte) *big.Int
- func BigNUMradix(X []byte, radix uint64) *big.Int
- func BigPower(x, y *big.Int) *big.Int
- func BigSTRmRadix(x *big.Int, radix uint64, m int64) []byte
- func BreakInBlocks(X []byte, blockSize int) ([][]byte, error)
- func ByteLen(x []byte) uint64
- func CeilingDiv(x, y uint64) uint64
- func Decrypt(key []byte, tweak []byte, X []byte, radix uint64) ([]byte, error)
- func Encrypt(key []byte, tweak []byte, X []byte, radix uint64) ([]byte, error)
- func FloorDiv(x, y uint64) uint64
- func Mod(x, m uint64) uint64
- func ModInt(x int64, m int64) int64
- func NUM(X []byte) uint64
- func NUMradix(X []byte, radix uint64) uint64
- func NumeralSliceToString(numerals []byte, alphabet string) (string, error)
- func PRF(K []byte, X []byte) ([]byte, error)
- func Power(x, y uint64) uint64
- func STRmRadix(x uint64, radix uint64, m int64) []byte
- func StringToNumeralSlice(input, alphabet string) ([]byte, error)
- func XORBytes(a, b []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BigByteLen ¶
func BigFloorDiv ¶
BigFloorDiv returns the floor of x / y for big.Int.
func BigNUMradix ¶
BigNUMradix - Numeral string to big.Int, with the specified radix
func BigSTRmRadix ¶
BigSTRmRadix - Representation of a big.Int as a string of m numerals in base `radix`
func BreakInBlocks ¶
BreakInBlocks splits a byte slice into blocks of a specified size.
func CeilingDiv ¶
func NumeralSliceToString ¶
func StringToNumeralSlice ¶
StringToNumeralSlice converts a character string to a slice of numerals (`[]uint64`) based on the specified alphabet. The radix is derived from the length of the alphabet. Returns an error if the input contains characters not in the alphabet.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.