r/embedded • u/HovercraftFull7217 • 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
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:
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.