summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Eran Messeri <eranm@google.com> 2022-05-04 17:49:48 +0100
committer Eran Messeri <eranm@google.com> 2022-05-05 14:58:52 +0100
commit143fa39384d69d4de7a92ce64b2a7a2ac0ba8728 (patch)
tree5755b1c91e13da61a09d81094130a0e7b9243737 /libs/androidfw/misc.cpp
parent12931e7709ffeff613d168a45c42213d604ee4d4 (diff)
Keystore: Support Ed25519 keys
Implement support for Ed25519 signing keys in Android Keystore. Because Conscrypt does not yet handle those keys, the Keystore classes implement EdECPublicKey directly and parse the keys. Specifically, AndroidKeyStoreEdECPublicKey can take an encoded X.509 key specification, validate the encoding is of an Ed25519 key, then parse the oddity and Y point on the curve. RFC8032 describes EdDSA signature scheme, particularly Ed25519. RFC8410, Section 3, defines the OID for Ed25519 keys (1.3.101.112). RFC8410, Section 4, describes the encoding of the public key. Bug: 195309719 Bug: 194359292 Bug: 214203951 Test: atest android.security.keystore2.AndroidKeyStoreEdECPublicKeyTest Change-Id: I07b793cbd5029630768368ad4a863bbc1c828ced
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions