Search in sources :

Example 6 with Oid

use of io.churchkey.asn1.Oid in project churchkey by tomitribe.

the class EcCurveParams method parseOid.

public static Oid parseOid(final byte[] data) throws IOException {
    final DerParser d1 = new DerParser(data);
    final Asn1Object d1o1 = d1.readObject().assertType(Asn1Type.OBJECT_IDENTIFIER);
    return d1o1.asOID();
}
Also used : DerParser(io.churchkey.asn1.DerParser) Asn1Object(io.churchkey.asn1.Asn1Object)

Aggregations

Asn1Object (io.churchkey.asn1.Asn1Object)5 DerParser (io.churchkey.asn1.DerParser)5 Oid (io.churchkey.asn1.Oid)4 Curve (io.churchkey.ec.Curve)3 ECPoint (java.security.spec.ECPoint)3 Key (io.churchkey.Key)2 BigInteger (java.math.BigInteger)2 ECPrivateKey (java.security.interfaces.ECPrivateKey)2 ECPublicKey (java.security.interfaces.ECPublicKey)2 ECParameterSpec (java.security.spec.ECParameterSpec)2 Skip (io.churchkey.Skip)1 UnsupportedCurveException (io.churchkey.ec.UnsupportedCurveException)1 IOException (java.io.IOException)1 UncheckedIOException (java.io.UncheckedIOException)1 DSAPrivateKey (java.security.interfaces.DSAPrivateKey)1 DSAPublicKey (java.security.interfaces.DSAPublicKey)1 RSAPrivateCrtKey (java.security.interfaces.RSAPrivateCrtKey)1 RSAPublicKey (java.security.interfaces.RSAPublicKey)1 ECField (java.security.spec.ECField)1 ECFieldF2m (java.security.spec.ECFieldF2m)1