Lessons on Cryptographic Practices in Securing Microcontrollers from Embedded CTFs
从嵌入式 CTF 看:在单片机上用密码学,开发者到底怎么选、怎么用
专门负责控制某一个设备
每个设备里,都有一颗 MCU 在当“大脑”
让算法更快、更小、更省电
示意:算法性能基准,越短越好
资源有限、条件不确定时,
普通开发者怎么选、怎么接、怎么测?
ECB:相同明文块 → 相同密文块
“I didn't know that the ECB algorithm has this inherent vulnerability.”
— P16每个小方块 = 一个 16 字节分组,颜色由该分组的密文决定 · 真实 AES-128 实时加密
“We just went with what seemed
the best supported.”— P3,谈签名算法的选择
非对称太慢 → 改用只需哈希的 SCRAM 双向认证 P3
“Did wolfcrypt have it? Because we already have wolfcrypt.” P2
“We just went with a package that other people do.” P2
上网搜“最难算的哈希”→ 选了 bcrypt P8
“We did zero trust on the protocol… but we thought it would be fine just to have it in the header.”
— P2,自评 “in between lazy and overconfident”为什么不直接用 SHA-256 存口令?哈希越快,暴力破解越方便。
“When it printed the encrypted stuff, we assumed that was validly encrypted.”
— P6“We just went with what seemed the best supported.”
| →空格PgDn | 下一步 / 下一页 |
| ←PgUp | 上一步 |
| O | 总览(点击跳转) |
| F | 全屏 |
| T | 深色 / 浅色主题 |
| P | 打开演讲者窗口(讲稿 + 计时) |
| N | 讲稿浮层(排练用) |
| R | 重置当前页演示 |
| B | 黑屏 |