Privkey size is very small #635

Closed
opened 2025-12-29 01:28:04 +01:00 by adam · 1 comment
Owner

Originally created by @HerMajestyDrMona on GitHub (Mar 6, 2025).

The KEY_ALGO variable is for public keys, correct? But why generated privkey.pem size is only 288 bytes? Is there any need / possibility to tweak something to increase this key's length? For some reasons setting KEYSIZE="4096" doesn't change anything, and it should be default value anyway.

Originally created by @HerMajestyDrMona on GitHub (Mar 6, 2025). The `KEY_ALGO` variable is for public keys, correct? But why generated privkey.pem size is only 288 bytes? Is there any need / possibility to tweak something to increase this key's length? For some reasons setting `KEYSIZE="4096"` doesn't change anything, and it should be default value anyway.
adam closed this issue 2025-12-29 01:28:04 +01:00
Author
Owner

@lukas2511 commented on GitHub (Mar 8, 2025):

Keysize is only relevant for RSA keys, but dehydrated uses elliptic-curve crytography (secp384r1) by default, which uses fixed key sizes. Since they work completely differently to RSA they just happen to have smaller keys while still being more secure.

@lukas2511 commented on GitHub (Mar 8, 2025): Keysize is only relevant for RSA keys, but dehydrated uses elliptic-curve crytography (secp384r1) by default, which uses fixed key sizes. Since they work completely differently to RSA they just happen to have smaller keys while still being more secure.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#635