?
2021-04-22 1:08 غرينتش+03:00, openssl-users-requ...@openssl.org <openssl-users-requ...@openssl.org>: > Send openssl-users mailing list submissions to > openssl-users@openssl.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mta.openssl.org/mailman/listinfo/openssl-users > or, via email, send a message with subject or body 'help' to > openssl-users-requ...@openssl.org > > You can reach the person managing the list at > openssl-users-ow...@openssl.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of openssl-users digest..." > > > Today's Topics: > > 1. Re: PKCS#1 RSAPublicKey in Openssl 3.0 (Matt Caswell) > 2. How to access different fields of typedef struct evp_pkey_st > EVP_PKEY. (Kumar Mishra, Sanjeev) > 3. Re: How to access different fields of typedef struct > evp_pkey_st EVP_PKEY. (Matt Caswell) > 4. Re: How to access different fields of typedef struct > evp_pkey_st EVP_PKEY. (Tomas Mraz) > 5. Documentation on openssl 1.0.2 / FIPS module version support > for PPC LE (Bhadri Madapusi) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 20 Apr 2021 08:26:44 +0100 > From: Matt Caswell <m...@openssl.org> > To: openssl-users@openssl.org > Subject: Re: PKCS#1 RSAPublicKey in Openssl 3.0 > Message-ID: <ab9471d4-55fb-55a8-8343-125097bcd...@openssl.org> > Content-Type: text/plain; charset=windows-1252; format=flowed > > > > On 20/04/2021 06:30, Paramashivaiah, Sunil wrote: >> Hi All, >> >> ? ? ?PEM_read_bio_RSAPublicKey is deprecated in?Openssl 3.0. I am >> unable to find >> ? ? ?an alternate API to get EVP_PKEY from Pem format?PKCS#1 Public key. >> ? ? ?Is PKCS#1 Public key not supported in Openssl 3.0 >> ? ? ?Please suggest me how to get EVP_PKEY from Pem format?PKCS#1 >> Public key in Openssl 3.0 >> > > The functions PEM_read_bio_PUBKEY() or PEM_read_bio_PUBKEY_ex() can read > an RSA PKCS#1 public key in PEM format and returns it as an EVP_PKEY > (RSA_read_bio_PUBKEY is also available in older versions of OpenSSL). > > Alternatively you can use the newer and more flexible > OSSL_DECODER_CTX_new_for_pkey() and OSSL_DECODER_from_bio(). > > Matt > > > ------------------------------ > > Message: 2 > Date: Tue, 20 Apr 2021 10:45:26 +0000 > From: "Kumar Mishra, Sanjeev" <sanjeev.kumar-mis...@rbbn.com> > To: "openssl-users@openssl.org" <openssl-users@openssl.org> > Cc: "Paramashivaiah, Sunil" <sunil.paramashiva...@rbbn.com>, > "Bhattacharjee, Debapriyo \(c\)" <dbhattachar...@rbbn.com>, Shivakumar > Poojari <shivakumar.pooj...@rbbn.com> > Subject: How to access different fields of typedef struct evp_pkey_st > EVP_PKEY. > Message-ID: > > <sn2pr03mb2319fb6aa37befd7d07155b4a6...@sn2pr03mb2319.namprd03.prod.outlook.com> > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > I am not getting different functions in OpenSSL 3.0 for accessing different > fields of typedef struct evp_pkey_st EVP_PKEY. For Example - code is like > this - > EVP_PKEY * privKey; > ----- > ----- > if ( BN_cmp(privKey->pkey.rsa->n, pubKey->pkey.rsa->n) != 0 ) > ---- > ---- > else if ((privKey->type == EVP_PKEY_EC) && (pubKey->type == EVP_PKEY_EC)) > ----- > ------ > > > All of those codes give forward declaration error. > what are corresponding APIs in OpenSSL 3.0 > > Thanks With Best Regards, > Sanjeev Kumar Mishra > > Notice: This e-mail together with any attachments may contain information of > Ribbon Communications Inc. and its Affiliates that is confidential and/or > proprietary for the sole use of the intended recipient. Any review, > disclosure, reliance or distribution by others or forwarding without express > permission is strictly prohibited. If you are not the intended recipient, > please notify the sender immediately and then delete all copies, including > any attachments. > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <https://mta.openssl.org/pipermail/openssl-users/attachments/20210420/3b7f831e/attachment-0001.html> > > ------------------------------ > > Message: 3 > Date: Tue, 20 Apr 2021 11:58:50 +0100 > From: Matt Caswell <m...@openssl.org> > To: openssl-users@openssl.org > Subject: Re: How to access different fields of typedef struct > evp_pkey_st EVP_PKEY. > Message-ID: <ba051c3c-1270-e326-29e6-94ff8e99b...@openssl.org> > Content-Type: text/plain; charset=windows-1252; format=flowed > > > > On 20/04/2021 11:45, Kumar Mishra, Sanjeev wrote: >> Hi, >> I am not getting different functions in OpenSSL 3.0 for accessing >> different fields of?typedef struct evp_pkey_st EVP_PKEY. For Example - >> code is like this - >> EVP_PKEY * privKey; >> ----- >> ----- >> if ( BN_cmp(privKey->pkey.rsa->n, pubKey->pkey.rsa->n) != 0 ) > > BIGNUM *privn = NULL, *pubn = NULL; > > /* Error handling omitted for brevity...*/ > EVP_PKEY_get_bn_param(privKey, "n", &privn); > EVP_PKEY_get_bn_param(pubKey, "n", &pubKey); > if ( BN_cmp(privn, pubn) != 0) > > ... > BN_free(privn); > BN_free(pubn); > >> ---- >> ---- >> else if ((privKey->type == EVP_PKEY_EC) && (pubKey->type == EVP_PKEY_EC)) > > > else if (EVP_PKEY_is_a(privKey, "EC") && (EVP_PKEY_is_a(pubKey, "EC")) > > > > Matt > > > ------------------------------ > > Message: 4 > Date: Tue, 20 Apr 2021 13:06:37 +0200 > From: Tomas Mraz <to...@openssl.org> > To: "Kumar Mishra, Sanjeev" <sanjeev.kumar-mis...@rbbn.com>, > "openssl-users@openssl.org" <openssl-users@openssl.org> > Cc: "Paramashivaiah, Sunil" <sunil.paramashiva...@rbbn.com>, > "Bhattacharjee, Debapriyo \(c\)" <dbhattachar...@rbbn.com>, Shivakumar > Poojari <shivakumar.pooj...@rbbn.com> > Subject: Re: How to access different fields of typedef struct > evp_pkey_st EVP_PKEY. > Message-ID: > <8e7f2caf50306f13b6e74aeeddf675fdfea38b92.ca...@openssl.org> > Content-Type: text/plain; charset="UTF-8" > > On Tue, 2021-04-20 at 10:45 +0000, Kumar Mishra, Sanjeev wrote: >> Hi, >> I am not getting different functions in OpenSSL 3.0 for accessing >> different fields of typedef struct evp_pkey_st EVP_PKEY. For Example >> - code is like this - >> EVP_PKEY * privKey; >> ----- >> ----- >> if ( BN_cmp(privKey->pkey.rsa->n, pubKey->pkey.rsa->n) != 0 ) > > If you just want to compare private and public key whether the public > key component match, you can use: > > if (EVP_PKEY_eq(pubKey, privKey) != 1) { > /* keys do not match */ > } > >> ---- >> ---- >> else if ((privKey->type == EVP_PKEY_EC) && (pubKey->type == >> EVP_PKEY_EC)) > > You can use EVP_PKEY_base_id(key) to get the type however it would be > even better to use > EVP_PKEY_is_a(privKey, "EC") && EVP_PKEY_is_a(pubKey, "EC") > > > -- > Tom?? Mr?z > No matter how far down the wrong road you've gone, turn back. > Turkish proverb > [You'll know whether the road is wrong if you carefully listen to your > conscience.] > > > > > ------------------------------ > > Message: 5 > Date: Wed, 21 Apr 2021 18:07:53 -0400 > From: "Bhadri Madapusi" <bhad...@ca.ibm.com> > To: openssl-users@openssl.org > Subject: Documentation on openssl 1.0.2 / FIPS module version support > for PPC LE > Message-ID: > > <ofe14c2e5e.220eb1fa-on002586be.00797ded-852586be.00799...@notes.na.collabserv.com> > > Content-Type: text/plain; charset="us-ascii" > > > Hi, > > Is there any documentation on which version of openssl are supported on > PPC LE. I am trying to figure out which version of 1.0.2 source and FIPS > module to use to compile my nginx with openssl and FIPS. Thank you. > > regards, > > Bhadri > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <https://mta.openssl.org/pipermail/openssl-users/attachments/20210421/83ccbfa1/attachment.html> > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > openssl-users mailing list > openssl-users@openssl.org > https://mta.openssl.org/mailman/listinfo/openssl-users > > > ------------------------------ > > End of openssl-users Digest, Vol 77, Issue 36 > ********************************************* >