dcrypt ~master (2018-06-04T17:07:07Z)
Dub
Repo
WOTS.pkgen
dcrypt
pqc
sphincs
wots
WOTS
Generate a public key.
template
WOTS
(uint n, alias hash_n_n, alias prg, uint log_w)
package @
safe
@
nogc
H
[
l
]
pkgen
pure nothrow
(
in
ref
ubyte
[
seed_bytes
]
sk
,
in
H
[]
masks
)
in { assert (masks.length == w, "Number of masks must be w."); }
if
(
is_hash_n_n
!
hash_n_n
&&
is_prg
!(
prg
,
seed_bytes
)
&&
n
% 8 == 0
)
Return Value
Type:
H
[
l
]
The public key derived from sk and masks.
Meta
Source
See Implementation
dcrypt
pqc
sphincs
wots
WOTS
functions
pkgen
sign
verify
Generate a public key.