Score:0

Which encryption/decryption to use with ECC?

cm flag

I'm using ECDH for generating shared key for STM32 MCU. Which encryption/decryption algorithm should I use? I looked at RSA and AES project samples provided by STM32 but where do I provide shared key with message to encrypt?

With the current implementation shared key size is 64 bits.

fgrieu avatar
ng flag
Do not use as reference any code that has a 64-bit shared key. That's very insecure by modern standards. Do not roll your own protocol (or use the protocol in a random piece of code), there are many things to miss.
Maarten Bodewes avatar
in flag
If you're getting 64 bit shared secret, does that mean you also use 64 bit ECDH?
minion avatar
cm flag
i changed my implementation to get 128 bits shared key
poncho avatar
my flag
@minion: I trust you are using a larger (e.g. 256 bit) elliptic curve when doing the ECDH
minion avatar
cm flag
@poncho - im using 512 bit elliptic curve
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.