Skip to content
Snippets Groups Projects
Commit 69d9c16f authored by Constantin Papizh's avatar Constantin Papizh
Browse files

Updated signature subtypes

parent b8295fb9
No related branches found
No related tags found
1 merge request!111Updated signature subtypes
......@@ -40,9 +40,7 @@ void dap_enc_sig_dilithium_key_new_generate(struct dap_enc_key * key, const void
int32_t retcode;
int dilithium_type = (seed && seed_size >= sizeof(uint8_t)) ? ((uint8_t*)seed)[0] % (DILITHIUM_MAX_SECURITY + 1) :
DILITHIUM_MIN_SIZE;
dap_enc_sig_dilithium_set_type(dilithium_type);
dap_enc_sig_dilithium_set_type(DILITHIUM_MAX_SPEED);
//int32_t type = 2;
......
......@@ -40,9 +40,7 @@ void dap_enc_sig_tesla_key_new_generate(struct dap_enc_key * key, const void *ke
int32_t retcode;
int tesla_type = (seed && seed_size >= sizeof(uint8_t)) ? ((uint8_t*)seed)[0] % (PROVABLY_MAX_SECURITY + 1) :
HEURISTIC_MAX_SECURITY_AND_MAX_SPEED;
dap_enc_sig_tesla_set_type(tesla_type);
dap_enc_sig_tesla_set_type(HEURISTIC_MAX_SECURITY_AND_MAX_SPEED);
/* type is a param of sign-security
* type = 0 - Heuristic qTESLA, NIST's security category 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment