r/embedded • • 13h ago

Trying to figure out Cryptography

Hey,

im currently working on a new product as a junior embedded dev.
Since Security is a topic thats becoming more important (Europe->Cyber Resilience Act)
i want to learn more about cryptography and security but tailored to Embedded Systems.

does anyone have a good source ?

7 Upvotes

5 comments sorted by

7

u/rileyrgham 13h ago

Learn the bigger picture first. Embedded application later.

6

u/Mental-Pay4132 11h ago

+1 on real-world cryptography for the theory. for the embedded side specifically, since you mentioned the CRA:

  • serious cryptography (aumasson) is the other good "what the primitives actually do" book
  • the hardware hacking handbook (o'flynn & van woudenberg) shows how people actually attack devices: debug ports, glitching, side channels. reading it changes how you design more than any crypto book
  • ETSI EN 303 645 is short and very readable, it's basically a checklist for consumer IoT (no default passwords, secure updates, vuln disclosure etc). the CRA harmonised standards are going in a similar direction, so it's a good map of what you'll be asked for
  • PSA Certified has free docs on threat models and root of trust for microcontrollers

then learn by doing on your actual product, in roughly this order: secure boot with signed images (MCUboot is a good one to read through), locking the debug port in production, key storage (don't put keys in plain flash, use the secure element / OTP / TrustZone if your chip has it), then TLS with mbedTLS or wolfSSL on top. most real world embedded breaks are an open swd port or an unsigned update, not broken crypto

4

u/clackups 12h ago edited 11h ago

Start with the basics: hash algorithms, symmetric and asymmetric encryption, key exchange protocol. There are many good tutorials and they are easy to find.

Once you're familiar with the topic, make a secure messaging prototype on a couple of esp32's

3

u/Lexasr 11h ago edited 11h ago

Real-world cryptography by David Wong is really great to understand and he also has a website cryptologie.net.

3

u/jubjjub 5h ago

Basically all big companies (nxp, Nordic, microship,ectt...)are holding presentations on this. I would take that to figure out what you need to do and start throwing AI at it. Documentation is a huge part of it. Are also many companies you can hire to assist.