Re: Integration of new algorithms

2020-09-30 Thread Kris Kwiatkowski
Hello, In regards to OBJ_new_nid - yes, that's more or less what I already do. I actually use OBJ_sn2nid() which, indeed calls a OBJ_new_nid(). But the problem that I've is different. In keygen (callback set by EVP_PKEY_meth_set_keygen), there is no way to access NID. It seems to be stored in the

Re: Integration of new algorithms

2020-09-30 Thread Dr Paul Dale
Instead of using an engine, you should write a provider (assuming you’re using the soon to be released OpenSSL 3.0). It doesn’t need a NID. If you are using OpenSSL 1.1.1, try the OBJ_new_nid() function. Pauli -- Dr Paul Dale | Distinguished Architect | Cryptographic Foundations Phone +61 7

Integration of new algorithms

2020-09-30 Thread Kris Kwiatkowski
Hey, I'm working on development of OpenSSL ENGINE that integrates post-quantum algorithms (new NIDs). During integration I need to modify OpenSSL code to add custom function, but would prefer not to need add anything to OpenSSL code (so engine can be dynmicaly loaded by any modern OpenSSL). So,