Documentation ¶
Index ¶
- Constants
- func New() hash.Hash
- func Padding(message []byte) []byte
- type Context
- func (ctx *Context) BlockSize() int
- func (ctx *Context) CompressFunction(w *[68]uint32, wp *[64]uint32)
- func (ctx *Context) ComputeFromBytes(message []byte) *Context
- func (ctx *Context) ComputeFromString(s string) *Context
- func (ctx *Context) ComputeFromWords(words []uint32) *Context
- func (ctx *Context) Init() *Context
- func (ctx *Context) MessageExpansion(w *[68]uint32, wp *[64]uint32)
- func (ctx *Context) Reset()
- func (ctx *Context) Size() int
- func (ctx *Context) Sum(inputStream []byte) []byte
- func (ctx *Context) ToBytes() []byte
- func (ctx *Context) ToHexString() string
- func (ctx *Context) ToWords() []uint32
- func (ctx *Context) Update(payload []byte) (n int, err error)
- func (ctx *Context) Write(newChunk []byte) (int, error)
Constants ¶
View Source
const ( BlockSizeInByte = 16 DigestSizeInByte = 32 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context 杂凑过程上下文
func (*Context) CompressFunction ¶
CompressFunction 5.3.3 压缩函数
func (*Context) ComputeFromBytes ¶
ComputeFromBytes 总过程
func (*Context) ComputeFromString ¶
ComputeFromString 以 string 输入
func (*Context) ComputeFromWords ¶
ComputeFromWords 以 Word 输入
func (*Context) MessageExpansion ¶
MessageExpansion 5.3.2 消息扩展
Click to show internal directories.
Click to hide internal directories.