~/talk

Adding Security to Microcontroller Ruby

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [embedded-and-hardware, security]
links:none on file
slides:none on file

Adds TLS/HTTP to pRuby on an RP2040 (Raspberry Pi Pico W) using mbedTLS and lwIP, implements AES (CBC/GCM), SHA-256, base16/base64 and a ring-oscillator RNG, and exposes DNS/TCP/TLS/HTTP Ruby bindings in R2P2. Demonstration initially fails then succeeds; heap had to be cut from 194 KB to 96 KB to avoid OOM. Asymmetric ops are impractically slow (RSA‑2048 verify ~6.4s), so symmetric or gateway TLS is recommended.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:10Background and motivation
  3. 3:19Project ASMR overview
  4. 4:43Security warnings and limitations
  5. 5:26Cryptography in P Ruby
  6. 8:16Implementing MRBC extensions
  7. 10:44Random number generation
  8. 13:56Networking stack goals
  9. 16:25DNS and Wi-Fi integration
  10. 17:49Debugging connection issues
  11. 18:33TCP client implementation
  12. 20:20Adding TLS support
  13. 21:47Memory management challenges
  14. 22:50Future work and improvements
  15. 24:15Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.