Skip to content

Commit

Permalink
UserKeyServiceImpl convert function does not support EdDSA Algorithm (l…
Browse files Browse the repository at this point in the history
…ine#5)

Co-authored-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn and gmulhearn-anonyome committed Sep 24, 2021
1 parent fcf6196 commit ca1aa78
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ private UserKey convert(UserKeyEntity userKeyEntity) {
try {
if (algorithm.isRSAAlgorithm()) {
keyFactory = KeyFactory.getInstance("RSA");
} else if (algorithm.isEdDSAAlgorithm()) {
keyFactory = KeyFactory.getInstance("EdDSA");
} else {
keyFactory = KeyFactory.getInstance("ECDSA");
}
Expand Down

0 comments on commit ca1aa78

Please sign in to comment.