Question about About ECDH_ECDSA implementation
Seung-bum Jin <[email protected]> Fri, 15 Nov 2019 23:54:22 +0900
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <CANzR=_XkSsaiOfZioGdk_Ta0QVzhXsQXfL-1AkOR89pMho685g@mail.gmail.com> |
--000000000000a9ecd4059763c6fc
Content-Type: text/plain; charset="UTF-8"
--------------------------------------------------------------
From: Seung-bum Jin <[email protected]>
To: [email protected]
Subject: Question about DTLS implementations
Hi All,
We are trying to use the BouncyCastle 1.63 java source to implement DTLS
protcol on our JSSE provider.
The source code of org.bouncycastle.jsse.provider.ProvTlsServer seems to be
not processing ECDH_ECDSA case. Is the code intended implementation? Or
features still not implemented?
protected boolean selectCredentials(int cipherSuite) throws IOException
{
this.credentials = null;
int keyExchangeAlgorithm =
TlsUtils.getKeyExchangeAlgorithm(cipherSuite);
switch (keyExchangeAlgorithm)
{
case KeyExchangeAlgorithm.DH_anon:
case KeyExchangeAlgorithm.ECDH_anon:
return true;
case KeyExchangeAlgorithm.DHE_DSS:
case KeyExchangeAlgorithm.DHE_RSA:
case KeyExchangeAlgorithm.ECDHE_ECDSA:
case KeyExchangeAlgorithm.ECDHE_RSA:
case KeyExchangeAlgorithm.RSA:
break;
default:
return false;
}
...
Seung-Bum Jin.
Driector, Research & Development Dept.
Peoplecar,
Replublic Of Korea.
--------------------------------------------------------------
....
--000000000000a9ecd4059763c6fc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">----------------------------------------------------------=
----<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0From: Seung-bum Jin <<a href=3D"mailt=
o:[email protected]" target=3D"_blank">[email protected]</a>><br>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0To:=C2=A0<a href=3D"mailto:dev-crypto@bouncy=
castle.org" target=3D"_blank">[email protected]</a><br>=C2=A0 =C2=
=A0 Subject: Question about DTLS implementations<br><br><p style=3D"margin:=
0px;padding:0px;border:0px;outline:0px;font-variant-numeric:inherit;font-va=
riant-east-asian:inherit;font-stretch:inherit;font-size:12pt;line-height:24=
px;font-family:=EA=B5=B4=EB=A6=BC;vertical-align:baseline;min-height:20px">=
Hi All,</p><p style=3D"margin:0px;padding:0px;border:0px;outline:0px;font-v=
ariant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inherit=
;font-size:12pt;line-height:24px;font-family:=EA=B5=B4=EB=A6=BC;vertical-al=
ign:baseline;min-height:20px">We are trying to use the BouncyCastle 1.63 ja=
va source to implement DTLS protcol on our JSSE provider.=C2=A0</p><p style=
=3D"margin:0px;padding:0px;border:0px;outline:0px;font-variant-numeric:inhe=
rit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:12pt;lin=
e-height:24px;font-family:=EA=B5=B4=EB=A6=BC;vertical-align:baseline;min-he=
ight:20px"><br></p><p style=3D"margin:0px;padding:0px;border:0px;outline:0p=
x;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch=
:inherit;font-size:12pt;line-height:24px;font-family:=EA=B5=B4=EB=A6=BC;ver=
tical-align:baseline;min-height:20px">The source code of=C2=A0org.bouncycas=
tle.jsse.provider.ProvTlsServer seems to be not processing ECDH_ECDSA case.=
Is the code intended implementation? Or features still not implemented?=C2=
=A0<br></p><div><br></div><div>=C2=A0 =C2=A0 protected boolean selectCreden=
tials(int cipherSuite) throws IOException<br>=C2=A0 =C2=A0 {<br>=C2=A0 =C2=
=A0 =C2=A0 =C2=A0 this.credentials =3D null;<br><br>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 int keyExchangeAlgorithm =3D TlsUtils.getKeyExchangeAlgorithm(cipher=
Suite);<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 switch (keyExchangeAlgorithm)<br>=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 {<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 case KeyExchangeA=
lgorithm.DH_anon:<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 case KeyExchangeAlgorithm.=
ECDH_anon:<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return true;<br><br=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 case KeyExchangeAlgorithm.DHE_DSS:<br>=C2=A0 =
=C2=A0 =C2=A0 =C2=A0 case KeyExchangeAlgorithm.DHE_RSA:<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 case KeyExchangeAlgorithm.ECDHE_ECDSA:<br>=C2=A0 =C2=A0 =C2=
=A0 =C2=A0 case KeyExchangeAlgorithm.ECDHE_RSA:<br>=C2=A0 =C2=A0 =C2=A0 =C2=
=A0 case KeyExchangeAlgorithm.RSA:<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 break;<br><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 default:<br>=C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 return false;<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 }<=
br></div><div>...</div><div><p style=3D"margin:0px;padding:0px;border:0px;o=
utline:0px;font-variant-numeric:inherit;font-variant-east-asian:inherit;fon=
t-stretch:inherit;font-size:10pt;line-height:20px;font-family:=EB=8F=8B=EC=
=9B=80;vertical-align:baseline;min-height:20px"><br class=3D"gmail-Apple-in=
terchange-newline">Seung-Bum Jin.</p><p style=3D"margin:0px;padding:0px;bor=
der:0px;outline:0px;font-variant-numeric:inherit;font-variant-east-asian:in=
herit;font-stretch:inherit;font-size:12pt;line-height:24px;font-family:=EA=
=B5=B4=EB=A6=BC;vertical-align:baseline;min-height:20px">=C2=A0</p><p style=
=3D"margin:0px;padding:0px;border:0px;outline:0px;font-variant-numeric:inhe=
rit;font-variant-east-asian:inherit;font-stretch:inherit;font-size:10pt;lin=
e-height:20px;font-family:=EB=8F=8B=EC=9B=80;vertical-align:baseline;min-he=
ight:20px">Driector, Research & Development Dept.</p><p style=3D"margin=
:0px;padding:0px;border:0px;outline:0px;font-variant-numeric:inherit;font-v=
ariant-east-asian:inherit;font-stretch:inherit;font-size:10pt;line-height:2=
0px;font-family:=EB=8F=8B=EC=9B=80;vertical-align:baseline;min-height:20px"=
>Peoplecar,</p><p style=3D"margin:0px;padding:0px;border:0px;outline:0px;fo=
nt-variant-numeric:inherit;font-variant-east-asian:inherit;font-stretch:inh=
erit;font-size:10pt;line-height:20px;font-family:=EB=8F=8B=EC=9B=80;vertica=
l-align:baseline;min-height:20px">Replublic Of Korea.</p>------------------=
--------------------------------------------=C2=A0=C2=A0<div class=3D"gmail=
-yj6qo"></div><div class=3D"gmail-adL"></div><div class=3D"gmail-adL"><br><=
/div></div><div>=C2=A0 =C2=A0 ....</div></div>
--000000000000a9ecd4059763c6fc--