{
CertificateFactory certFact = CertificateFactory.getInstance("X.509", "BC");
X509Certificate x509 = (X509Certificate)certFact.generateCertificate(new ByteArrayInputStream(gostRFC4491_94));
x509.verify(x509.getPublicKey(), "BC");
x509 = (X509Certificate)certFact.generateCertificate(new ByteArrayInputStream(gostRFC4491_2001));
x509.verify(x509.getPublicKey(), "BC");
}