oqs-provider icon indicating copy to clipboard operation
oqs-provider copied to clipboard

cannot "print" either public or private key

Open petrovr opened this issue 1 year ago • 3 comments

Functions EVP_PKEY_print_private_fp and EVP_PKEY_print_public_fp failed to output key information. OpenSSL error queue ( ERR_print_errors_fp(stderr) ) prints "Public Key algorithm "<NULL>" unsupported" in both cases.


I need this for trace(debug, log) functionality.

petrovr avatar Nov 19 '24 20:11 petrovr

I dont think this is the same issue, since this only happens with the private function, Not supported is not the same error

slontis avatar Nov 21 '24 01:11 slontis

OpenSSL error queue ( ERR_print_errors_fp(stderr) ) prints "Public Key algorithm "" unsupported"

IMO it looks like a setup error (no key type provided?) Please provide complete setup description as per bug report template so we can reproduce.

baentsch avatar Nov 29 '24 17:11 baentsch

More than one month a have prototype of "PQ/T Hybrid Key Exchange in SSH" (draft-kampanakis-curdle-ssh-pq-ke-NN) that uses OpenSSL PKEY with key generation, encapsulation, and decapsulation. Prototype "dumps" a lot of "internal information".

Part of prototype is just published, see kex_pkem_pkey_keygen . After this kex_pkem_to_sshbuf try to dump key. Result is same as reported: Public Key algorithm "<NULL>" unsupported. Remark: now message is quoted to be displayed properly.

petrovr avatar Nov 30 '24 12:11 petrovr