Handbook
Glossary
init-key ( checksum key checksum-state -- o i )
Vocabulary
checksums
.
hmac
.
private
Inputs
checksum
an
object
key
an
object
checksum-state
an
object
Outputs
o
an
object
i
an
object
Definition
USING:
accessors
checksums
kernel
math
math.vectors
sequences
;
IN:
checksums.hmac.private
::
init-key
( checksum key checksum-state -- o i )
checksum-state
block-size>>
key
length
<
[
key checksum
checksum-bytes
]
[
key
]
if
checksum-state
block-size>>
0
pad-tail
[
checksum-state
opad
vbitxor
]
[
checksum-state
ipad
vbitxor
]
bi
;