dcrypt ~master (2021-11-09T01:25:37.6069118)
Dub
Repo
Sphincs.pubkey
dcrypt
pqc
sphincs
sphincs
Sphincs
Compute the public key given the secret key.
template
Sphincs
(uint n, uint m, uint n_levels, uint subtree_height, alias hash_n_n, alias hash_2n_n, alias prg)
@
safe
@
nogc
pure nothrow
ubyte
[
publickey_bytes
]
pubkey
(
in
ref
ubyte
[
secretkey_bytes
]
sk
)
if
(
is_hash_n_n
!
hash_n_n
&&
is_hash_2n_n
!
hash_2n_n
&&
is_prg
!(
prg
,
seed_bytes
)
&&
n
% 8 == 0
)
Return Value
Type:
ubyte
[
publickey_bytes
]
The matching public key.
Meta
Source
See Implementation
dcrypt
pqc
sphincs
sphincs
Sphincs
aliases
sig_bytes
functions
keypair
pubkey
sign_detached
verify
manifest constants
n_masks
publickey_bytes
secretkey_bytes
sk_rand_seed_bytes
Compute the public key given the secret key.