Re: EVP_PKEY_fromdata_init returns unsupported.

2022-02-28 Thread William Roberts
On Mon, Feb 28, 2022 at 2:59 AM Matt Caswell wrote: > > > > On 25/02/2022 22:07, William Roberts wrote: > > Hello, > > > > In openssl 3.0.1 the following code hits the ctx->keymgt is null check > > and thus returns -2 > > in pmeth_gn.c: > > static int fromdata_init(EVP_PKEY_CTX *ctx, int

Re: EVP_PKEY_fromdata_init returns unsupported.

2022-02-28 Thread Matt Caswell
On 25/02/2022 22:07, William Roberts wrote: Hello, In openssl 3.0.1 the following code hits the ctx->keymgt is null check and thus returns -2 in pmeth_gn.c: static int fromdata_init(EVP_PKEY_CTX *ctx, int operation) { if (ctx == NULL || ctx->keytype == NULL) goto not_supported;

Re: EVP_PKEY_fromdata_init returns unsupported.

2022-02-26 Thread William Roberts
On Fri, Feb 25, 2022 at 4:19 PM William Roberts wrote: > > Hi Kory, > > its the line: > genctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", NULL); > > There's a snippet in the first email or is there something else you're > asking me and I'm not groking it? > > Thanks, > Bill > > On Fri, Feb 25,

Re: EVP_PKEY_fromdata_init returns unsupported.

2022-02-25 Thread William Roberts
Hi Kory, its the line: genctx = EVP_PKEY_CTX_new_from_name(libctx, "RSA", NULL); There's a snippet in the first email or is there something else you're asking me and I'm not groking it? Thanks, Bill On Fri, Feb 25, 2022 at 4:16 PM Kory Hamzeh wrote: > > Hi Bill, > > How are you creating the

Re: EVP_PKEY_fromdata_init returns unsupported.

2022-02-25 Thread Kory Hamzeh
Hi Bill, How are you creating the EVP_PKEY_CTX? Kory > On Feb 25, 2022, at 2:07 PM, William Roberts wrote: > > Hello, > > In openssl 3.0.1 the following code hits the ctx->keymgt is null check > and thus returns -2 > in pmeth_gn.c: > static int fromdata_init(EVP_PKEY_CTX *ctx, int

EVP_PKEY_fromdata_init returns unsupported.

2022-02-25 Thread William Roberts
Hello, In openssl 3.0.1 the following code hits the ctx->keymgt is null check and thus returns -2 in pmeth_gn.c: static int fromdata_init(EVP_PKEY_CTX *ctx, int operation) { if (ctx == NULL || ctx->keytype == NULL) goto not_supported; evp_pkey_ctx_free_old_ops(ctx); if