SubjectKeyIdentifier construction in BC1.6
Usha Nayak <[email protected]> Mon, 18 Feb 2019 10:47:35 -0600
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <CABrHGU_ogq+rQ5rCtzAQdkrTkZbA+gTy+xGUXkMJpArJ=Q6yLg@mail.gmail.com> |
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..