[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bouncycastle-crypto-dev
Subject:    Re: [dev-crypto] Digital Signature support for EdDSA with E25519
From:       David Hook <dgh () cryptoworkshop ! com>
Date:       2018-09-11 1:34:13
Message-ID: 07c0ba19-a833-0be5-492f-99d72f75acd1 () cryptoworkshop ! com
[Download RAW message or body]

Hi,

Support for Edwards Curves is now in the latest beta. The best way to
use them is by algorithm name as they follow the RFCs, e.g. Ed448, Ed25519.

See https://www.bouncycastle.org/betas for details.

Regards,

David

On 11/09/18 05:04, Sarah Hand wrote:
> Hi Bouncy Castle Devs,
>
> I'm a relative novice to Java security, but am being asked *to sign
> some data using EdDSA with E25519 elliptic curve*.  I'm trying to
> determine if Bouncy Castle supports this or not. I have public/private
> keys already created for that curve and need to use these keys to do
> the signing, but I can't figure out how to initialize/setup the
> classes to work.
>
> For example, I've tried the following code (thinking this is the right
> way to proceed) but cannot determine what algorithm value to provide
> that represents "EdDSA with E25519" that is supported by BC.
>
>         Security.addProvider(new BouncyCastleProvider());
>         Signature signature = Signature.getInstance("EdDSAE25519", "BC");
>
> I'm not sure if this is relevant or not . . . but I did not find the
> E25519 ellliptic curve listed on the supported curve Wiki page
> - http://www.bouncycastle.org/wiki/pages/viewpage.action?pageId=362269 -
> but since the page hasn't been updated since 2015, I thought it might
> be out of date. But I'm also not sure if this page is documenting what
> types of key generation is supported by BC (which I don't need) or
> what types of keys can be used by BC (for digital signing, for example).
>
> Any additional information you folks can provide, or pointers to
> relevant BC documentation, test classes or examples, is much appreciated.
>
> Thanks,
> Sarah



[Attachment #3 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      Support for Edwards Curves is now in the latest beta. The best way
      to use them is by algorithm name as they follow the RFCs, e.g.
      Ed448, Ed25519.<br>
      <br>
      See <a class="moz-txt-link-freetext" \
href="https://www.bouncycastle.org/betas">https://www.bouncycastle.org/betas</a> for \
details.<br>  <br>
      Regards,<br>
      <br>
      David<br>
      <br>
      On 11/09/18 05:04, Sarah Hand wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALZ8mPcn227xy3g6gNfmJajdJ6a_-knvprzvFhraK06kqTdPWQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr"><span style="color:rgb(33,33,33);font-size:9.75px">Hi
          Bouncy Castle Devs,</span>
        <div style="color:rgb(33,33,33);font-size:9.75px"><br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">I'm a relative
          novice to Java security, but am being asked <b>to sign some
            data using EdDSA with E25519 elliptic curve</b>.  I'm trying
          to determine if Bouncy Castle supports this or not. I have
          public/private keys already created for that curve and need to
          use these keys to do the signing, but I can't figure out how
          to initialize/setup the classes to work.</div>
        <div style="color:rgb(33,33,33);font-size:9.75px"><br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">For example,
          I've tried the following code (thinking this is the right way
          to proceed) but cannot determine what algorithm value to
          provide that represents "EdDSA with E25519" that is supported
          by BC.</div>
        <div style="color:rgb(33,33,33);font-size:9.75px"><br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">
          <div>        Security.addProvider(new BouncyCastleProvider());</div>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">
          <div>        Signature signature =
            Signature.getInstance("EdDSAE25519", "BC");</div>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px"><br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">I'm not sure
          if this is relevant or not . . . but I did not find the E25519
          ellliptic curve listed on the supported curve Wiki page - <a
href="http://www.bouncycastle.org/wiki/pages/viewpage.action?pageId=362269"
            target="_blank" \
moz-do-not-send="true">http://www.bouncycastle.org/wiki/pages/viewpage.action?pageId=362269</a> \
-  but since the page hasn't been updated since 2015, I thought
          it might be out of date. But I'm also not sure if this page is
          documenting what types of key generation is supported by BC
          (which I don't need) or what types of keys can be used by BC
          (for digital signing, for example).<br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px"><br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">Any additional
          information you folks can provide, or pointers to relevant BC
          documentation, test classes or examples, is much appreciated.</div>
        <div style="color:rgb(33,33,33);font-size:9.75px"><br>
        </div>
        <div style="color:rgb(33,33,33);font-size:9.75px">Thanks,</div>
        <div style="color:rgb(33,33,33);font-size:9.75px">Sarah</div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic