Dr. Hax on Nostr: In RSA, you can only encrypt an handful of bytes with the public key. I think the ...
In RSA, you can only encrypt an handful of bytes with the public key. I think the limit is 512 bytes for a 4096-bit RSA key. So what RSA encrypts is a symmetric key (e.g. AES-256), which is what encrypts your data.
My memory on ECC hasn't been burned into my brain as heavily, but I recall it being basically the same overall process, of encrypting a symmetric key, not the message.
A quick search shows that the encryption key and decryption key are the same, which confirms it's symmetric (by definition).
https://cryptobook.nakov.com/asymmetric-key-ciphers/ecc-encryption-decryptionAll thr ECC algorithms (ed25519, secp, etc) are going to be basically the same. It's just the curve that is changing.
Good luck with whatever you're working on.
Published at
2024-11-29 01:21:36Event JSON
{
"id": "f89ec469a6112524e92e8ec419c506dbfb9738d69d074de68dcc4f8a4cf858c1",
"pubkey": "d30ea98ea65e953f91ab93f6b30ea51eb33c506f87d49f600a139aef00aa9511",
"created_at": 1732843296,
"kind": 1,
"tags": [
[
"e",
"00000bd0f93a16b06ba79589b595ffa622bbe4ac1f54003bc6b1f559d4a43899",
"",
"root"
],
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"r",
"https://cryptobook.nakov.com/asymmetric-key-ciphers/ecc-encryption-decryption"
]
],
"content": "In RSA, you can only encrypt an handful of bytes with the public key. I think the limit is 512 bytes for a 4096-bit RSA key. So what RSA encrypts is a symmetric key (e.g. AES-256), which is what encrypts your data.\n\nMy memory on ECC hasn't been burned into my brain as heavily, but I recall it being basically the same overall process, of encrypting a symmetric key, not the message.\n\nA quick search shows that the encryption key and decryption key are the same, which confirms it's symmetric (by definition). https://cryptobook.nakov.com/asymmetric-key-ciphers/ecc-encryption-decryption\n\nAll thr ECC algorithms (ed25519, secp, etc) are going to be basically the same. It's just the curve that is changing.\n\nGood luck with whatever you're working on.",
"sig": "c85f93eafff9391cf02c0137b0f503f91c117fc779acd0cb4519592694e2965eb4628e3f7c4234298a841edf8c0dee4bb58c5fd572034189aa725cb8ae78b007"
}