Skip to content

proper parameter selection for PQ key desearialisation #745

@petrovr

Description

@petrovr

Case is related to key deserialisation when a key is created using properties (parameters).
Minimal code snipped is:

	OSSL_PARAM params[] = {
		OSSL_PARAM_octet_string(OSSL_PKEY_PARAM_PRIV_KEY, priv, priv_len),
		OSSL_PARAM_octet_string(OSSL_PKEY_PARAM_PUB_KEY, pub, pub_len),
		OSSL_PARAM_END
	};
	int selection = OSSL_KEYMGMT_SELECT_KEYPAIR;
...
	EVP_PKEY_fromdata(ctx, pkeyp, selection, params)
...

The defect is that OQS provider fail to create key. Tested with ML-DSA and SLH-DSA keys.
This is not an issue in OpenSSL (>=3.5) default provider.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions