Documentation ¶
Overview ¶
Package asn1 --- 辅助读取ASN1结构的数据
Index ¶
- func HMAC_MD5(key, data []byte) []byte
- func If[T any](cond bool, a, b T) T
- func LMOWFv2(password, user, domain string) []byte
- func MD4(data []byte) []byte
- func NTOWFv2(password, user, domain string) []byte
- func Random(size int) []byte
- func RandomString(size int) string
- func ReadBE[T any](r io.Reader, data T) T
- func ReadBytes(r io.Reader, length int) []byte
- func ReadFull(r io.Reader, data []byte) []byte
- func ReadLE[T any](r io.Reader, data T) T
- func ShowHex(data []byte)
- func ShowLine(line []byte)
- func Throw(e any)
- func ThrowError(e any)
- func ThrowIf(cond bool, e any)
- func ThrowNil(e any)
- func Throwf(format string, args ...any)
- func ToBE[T any](o T) []byte
- func ToLE[T any](o T) []byte
- func Try(f func()) error
- func TryCatch(f func(), catch func(e any))
- func UnicodeEncode(p string) []byte
- func WriteBE[T any](w io.Writer, data T)
- func WriteFull(w io.Writer, data []byte)
- func WriteLE[T any](w io.Writer, data T)
- type Asn1
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
func ThrowError ¶
func ThrowError(e any)
Types ¶
Click to show internal directories.
Click to hide internal directories.