Documentation ¶
Index ¶
- type ErrIncorrectSize
- type MD5Digest
- func (d *MD5Digest) Base64RawStdString() string
- func (d *MD5Digest) Base64RawURLString() string
- func (d *MD5Digest) Clear()
- func (d *MD5Digest) CopyBytesTo(b []byte) int
- func (d *MD5Digest) Equal(other *MD5Digest) bool
- func (d *MD5Digest) HexString() string
- func (d *MD5Digest) Int64s() (d0, d1 int64)
- func (d *MD5Digest) IsEmpty() bool
- func (d *MD5Digest) MarshalBinary() (data []byte, err error)
- func (d *MD5Digest) MarshalText() (text []byte, err error)
- func (d *MD5Digest) SetDigest(chksum *[md5.Size]byte)
- func (d *MD5Digest) SetDigestWithBase64RawStdString(s string) (err error)
- func (d *MD5Digest) SetDigestWithBase64RawURLString(s string) (err error)
- func (d *MD5Digest) SetDigestWithHexString(s string) (err error)
- func (d *MD5Digest) SetDigestWithInt64s(d0, d1 int64)
- func (d *MD5Digest) SetDigestWithUint64s(d0, d1 uint64)
- func (d *MD5Digest) SumBytes(buf []byte)
- func (d *MD5Digest) SumString(v string)
- func (d *MD5Digest) Uint64s() (d0, d1 uint64)
- func (d *MD5Digest) UnmarshalBinary(data []byte) error
- func (d *MD5Digest) UnmarshalJSON(data []byte) (err error)
- func (d *MD5Digest) UnmarshalText(text []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrIncorrectSize ¶
type ErrIncorrectSize struct {
ReceivedBufferSize int
}
ErrIncorrectSize indicate given buffer size is not correct.
func (ErrIncorrectSize) Error ¶
func (e ErrIncorrectSize) Error() string
type MD5Digest ¶
type MD5Digest struct {
// contains filtered or unexported fields
}
MD5Digest contain MD5 message digest.
func NewMD5DigestWithBase64RawStdString ¶ added in v0.0.2
NewMD5DigestWithBase64RawStdString create new instance of MD5Digest and initialize with base64std encoded string. An empty digest will be return if error occurs on decoding given string.
func NewMD5DigestWithBase64RawURLString ¶ added in v0.0.2
NewMD5DigestWithBase64RawURLString create new instance of MD5Digest and initialize with base64url encoded string. An empty digest will be return if error occurs on decoding given string.
func NewMD5DigestWithHexString ¶ added in v0.0.2
NewMD5DigestWithHexString create new instance of MD5Digest and initialize with hex encoded string. An empty digest will be return if error occurs on decoding given string.
func NewMD5DigestWithInt64s ¶ added in v0.0.2
NewMD5DigestWithInt64s create new instance of MD5Digest and initialize with int64s.
func NewMD5DigestWithUint64s ¶ added in v0.0.2
NewMD5DigestWithUint64s create new instance of MD5Digest and initialize with unsigned int64s.
func (*MD5Digest) Base64RawStdString ¶
Base64RawStdString return digest in base64std-nopadding encoded string.
func (*MD5Digest) Base64RawURLString ¶
Base64RawURLString return digest in base64url-nopadding encoded string.
func (*MD5Digest) CopyBytesTo ¶ added in v0.0.3
CopyBytesTo copy digest bytes into given byte slice.
func (*MD5Digest) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (*MD5Digest) MarshalText ¶
MarshalText implements the encoding.TextMarshaler interface.
func (*MD5Digest) SetDigestWithBase64RawStdString ¶
SetDigestWithBase64RawStdString set digest with given base64std-nopadding encoded string.
func (*MD5Digest) SetDigestWithBase64RawURLString ¶
SetDigestWithBase64RawURLString set digest with given base64url-nopadding encoded string.
func (*MD5Digest) SetDigestWithHexString ¶
SetDigestWithHexString return digest in base64std-nopadding encoded string.
func (*MD5Digest) SetDigestWithInt64s ¶
SetDigestWithInt64s put given int64 into digest.
func (*MD5Digest) SetDigestWithUint64s ¶
SetDigestWithUint64s put given unsigned int64 into digest.
func (*MD5Digest) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
func (*MD5Digest) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
func (*MD5Digest) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.