AES192 and SHA256 support
sukeerthi bj <[email protected]> Fri, 17 May 2024 17:13:30 +0530
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAPf-taMJgaYihtw2H-en7rREchujo6DT4QbCwq22bUFszVacEg@mail.gmail.com> |
--===============8062374074477285359==
Content-Type: multipart/alternative; boundary="00000000000009eafd0618a4dd2a"
--00000000000009eafd0618a4dd2a
Content-Type: text/plain; charset="UTF-8"
Hi,
I see AES192 and SHA256 support in SNMP, but wanted to understand if below
code is doing right? Here for pcks_generate_ku only CKM_SHA_1 is passed.
For SHA256 should not CKM_SHA256 be passed here instead?
Can anyone have a look into this and explain?
#ifndef NETSNMP_DISABLE_MD5
if (NETSNMP_USMAUTH_HMACMD5 == auth_type)
return pkcs_generate_Ku(CKM_MD5, P, pplen, Ku, kulen);
else
#endif
if (NETSNMP_USMAUTH_HMACSHA1 == auth_type)
return pkcs_generate_Ku(CKM_SHA_1, P, pplen, Ku, kulen);
else {
return (SNMPERR_GENERR);
--00000000000009eafd0618a4dd2a
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi,<div><br></div><div>I see AES192 and SHA256 support in =
SNMP, but wanted to understand if below code is doing right? Here for pcks_=
generate_ku only CKM_SHA_1 is passed.=C2=A0</div><div>For SHA256 should not=
=C2=A0CKM_SHA256 be passed here instead?</div><div>Can anyone have a look i=
nto=C2=A0this and explain?</div><div><br></div><div><div style=3D"color:rgb=
(212,212,212);background-color:rgb(30,30,30);font-family:Menlo,Monaco,"=
;Courier New",monospace;font-size:12px;line-height:18px;white-space:pr=
e"><div><span style=3D"color:rgb(197,134,192)">#ifndef</span><span style=3D=
"color:rgb(86,156,214)"> NETSNMP_DISABLE_MD5</span></div><div> <span sty=
le=3D"color:rgb(197,134,192)">if</span> (NETSNMP_USMAUTH_HMACMD5 =3D=3D aut=
h_type)</div><div> <span style=3D"color:rgb(197,134,192)">return</sp=
an> <span style=3D"color:rgb(220,220,170)">pkcs_generate_Ku</span>(CKM_MD5,=
P, pplen, Ku, kulen);</div><div> <span style=3D"color:rgb(197,134,192)"=
>else</span></div><div><span style=3D"color:rgb(197,134,192)">#endif</span>=
</div><div> <span style=3D"color:rgb(197,134,192)">if</span> (NETSNM=
P_USMAUTH_HMACSHA1 =3D=3D auth_type)</div><div> <span style=3D"color=
:rgb(197,134,192)">return</span> <span style=3D"color:rgb(220,220,170)">pkc=
s_generate_Ku</span>(CKM_SHA_1, P, pplen, Ku, kulen);</div><div> <span s=
tyle=3D"color:rgb(197,134,192)">else</span> {</div><div> <span style=
=3D"color:rgb(197,134,192)">return</span> (SNMPERR_GENERR);</div></div></di=
v></div>
--00000000000009eafd0618a4dd2a--
--===============8062374074477285359==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============8062374074477285359==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
--===============8062374074477285359==--