Skip to content

Commit

Permalink
fix: update P/K 256 key purpose
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Ranjit Tummalapalli <[email protected]>
  • Loading branch information
sairanjit committed Jan 31, 2024
1 parent d1b80d1 commit 6b0f484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/askar/src/utils/askarKeyTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ const keyTypeToAskarAlg = {
},
[KeyType.P256]: {
keyAlg: KeyAlgs.EcSecp256r1,
purposes: [AskarKeyTypePurpose.KeyManagement],
purposes: [AskarKeyTypePurpose.KeyManagement, AskarKeyTypePurpose.Signing],
},
[KeyType.K256]: {
keyAlg: KeyAlgs.EcSecp256k1,
purposes: [AskarKeyTypePurpose.KeyManagement],
purposes: [AskarKeyTypePurpose.KeyManagement, AskarKeyTypePurpose.Signing],
},
}

Expand Down

0 comments on commit 6b0f484

Please sign in to comment.