-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support compat decoding of CKA_EC_POINT
For CCK_EC_EDWARDS and CKK_EC_MONTGOMERY curves the spec assumes a plain byte array for CKA_EC_POINT, but many implementations incorrectly use DER OCTET STRING encoding for this point. DEtecting this is easy when reading from the token, and hpefully all tokens will support handling DER encoded input (as backwards compatibility) when importing objects. Signed-off-by: Simo Sorce <[email protected]>
- Loading branch information
Showing
1 changed file
with
64 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters