@dlongley @gannan08 The WebCrypto API methods (e.g., SubtleCrypto.generateKey) expect for ECDSA key operations to use the algorithm's name value of ECDSA and its namedCurve value that is one of {P-256, P-384, P-521}. However, the cryptosuite library expects us to use the curve name (e.g., P-256) as the algorithm name. At the moment, createSigner and createVerifier export an algorithm property with the value of ECDSA. I believe this needs to be changed to the value of the appropriate curve name in order to match the semantics of the cryptosuite library. Thoughts?
The algorithm for the cryptosuite will be P-256. The createSigner and createVerifier should export the specific curve name as the algorithm instead of ECDSA.
@dlongley @gannan08 The WebCrypto API methods (e.g., SubtleCrypto.generateKey) expect for ECDSA key operations to use the algorithm's
name
value ofECDSA
and itsnamedCurve
value that is one of {P-256
,P-384
,P-521
}. However, the cryptosuite library expects us to use the curve name (e.g.,P-256
) as the algorithm name. At the moment,createSigner
andcreateVerifier
export analgorithm
property with the value ofECDSA
. I believe this needs to be changed to the value of the appropriate curve name in order to match the semantics of the cryptosuite library. Thoughts?