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

List:       bouncycastle-crypto-dev
Subject:    Re: [dev-crypto] SubjectKeyIdentifier construction in BC1.6
From:       David Hook <dgh () cryptoworkshop ! com>
Date:       2019-02-18 23:46:28
Message-ID: de701dae-d48d-21ca-5995-8614a34cfc99 () cryptoworkshop ! com
[Download RAW message or body]

You need to use the same approach as
X509ExtensionUtils.calculateIdentifier() in the bcpkix package.

Regards,

David

On 19/2/19 3:47 am, Usha Nayak wrote:
> Hello
>
> We are planning to move to BouncyCastle 1.6 version
> (bcprov-jdk15on-161.jar). At the moment, we are  not planning to use
> bkpkix-jdk15on-161.jar.
>
> In our codebase, we were constructing SKI in the following way :
> new SubjectKeyIdentifier( SubjectPublicKeyInfo )  -- 
>
> Since, this constructor  longer exists in 1.6, We were thinking of
> constructing SubjectKeyIdentifier with the byte[] :
> new  SubjectKeyIdentifier( SubjectPublicKeyInfo.getEncoded() )  
>
> We are unsure though if this is the right way to generate SKI?
>
> Please do clarify this issue ?
>
> Thanks..



[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"><br>
    </div>
    <div class="moz-cite-prefix">You need to use the same approach as
      X509ExtensionUtils.calculateIdentifier() in the bcpkix package.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Regards,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">David</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 19/2/19 3:47 am, Usha Nayak wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABrHGU_ogq+rQ5rCtzAQdkrTkZbA+gTy+xGUXkMJpArJ=Q6yLg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hello
        <div><br>
        </div>
        <div>We are planning to move to BouncyCastle 1.6 version
          (bcprov-jdk15on-161.jar). At the moment, we are  not planning
          to use bkpkix-jdk15on-161.jar.</div>
        <div><br>
        </div>
        <div>In our codebase, we were constructing SKI in the following
          way :</div>
        <div>new SubjectKeyIdentifier( SubjectPublicKeyInfo )  -- </div>
        <div><br>
        </div>
        <div>Since, this constructor  longer exists in 1.6, We were
          thinking of constructing SubjectKeyIdentifier with the byte[]
          :</div>
        <div>new  <span
            style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif">SubjectKeyIdentifier(</span><span
  class="gmail-m_6194060182483534704gmail-hi2"
            style="font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"> <span
              style="font-family:Arial,Helvetica,sans-serif">SubjectPublicKeyInfo</span>.getEncoded()
  )</span>  <br>
        </div>
        <div><br>
        </div>
        <div>We are unsure though if this is the right way to generate
          SKI?</div>
        <div><br>
        </div>
        <div>Please do clarify this issue ?</div>
        <div><br>
        </div>
        <div>Thanks..</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