Documentation ¶
Index ¶
- func CheckError(errs []error) error
- func CreateHash(size int, messagebyte ...[]byte) []byte
- func CreateKeyedHash(size int, key []byte, messagebyte ...[]byte) []byte
- func CreateKeyedXOFHash(size uint32, key []byte, messagebyte ...[]byte) []byte
- func ExistEmpty(s ...string) bool
- func ReverseBytes(b []byte) []byte
- func SecureHexDecode(s string) (r []byte, ok bool)
- func SecureHexEncode(b []byte) string
- func StringIsNumeric(s string) (ok bool)
- func UnsafeBase32Decode(src string) ([]byte, error)
- func UnsafeBase32Encode(src []byte) string
- func UnsafeHexDecode(s string) ([]byte, error)
- func UnsafeHexEncode(b []byte) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
CheckError will return error if one of the input is non-nil.
func CreateHash ¶
CreateHash returns the Blake2b hash of message with specified size.
func CreateKeyedHash ¶
CreateHash returns the Blake2b hash of message with specified size.
func CreateKeyedXOFHash ¶
CreateKeyedXOFHash returns the Blake2b-XOF hash of message using an secret-key, with specified size.
func ExistEmpty ¶
ExistEmpty will return true if one of the input is empty.
func ReverseBytes ¶
func SecureHexDecode ¶
SecureHexDecode decodes an byte without table-lookup. It's results the byte-array of decoded hex.
func SecureHexEncode ¶
SecureHexEncode decodes an byte without table-lookup. It's results the hexadecimal string representation.
func StringIsNumeric ¶
StringIsNumeric return false if the input is not between 0 to 9.
func UnsafeBase32Decode ¶
UnsafeBase32Decode decodes an string in non-constant time. It's results the bytes of decoded Base32.
func UnsafeBase32Encode ¶
UnsafeBase32Encode encodes an byte in non-constant time. It's results the Base32 string.
func UnsafeHexDecode ¶
UnsafeHexDecode decodes an byte without table-lookup. It's results the byte-array of decoded hex.
func UnsafeHexEncode ¶
UnsafeBase32Encode encodes an byte in non-constant time. It's results the Base32 string.
Types ¶
This section is empty.