<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head><body lang="EN-IN" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi Matt,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">                Thanks for the reply.. we would implement as you suggested.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Matt Caswell <matt@openssl.org>
<br>
<b>Sent:</b> 23 November 2020 17:12<br>
<b>To:</b> Narayana, Sunil Kumar <sanarayana@rbbn.com>; openssl-users@openssl.org<br>
<b>Subject:</b> Re: set/get utilities are not available to access variable 'num' of structure bio_st (Matt Caswell)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal">NOTICE: This email was received from an EXTERNAL sender<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
On 23/11/2020 11:28, Narayana, Sunil Kumar wrote:<br>
> Hi Matt,<br>
>                We are using  MEM type BIO. similar to the openssl<br>
> library ‘BIO_TYPE_MEM ‘ we have an internal type defined like ex:-<br>
> ‘BIO_TYPE_XYZ_MEM’  and all other mem utilities are internally defined.<br>
> <br>
> Like XYZ_mem_new/XYZ_mem_read … etc  these utilities are accessing the<br>
> bio_st variable ‘*num’*.<br>
> <br>
> please suggest set/get utilities to handle this scenario.<br>
<br>
If I understand correctly you want to store an "int" value internally to<br>
a custom BIO.<br>
<br>
Custom BIOs can associate an arbitrary data structure with the BIO<br>
object and store whatever they like in it using the BIO_get_data() and<br>
BIO_set_data() functions.<br>
<br>
For example:<br>
<br>
typedef struct {<br>
int num;<br>
} XYZ_PRIVATE_DATA;<br>
<br>
static int XYZ_mem_new(BIO *bio)<br>
{<br>
XYZ_PRIVATE_DATA *data = OPENSSL_zalloc(sizeof(*data));<br>
<br>
if (data == NULL)<br>
return 0;<br>
<br>
/* Store whatever you like in num */<br>
data->num = 5;<br>
BIO_set_data(bio, data);<br>
}<br>
<br>
static int XYZ_mem_free(BIO *bio)<br>
{<br>
XYZ_PRIVATE_DATA *data = BIO_get_data(bio);<br>
<br>
OPENSSL_free(data);<br>
BIO_set_data(bio, NULL);<br>
}<br>
<br>
static int XYZ_mem_read(BIO *bio, char *out, int outl)<br>
{<br>
XYZ_PRIVATE_DATA *data = BIO_get_data(bio);<br>
<br>
/* Do the read operation and use data->num as required */<br>
}<br>
<br>
<br>
Matt<br>
<br>
> <br>
> <br>
> Regards,<br>
> <br>
> Sunil<br>
> <br>
> *From:*openssl-users <<a href="mailto:openssl-users-bounces@openssl.org">openssl-users-bounces@openssl.org</a>> *On Behalf Of<br>
> <a href="mailto:*openssl-users-request@openssl.org">*openssl-users-request@openssl.org</a><br>
> *Sent:* 20 November 2020 23:34<br>
> *To:* <a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a><br>
> *Subject:* openssl-users Digest, Vol 72, Issue 19<br>
> <br>
>  <br>
> <br>
> ------------------------------------------------------------------------<br>
> <br>
> NOTICE: This email was received from an EXTERNAL sender<br>
> <br>
> ------------------------------------------------------------------------<br>
> <br>
> <br>
> Send openssl-users mailing list submissions to<br>
> <a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a> <<a href="mailto:openssl-users@openssl.org">mailto:openssl-users@openssl.org</a>><br>
> <br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="https://mta.openssl.org/mailman/listinfo/openssl-users">
https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:openssl-users-request@openssl.org">openssl-users-request@openssl.org</a> <<a href="mailto:openssl-users-request@openssl.org">mailto:openssl-users-request@openssl.org</a>><br>
> <br>
> You can reach the person managing the list at<br>
> <a href="mailto:openssl-users-owner@openssl.org">openssl-users-owner@openssl.org</a> <<a href="mailto:openssl-users-owner@openssl.org">mailto:openssl-users-owner@openssl.org</a>><br>
> <br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of openssl-users digest..."<br>
> <br>
> <br>
> Today's Topics:<br>
> <br>
> 1. set/get utilities are not available to access variable<br>
> 'num' of structure bio_st (Narayana, Sunil Kumar)<br>
> 2. Re: set/get utilities are not available to access variable<br>
> 'num' of structure bio_st (Matt Caswell)<br>
> 3. EC curve preferences (Skip Carter)<br>
> 4. RE: EC curve preferences (Michael Wojcik)<br>
> <br>
> <br>
> ----------------------------------------------------------------------<br>
> <br>
> Message: 1<br>
> Date: Fri, 20 Nov 2020 13:46:00 +0000<br>
> From: "Narayana, Sunil Kumar" <<a href="mailto:sanarayana@rbbn.com%0b">sanarayana@rbbn.com<br>
</a>> <<a href="mailto:sanarayana@rbbn.com">mailto:sanarayana@rbbn.com</a>>><br>
> To: "<a href="mailto:openssl-users@openssl.org%20%3cmailto:openssl-users@openssl.org%3e">openssl-users@openssl.org <mailto:openssl-users@openssl.org></a>"<br>
> <<a href="mailto:openssl-users@openssl.org%20%3cmailto:openssl-users@openssl.org">openssl-users@openssl.org <mailto:openssl-users@openssl.org</a>>><br>
> Subject: set/get utilities are not available to access variable<br>
> 'num' of structure bio_st<br>
> Message-ID:<br>
> <<a href="mailto:SN6PR03MB4061A9FF473DE74B064A1D8DB0FF0@SN6PR03MB4061.namprd03.prod.outlook.com%0b">SN6PR03MB4061A9FF473DE74B064A1D8DB0FF0@SN6PR03MB4061.namprd03.prod.outlook.com<br>
</a>> <<a href="mailto:SN6PR03MB4061A9FF473DE74B064A1D8DB0FF0@SN6PR03MB4061.namprd03.prod.outlook.com">mailto:SN6PR03MB4061A9FF473DE74B064A1D8DB0FF0@SN6PR03MB4061.namprd03.prod.outlook.com</a>>><br>
> <br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> Hi ,<br>
> We are porting our Application from openssl 1.0.1 to openssl 3.0. In<br>
> related to this activity we require to access the variable 'num' of<br>
> structure bio_st.<br>
> In older versions the variable was accessed to set and get value using<br>
> pointer operator (bi->num ).<br>
> Since this is not allowed in 3.0 we are looking for the Get/Set<br>
> utilities similar to other member (BIO_set_flags/ BIO_get_flags)<br>
> <br>
> Is this not supported in 3.0 ? If yes, Please guide the proper alternatives.<br>
> <br>
> Regards,<br>
> Sunil<br>
> <br>
> <br>
> -----------------------------------------------------------------------------------------------------------------------<br>
> Notice: This e-mail together with any attachments may contain<br>
> information of Ribbon Communications Inc. that<br>
> is confidential and/or proprietary for the sole use of the intended<br>
> recipient. Any review, disclosure, reliance or<br>
> distribution by others or forwarding without express permission is<br>
> strictly prohibited. If you are not the intended<br>
> recipient, please notify the sender immediately and then delete all<br>
> copies, including any attachments.<br>
> -----------------------------------------------------------------------------------------------------------------------<br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <<a href="https://mta.openssl.org/pipermail/openssl-users/attachments/20201120/f84c547a/attachment-0001.html">https://mta.openssl.org/pipermail/openssl-users/attachments/20201120/f84c547a/attachment-0001.html</a>><br>
> <br>
> ------------------------------<br>
> <br>
> Message: 2<br>
> Date: Fri, 20 Nov 2020 13:55:34 +0000<br>
> From: Matt Caswell <<a href="mailto:matt@openssl.org%20%3cmailto:matt@openssl.org">matt@openssl.org <mailto:matt@openssl.org</a>>><br>
> To: <a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a> <<a href="mailto:openssl-users@openssl.org">mailto:openssl-users@openssl.org</a>><br>
> Subject: Re: set/get utilities are not available to access variable<br>
> 'num' of structure bio_st<br>
> Message-ID: <<a href="mailto:53108b39-21f8-dea0-c3c3-fe5517a5613f@openssl.org%0b">53108b39-21f8-dea0-c3c3-fe5517a5613f@openssl.org<br>
</a>> <<a href="mailto:53108b39-21f8-dea0-c3c3-fe5517a5613f@openssl.org">mailto:53108b39-21f8-dea0-c3c3-fe5517a5613f@openssl.org</a>>><br>
> Content-Type: text/plain; charset=utf-8<br>
> <br>
> <br>
> <br>
> On 20/11/2020 13:46, Narayana, Sunil Kumar wrote:<br>
>> Hi ,<br>
>><br>
>> ??????????????? We are porting our Application from ?openssl 1.0.1 to<br>
>> openssl 3.0. In related to this activity we require to access the<br>
>> variable ?*num*? of structure *bio_st. *<br>
>><br>
>> In older versions the variable was accessed to set and get value using<br>
>> pointer operator (bi->num ).<br>
>><br>
>> Since this is not allowed in 3.0 we are looking for the Get/Set<br>
>> utilities similar to other member*(BIO_set_flags/ BIO_get_flags) *<br>
>><br>
>> ?<br>
>><br>
>> Is this not supported in 3.0 ? If yes, Please guide the proper<br>
> alternatives.<br>
> <br>
> What kind of BIO are you using? Different BIOs may provide different<br>
> mechanisms to get hold of this value. For example a number of file<br>
> descriptor based BIOs provide BIO_get_fd().<br>
> <br>
> Matt<br>
> <br>
> <br>
> <br>
> ------------------------------<br>
> <br>
> Message: 3<br>
> Date: Fri, 20 Nov 2020 08:43:59 -0800<br>
> From: Skip Carter <<a href="mailto:skip@taygeta.com%20%3cmailto:skip@taygeta.com">skip@taygeta.com <mailto:skip@taygeta.com</a>>><br>
> To: OpenSSL Users <<a href="mailto:openssl-users@openssl.org%0b">openssl-users@openssl.org<br>
</a>> <<a href="mailto:openssl-users@openssl.org">mailto:openssl-users@openssl.org</a>>><br>
> Subject: EC curve preferences<br>
> Message-ID: <<a href="mailto:1605890639.1675.24.camel@taygeta.com%0b">1605890639.1675.24.camel@taygeta.com<br>
</a>> <<a href="mailto:1605890639.1675.24.camel@taygeta.com">mailto:1605890639.1675.24.camel@taygeta.com</a>>><br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
> <br>
> I am sure this in the documentation somewhere; but where ?<br>
> <br>
> What are the preferred ECDH curves for a given keysize ? Which curves<br>
> are considered obsolete/deprecated/untrustworthy ?<br>
> <br>
> <br>
> -- <br>
> Dr Everett (Skip) Carter??0xF29BF36844FB7922<br>
> <a href="mailto:skip@taygeta.com">skip@taygeta.com</a> <<a href="mailto:skip@taygeta.com">mailto:skip@taygeta.com</a>><br>
> <br>
> Taygeta Scientific Inc<br>
> 607 Charles Ave<br>
> Seaside CA 93955<br>
> 831-641-0645 x103<br>
> <br>
> <br>
> -------------- next part --------------<br>
> A non-text attachment was scrubbed...<br>
> Name: signature.asc<br>
> Type: application/pgp-signature<br>
> Size: 659 bytes<br>
> Desc: This is a digitally signed message part<br>
> URL:<br>
> <<a href="https://mta.openssl.org/pipermail/openssl-users/attachments/20201120/b8a90ad9/attachment-0001.sig">https://mta.openssl.org/pipermail/openssl-users/attachments/20201120/b8a90ad9/attachment-0001.sig</a>><br>
> <br>
> ------------------------------<br>
> <br>
> Message: 4<br>
> Date: Fri, 20 Nov 2020 18:03:22 +0000<br>
> From: Michael Wojcik <<a href="mailto:Michael.Wojcik@microfocus.com%0b">Michael.Wojcik@microfocus.com<br>
</a>> <<a href="mailto:Michael.Wojcik@microfocus.com">mailto:Michael.Wojcik@microfocus.com</a>>><br>
> To: Skip Carter <<a href="mailto:skip@taygeta.com%20%3cmailto:skip@taygeta.com">skip@taygeta.com <mailto:skip@taygeta.com</a>>>, OpenSSL Users<br>
> <<a href="mailto:openssl-users@openssl.org%20%3cmailto:openssl-users@openssl.org">openssl-users@openssl.org <mailto:openssl-users@openssl.org</a>>><br>
> Subject: RE: EC curve preferences<br>
> Message-ID:<br>
> <<a href="mailto:DM6PR18MB2700D392831EA5CD3EF318D5F9FF0@DM6PR18MB2700.namprd18.prod.outlook.com%0b">DM6PR18MB2700D392831EA5CD3EF318D5F9FF0@DM6PR18MB2700.namprd18.prod.outlook.com<br>
</a>> <<a href="mailto:DM6PR18MB2700D392831EA5CD3EF318D5F9FF0@DM6PR18MB2700.namprd18.prod.outlook.com">mailto:DM6PR18MB2700D392831EA5CD3EF318D5F9FF0@DM6PR18MB2700.namprd18.prod.outlook.com</a>>><br>
> <br>
> Content-Type: text/plain; charset="utf-8"<br>
> <br>
>> From: openssl-users <<a href="mailto:openssl-users-bounces@openssl.org%0b">openssl-users-bounces@openssl.org<br>
</a>> <<a href="mailto:openssl-users-bounces@openssl.org">mailto:openssl-users-bounces@openssl.org</a>>> On Behalf Of Skip<br>
>> Carter<br>
>> Sent: Friday, 20 November, 2020 09:44<br>
>><br>
>> What are the preferred ECDH curves for a given keysize ? Which curves<br>
>> are considered obsolete/deprecated/untrustworthy ?<br>
> <br>
> For TLSv1.3, this is easy. RFC 8446 B.3.1.4 only allows the following:<br>
> secp256r1(0x0017), secp384r1(0x0018), secp521r1(0x0019), x25519(0x001D),<br>
> x448(0x001E). Those are your choices. If you want interoperability,<br>
> enable them all; if you want maximum security, only use X25519 and X448.<br>
> See safecurves.cr.yp.to for the arguments in favor of the latter position.<br>
> <br>
> Frankly, unless you're dealing with something of very high value or that<br>
> needs to resist breaking for a long time, I don't see any real-world<br>
> risk in using the SEC 2 curves. You might want to disallow just<br>
> secp256r1 if you're concerned about that key size becoming tractable<br>
> under new attacks or quantum computing within your threat timeframe.<br>
> Ultimately, this is a question for your threat model.<br>
> <br>
> <br>
> For TLSv1.2, well...<br>
> <br>
> - Some people recommend avoiding non-prime curves (i.e. over binary<br>
> fields, such as the sect* ones) for intellectual-property reasons. I'm<br>
> not going to try to get into that, because IANAL and even if I were, I<br>
> wouldn't touch that without a hefty retainer.<br>
> <br>
> - Current consensus, more or less, seems to be to use named curves and<br>
> not custom ones. The arguments for that seem pretty persuasive to me. So<br>
> don't use custom curves.<br>
> <br>
> - Beyond that? Well, here's one Stack Exchange response from Thomas<br>
> Pornin (who knows a hell of a lot more about this stuff than I do) where<br>
> he suggests using just prime256v1 (which is the same as secp256r1 I<br>
> believe?) and secp384r1:<br>
> <br>
> <a href="https://security.stackexchange.com/questions/78621/which-elliptic-curve-should-i-use">
https://security.stackexchange.com/questions/78621/which-elliptic-curve-should-i-use</a><br>
> <br>
> Those are the curves in Suite B, before the NSA decided to emit vague<br>
> warnings about ECC. They subsequently decided P384 aka secp384r1 is OK<br>
> until post-quantum primitives are standardized. So if your application<br>
> prefers secp384r1 for TLSv1.2, then you can decide whether to also allow<br>
> prime256v1 for interoperability. Again, that's a question for your<br>
> threat model.<br>
> <br>
> All that said, some people will have different, and quite possibly<br>
> better-informed, opinions on this.<br>
> <br>
> --<br>
> Michael Wojcik<br>
> <br>
> ------------------------------<br>
> <br>
> Subject: Digest Footer<br>
> <br>
> _______________________________________________<br>
> openssl-users mailing list<br>
> <a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a> <<a href="mailto:openssl-users@openssl.org">mailto:openssl-users@openssl.org</a>><br>
> <a href="https://mta.openssl.org/mailman/listinfo/openssl-users">
https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
> <br>
> <br>
> ------------------------------<br>
> <br>
> End of openssl-users Digest, Vol 72, Issue 19<br>
> *********************************************<br>
> <o:p></o:p></p>
</div>


<br><br><span style="font-family:Arial; Font-size:8.0pt"> <hr> Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. 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.<hr> </span></body></html>