Open gilles-peskine-arm opened 3 years ago
The PSA Crypto spec has the following documentation for this case:
For curve family
PSA_ECC_FAMILY_MONTGOMERY
, the scalar value of the 'public key' in little-endian order as defined by RFC 7748 §6. This is aceiling(m/8)
-byte string wherem
is the key size in bits.
- This is 32 bytes for Curve25519, computed as
X25519(private_key, 9)
.- This is 56 bytes for Curve448, computed as
X448(private_key, 5)
.
The documentation of
psa_export_public_key
ininclude/psa/crypto.h
is missing the case of Montgomery public keys. It is present in the specification.Goal of this task: