File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
webauthn-server-core/src/test/scala/com/yubico/webauthn Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -917,7 +917,8 @@ object TestAuthenticator {
917
917
(TpmAlgHash .SHA512 , TpmAlgAsym .ECC )
918
918
case COSEAlgorithmIdentifier .RS256 =>
919
919
(TpmAlgHash .SHA256 , TpmAlgAsym .RSA )
920
- case COSEAlgorithmIdentifier .RS1 => (TpmAlgHash .SHA1 , TpmAlgAsym .RSA )
920
+ case COSEAlgorithmIdentifier .RS1 => (TpmAlgHash .SHA1 , TpmAlgAsym .RSA )
921
+ case COSEAlgorithmIdentifier .EdDSA => ???
921
922
}
922
923
val hashFunc = hashId match {
923
924
case TpmAlgHash .SHA256 => Crypto .sha256(_ : ByteArray )
@@ -972,6 +973,10 @@ object TestAuthenticator {
972
973
case COSEAlgorithmIdentifier .ES256 => 0x0003
973
974
case COSEAlgorithmIdentifier .ES384 => 0x0004
974
975
case COSEAlgorithmIdentifier .ES512 => 0x0005
976
+ case COSEAlgorithmIdentifier .RS1 |
977
+ COSEAlgorithmIdentifier .RS256 |
978
+ COSEAlgorithmIdentifier .EdDSA =>
979
+ ???
975
980
}))
976
981
)
977
982
.concat(
Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ object WebAuthnTestCodecs {
40
40
alg : COSEAlgorithmIdentifier ,
41
41
): PrivateKey =
42
42
alg match {
43
- case COSEAlgorithmIdentifier .ES256 =>
43
+ case COSEAlgorithmIdentifier .ES256 | COSEAlgorithmIdentifier .ES384 |
44
+ COSEAlgorithmIdentifier .ES512 =>
44
45
val keyFactory : KeyFactory = KeyFactory .getInstance(" EC" )
45
46
val spec = new PKCS8EncodedKeySpec (encodedKey.getBytes)
46
47
keyFactory.generatePrivate(spec)
You can’t perform that action at this time.
0 commit comments