Search in sources :

Example 11 with DigestInfo

use of org.gudy.bouncycastle.asn1.x509.DigestInfo in project BiglyBT by BiglySoftware.

the class JDKDigestSignature method derDecode.

private DigestInfo derDecode(byte[] encoding) throws IOException {
    ByteArrayInputStream bIn = new ByteArrayInputStream(encoding);
    DERInputStream dIn = new DERInputStream(bIn);
    return new DigestInfo((ASN1Sequence) dIn.readObject());
}
Also used : ByteArrayInputStream(java.io.ByteArrayInputStream) DigestInfo(org.gudy.bouncycastle.asn1.x509.DigestInfo) DERInputStream(org.gudy.bouncycastle.asn1.DERInputStream)

Aggregations

IOException (java.io.IOException)8 ASN1EncodableVector (org.bouncycastle.asn1.ASN1EncodableVector)5 ASN1OctetString (org.bouncycastle.asn1.ASN1OctetString)5 AlgorithmIdentifier (org.bouncycastle.asn1.x509.AlgorithmIdentifier)5 DigestInfo (org.bouncycastle.asn1.x509.DigestInfo)5 KeyStoreException (java.security.KeyStoreException)4 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)4 PrivateKey (java.security.PrivateKey)4 UnrecoverableKeyException (java.security.UnrecoverableKeyException)4 Certificate (java.security.cert.Certificate)4 CertificateEncodingException (java.security.cert.CertificateEncodingException)4 CertificateException (java.security.cert.CertificateException)4 X509Certificate (java.security.cert.X509Certificate)4 Enumeration (java.util.Enumeration)4 Hashtable (java.util.Hashtable)4 DERBMPString (org.bouncycastle.asn1.DERBMPString)4 DEROctetString (org.bouncycastle.asn1.DEROctetString)4 AuthenticatedSafe (org.bouncycastle.asn1.pkcs.AuthenticatedSafe)4 CertBag (org.bouncycastle.asn1.pkcs.CertBag)4 ContentInfo (org.bouncycastle.asn1.pkcs.ContentInfo)4