Timeline for RSASSA-PSS-SIGN modBits size
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 26, 2019 at 20:39 | comment | added | porente |
his answer has a contradiction and at the same time made it clear which one was the right answer to my question, the best answers describe the idea with as little words as possible, adding the example public key is absolutely not necessary to describe the idea, so the best answer to my question would be if n = 17 decimal = 10001 binary then modBits = 5
|
|
Oct 26, 2019 at 20:23 | comment | added | Maarten Bodewes♦ | @porente If you know it all so well, then why post a question? Kelalaka is right, to show how the encoded key is structured, you should post an example private key that contains the modulus. | |
Oct 26, 2019 at 20:22 | comment | added | kelalaka | Are you talking about that when you run keygen for 2048-bit key for RSA it can create 2047? | |
Oct 26, 2019 at 20:17 | comment | added | porente |
its not needed and you should edit your answer, modBits = 8*256 is not true
|
|
Oct 26, 2019 at 19:55 | comment | added | kelalaka | That is why I've asked your file. | |
Oct 26, 2019 at 19:54 | comment | added | porente |
my question shows different values that modBits can have based on the RFC definition, then at the end asks which value is true, in your answer modBits = 8*256 if n uses 256 bytes and modBits = 4 if n = 10 but modBits = 8*256 if n uses 256 bytes is not true because the exact value of n isn't known, only if you know the exact value of n you can know modBits
|
|
Oct 26, 2019 at 19:31 | comment | added | kelalaka | Isn't clear? One byte is 00, this is part of the encoding. | |
Oct 26, 2019 at 19:15 | comment | added | porente |
this question which one is the value of modBits? is referring to which of all modBits = ? is the true one, not which DER file data defines n
|
|
Oct 26, 2019 at 19:12 | vote | accept | porente | ||
Oct 26, 2019 at 15:33 | history | edited | Gilles 'SO- stop being evil' | CC BY-SA 4.0 |
Off by one
|
Oct 26, 2019 at 10:33 | history | answered | kelalaka | CC BY-SA 4.0 |