3 ms·
> No secret material is ever exchanged which means no MITM That's a bit of a stretch. A MITM could replace the public key that gets transferred. Admittedly,
by amluto 10y ago
> No secret material is ever exchanged which means no MITM
That's a bit of a stretch. A MITM could replace the public key that gets transferred. Admittedly, making it look like enrollment worked is awkward, but there is certainly no cryptographic prevention of a MITM.
I should also point out that, even if you choose to use public key crypto, using digital signatures in particular is not necessarily the right choice. The property you want is authentication, not necessarily a non-repudiable signature. For example, the private key holder could authenticate by decrypting an encrypted challenge or completing a DH exchange.
If you're using Curve25519, doing the DH operation is a bit cheaper and less fiddly than running Ed25519, which is a nice benefit. If you're using P-256, it's a much bigger deal: ECDH on P-256 is much safer than using ECDSA, especially on a limited device, as an ECDSA signature using a poor RNG can negate the security of the entire system.