|
PQLR_API slh_dsa_t | slh_dsa_new (slh_dsa_parameterset_t parameterset) |
| Creates new slh_dsa instance with selected parameter set. More...
|
|
PQLR_API void | slh_dsa_free (slh_dsa_t slh_dsa) |
| Frees slh_dsa instance and all corresponding resources. More...
|
|
PQLR_API slh_dsa_t | slh_dsa_duplicate (const slh_dsa_t slh_dsa) |
| Duplicates slh_dsa context. More...
|
|
PQLR_API pqlr_t | slh_dsa_to_pqlr (slh_dsa_t slh_dsa) |
| Gets pqlr instance linked to this slh_dsa instance. More...
|
|
PQLR_API size_t | slh_dsa_get_signature_bytes_len (slh_dsa_t slh_dsa) |
| Obtains signature buffer length in bytes for current slh_dsa instance. More...
|
|
PQLR_API size_t | slh_dsa_get_public_key_bytes_len (slh_dsa_t slh_dsa) |
| Obtains public key buffer length in bytes for current slh_dsa instance. More...
|
|
PQLR_API size_t | slh_dsa_get_secret_key_bytes_len (slh_dsa_t slh_dsa) |
| Obtains secret key buffer length in bytes for current slh_dsa instance. More...
|
|
PQLR_API void | slh_dsa_generate_keys (const slh_dsa_t slh_dsa, uint8_t *result_sk, uint8_t *result_pk) |
| Generates random secret key and public key for given context. More...
|
|
PQLR_API void | slh_dsa_sign (const slh_dsa_t slh_dsa, const uint8_t *sk, const uint8_t *msg, size_t msg_len, uint8_t *result_sig, size_t *result_sig_len) |
| Generates signature for given message according to context and secret key. The signature is non-deterministic, i.e. there are different results for the same message. More...
|
|
PQLR_API void | slh_dsa_sign_ex (const slh_dsa_t slh_dsa, const uint8_t *sk, const uint8_t *ctx, size_t ctx_len, const uint8_t *msg, size_t msg_len, uint8_t *result_sig, size_t *sig_len) |
| Generates signature for given message according to context and secret key. The signature is non-deterministic, i.e. there are different results for the same message. More...
|
|
PQLR_API int | slh_dsa_verify (const slh_dsa_t slh_dsa, const uint8_t *pk, const uint8_t *sig, size_t sig_len, const uint8_t *msg, size_t msg_len) |
| Verifies that given signature is the signature of given message. More...
|
|
PQLR_API int | slh_dsa_verify_ex (const slh_dsa_t slh_dsa, const uint8_t *pk, const uint8_t *sig, size_t sig_len, const uint8_t *ctx, size_t ctx_len, const uint8_t *msg, size_t msg_len) |
| Verifies that given signature is the signature of given message with additional context information. More...
|
|