mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-07 12:43:06 +00:00
If modulusSize is used, the test will fail as it is an unexpected field. It does not seems necessary.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
96b791b3b9
commit
90d1fa0f9b
1 changed files with 1 additions and 1 deletions
|
|
@ -909,7 +909,7 @@ static int cmd_keypair_gen() {
|
|||
memcpy(cvc.coefficientAorExponent, &exponent, cvc.coefficientAorExponentlen);
|
||||
|
||||
cvc.pukoid = rsa15withSHA256;
|
||||
cvc.modulusSize = key_size;
|
||||
//cvc.modulusSize = key_size; //NOT EXPECTED. DO NOT COMMENT (it seems not standard)
|
||||
cvc.primeOrModuluslen = key_size/8;
|
||||
cvc.primeOrModulus = (uint8_t *)calloc(1, cvc.primeOrModuluslen);
|
||||
ret = mbedtls_mpi_write_binary(&rsa.N, cvc.primeOrModulus, cvc.primeOrModuluslen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue