Sphincs.keypair

Generate a Sphincs keypair.

template Sphincs(uint n, uint m, uint n_levels, uint subtree_height, alias hash_n_n, alias hash_2n_n, alias prg)
@safe @nogc
void
keypair
nothrow
(
out ubyte[secretkey_bytes] sk
,
out ubyte[publickey_bytes] pk
)
if (
is_hash_n_n!hash_n_n &&
is_hash_2n_n!hash_2n_n
&&
is_prg!(prg, seed_bytes)
&&
n % 8 == 0
)

Parameters

sk
Type: ubyte[secretkey_bytes]
pk
Type: ubyte[publickey_bytes]

[ |n_masks*hash_bytes| Bitmasks || root]

Meta