Skip to content
Snippets Groups Projects
Commit e82d399a authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'bugs-4100' into 'master'

Updated signature subtypes

See merge request !111
parents 31e5e19e 69d9c16f
No related branches found
No related tags found
1 merge request!111Updated signature subtypes
Pipeline #3812 passed with stage
in 12 seconds
......@@ -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