Skip to content

Commit

Permalink
fixup! Handle compatibility for CKA_EC_POINT
Browse files Browse the repository at this point in the history
  • Loading branch information
simo5 committed Nov 26, 2024
1 parent 558124a commit 79bf6ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ extern "C" fn fn_get_attribute_value(
let ec_point_len = match tmpl.iter().find(|a| a.type_ == CKA_EC_POINT) {
Some(a) => {
let gconf = global_rlock!(noinitcheck CONFIG);
/* enable the whole thing only if we need to convert to bacwards
/* enable the whole thing only if we need to convert to backwards
* compatible DER encoding */
if gconf.conf.ec_point_encoding == config::EcPointEncoding::Der {
let buflen =
Expand Down
2 changes: 1 addition & 1 deletion src/tests/eddsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ fn test_create_eddsa_compat() {
&[(CKA_VERIFY, true)]
));

/* Test Vectors for Ed25519ctx with publc point in DER format*/
/* Test Vectors for Ed25519ctx with public point in DER format*/
let point_der = hex::decode(
"0420dfc9425e4f968f7f0c29f0259cf5f9aed6851c2bb4ad8bfb860cfee0ab248292",
)
Expand Down

0 comments on commit 79bf6ec

Please sign in to comment.