#
✕ nick:marcan
#asahi · 2022-03-18 16:42
marcanit's not officially announced yet
#asahi · 2022-03-18 16:41
marcanwhich would allow us to use it as a dm-crypt accelerator without changing any semantics
#asahi · 2022-03-18 16:41
marcanthere's probably some way of provisioning raw keys
#asahi · 2022-03-18 16:41
marcanor you could offload the encryption and then it's kind of academic what algorithm is used because you don't have the key anyway
#asahi · 2022-03-18 16:40
marcanyou could use it purely to unlock LUKS keys
#asahi · 2022-03-18 16:40
marcanbut yeah, you could use it in different ways
#asahi · 2022-03-18 16:40
marcanwell, I think the encryption is probably compatible with some dm-crypt mode anyway
#asahi · 2022-03-18 16:40
marcanyou could not rely on the back channel, and then Linux would control the volume key so it could have a key recovery mechanism
#asahi · 2022-03-18 16:39
marcanof course, it doesn't mean you *have* to use all these features
#asahi · 2022-03-18 16:39
marcanpretty much
#asahi · 2022-03-18 16:39
marcan(it'd have to outright steal all the data)
#asahi · 2022-03-18 16:39
marcanand it also has a backdoor key channel to the NVMe controller, which means even *Linux* doesn't have the decryption key so malware can't steal your FDE key
#asahi · 2022-03-18 16:38
marcanit also allows you to tie the encryption to the hardware, to resist offline attacks
#asahi · 2022-03-18 16:30
marcanit does have more firmware than recovery mode, but I don't *think* we need any of that
#asahi · 2022-03-18 16:30
marcanJamie[m]1: I'm going to save that trick though, because if we ever end up needing something from the *macOS* image, that's when it'll come in handy
#asahi · 2022-03-18 16:29
marcansure
#asahi · 2022-03-18 16:28
marcanheh
#asahi · 2022-03-18 16:28
marcanas long as you hash check it what's the difference?
#asahi · 2022-03-18 16:27
marcanin both cases you're relying on third parties ;)
#asahi · 2022-03-18 16:27
marcanbut also, I'm not sure I see what is more "pure" about downloading the firmware from apple's CDN vs grabbing it from the ESP
#asahi · 2022-03-18 16:27
marcanyes
#asahi · 2022-03-18 16:26
marcanbut I mean we need the whole 1.x GB anyway
#asahi · 2022-03-18 16:25
marcanwell sure
#asahi · 2022-03-18 16:25
marcansee urlcache.py
#asahi · 2022-03-18 16:25
marcanwe only download ~1GB or so
#asahi · 2022-03-18 16:25
marcanbut not the rest of the ipsw
#asahi · 2022-03-18 16:25
marcanexcept we have to download the whole recovery image anyway
#asahi · 2022-03-18 16:25
marcanJamie[m]1: that is already what we're doing
#asahi · 2022-03-18 16:24
marcanthough you always want to include 0
#asahi · 2022-03-18 16:24
marcanstarts at 0
#asahi · 2022-03-18 16:24
marcanlike 1-2,5,6-7
#asahi · 2022-03-18 16:24
marcanj`ey: it's a list
#asahi · 2022-03-18 16:18
marcanthat sounds like a RAM issue
#asahi · 2022-03-18 16:17
marcancould also do one of those "self-reencrypt on first boot" things like android used to
#asahi · 2022-03-18 16:17
marcanI might look into supporting encryption in the installer once we have SEP and all that fun stuff, since at that point it will be worth having and supporting properly
#asahi · 2022-03-18 16:16
marcanfor people who want more complex storage setups the expectation is they will boot a normal distro installer from USB using the UEFI image
#asahi · 2022-03-18 16:16
marcanthe installer is unlikely to implement encryption any time soon, you'd have to reimplement LUKS in python or something, or drag around more tools
#asahi · 2022-03-18 10:21
marcanthey definitely don't *use* an AP TRNG if it exists
#asahi · 2022-03-18 10:16
marcanif there is a TRNG it'd be MMIO
#asahi · 2022-03-18 10:16
marcanthat is not implemented
#asahi · 2022-03-18 10:16
marcanno
#asahi · 2022-03-18 10:14
marcanthe cpu does not have that
#asahi · 2022-03-18 10:05
marcanone for SEP and one for AP
#asahi · 2022-03-18 10:05
marcanI would expect it to just have two
#asahi · 2022-03-18 10:05
marcanmps_: SEP *definitely* has a hardware RNG of some sort
#asahi · 2022-03-18 10:04
marcanFWIW there is a lot of hardware in these chips that we just know nothing about because XNU doesn't use it
#asahi · 2022-03-18 10:04
marcanbut if there is one XNU doesn't seem to use it?
#asahi · 2022-03-18 10:04
marcanI would *expect* the hardware to just have an RNG block somewhere accessible directly to the AP, it would seem very silly not to have that for apple
#asahi · 2022-03-18 10:03
marcanthe SEP driver does pull some randomness out of SEP on init, though
#asahi · 2022-03-18 10:03
marcanit's not in the device tree

plus ›