Sphincs.sign_detached

Generate a detached sphincs256 signature for message.

template Sphincs(uint n, uint m, uint n_levels, uint subtree_height, alias hash_n_n, alias hash_2n_n, alias prg)
@safe @nogc
ubyte[sig_bytes]
sign_detached
pure nothrow
(
in ubyte[] message
,
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
)

Parameters

message
Type: ubyte[]

The message to be signed.

sk
Type: ubyte[secretkey_bytes]

The secret key.

Return Value

Type: ubyte[sig_bytes]

Returns the detached signature without the message appended.

Meta