The project aims to simplify the usage of ECC curve (curve25519) with Diffie-Hellman Key exchange. The work is inline with the Account Aggregator Specification.
Apache License 2.0
13
stars
20
forks
source link
encoded key spec not recognized: algorithm identifier 1.3.101.110 in key not recognised #36
I'm generating x25519 keypair using crypto.generateKeyPairSync in Node.js. But on providing the generated public key in FI data request (/FI/request) api, AA is responding with Invalid DHPublic Key error message. Also following is the error, AA is encountering at their side:
java.security.spec.InvalidKeySpecException: encoded key spec not recognized:
algorithm identifier 1.3.101.110 in key not recognised
at org.bouncycastle.jcajce.provider.asymmetric.util.BaseKeyFactorySpi.engineGeneratePublic
I'm generating x25519 keypair using
crypto.generateKeyPairSync
in Node.js. But on providing the generated public key in FI data request (/FI/request
) api, AA is responding withInvalid DHPublic Key
error message. Also following is the error, AA is encountering at their side:KeyMaterial that I'm sending:
Node.js code that I'm using to generate keypair is given below and also provided in this repo here.
Is there anything I'm missing or doing incorrect here?
@gsasikumar