DSTU4145PointEncoder.encodePoint
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.bouncycastle.asn1.ua.DSTU4145PointEncoder.encodePoint(Showing top 5 results out of 315)

origin: org.bouncycastle/bcprov-debug-jdk15on

public DSTU4145PublicKey(ECPoint pubKey)
{
  // We always use big-endian in parameter encoding
  this.pubKey = new DEROctetString(DSTU4145PointEncoder.encodePoint(pubKey));
}
origin: org.bouncycastle/bcprov-debug-jdk15on

public DSTU4145ECBinary(ECDomainParameters params)
{
  ECCurve curve = params.getCurve();
  if (!ECAlgorithms.isF2mCurve(curve))
  {
    throw new IllegalArgumentException("only binary domain is possible");
  }
  // We always use big-endian in parameter encoding
  PolynomialExtensionField field = (PolynomialExtensionField)curve.getField();
  int[] exponents = field.getMinimalPolynomial().getExponentsPresent();
  if (exponents.length == 3)
  {
    f = new DSTU4145BinaryField(exponents[2], exponents[1]);
  }
  else if (exponents.length == 5)
  {
    f = new DSTU4145BinaryField(exponents[4], exponents[1], exponents[2], exponents[3]);
  }
  else
  {
    throw new IllegalArgumentException("curve must have a trinomial or pentanomial basis");
  }
  a = new ASN1Integer(curve.getA().toBigInteger());
  b = new DEROctetString(curve.getB().getEncoded());
  n = new ASN1Integer(params.getN());
  bp = new DEROctetString(DSTU4145PointEncoder.encodePoint(params.getG()));
}
origin: org.bouncycastle/bcprov-debug-jdk15on

byte[] encKey = DSTU4145PointEncoder.encodePoint(ecPublicKey.getQ());
origin: org.bouncycastle/bcprov-debug-jdk15on

public DSTU4145PublicKey(ECPoint pubKey)
{
  // We always use big-endian in parameter encoding
  this.pubKey = new DEROctetString(DSTU4145PointEncoder.encodePoint(pubKey));
}
origin: org.bouncycastle/bcprov-debug-jdk15on

public DSTU4145ECBinary(ECDomainParameters params)
{
  ECCurve curve = params.getCurve();
  if (!ECAlgorithms.isF2mCurve(curve))
  {
    throw new IllegalArgumentException("only binary domain is possible");
  }
  // We always use big-endian in parameter encoding
  PolynomialExtensionField field = (PolynomialExtensionField)curve.getField();
  int[] exponents = field.getMinimalPolynomial().getExponentsPresent();
  if (exponents.length == 3)
  {
    f = new DSTU4145BinaryField(exponents[2], exponents[1]);
  }
  else if (exponents.length == 5)
  {
    f = new DSTU4145BinaryField(exponents[4], exponents[1], exponents[2], exponents[3]);
  }
  else
  {
    throw new IllegalArgumentException("curve must have a trinomial or pentanomial basis");
  }
  a = new ASN1Integer(curve.getA().toBigInteger());
  b = new DEROctetString(curve.getB().getEncoded());
  n = new ASN1Integer(params.getN());
  bp = new DEROctetString(DSTU4145PointEncoder.encodePoint(params.getG()));
}
org.bouncycastle.asn1.uaDSTU4145PointEncoderencodePoint

Popular methods of DSTU4145PointEncoder

  • solveQuadraticEquation
    Solves a quadratic equation z2 + z = beta(X9.62 D.1.6) The other solution is z + 1.
  • trace
  • decodePoint

Popular classes and methods

  • compareTo (BigDecimal)
    Compares this BigDecimal with val. Returns one of the three values 1, 0, or -1. The method behaves a
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Thread (java.lang)
    A Thread is a concurrent unit of execution. It has its own call stack for methods being invoked, the
  • Connection (java.sql)
    A connection (session) with a specific database. SQL statements are executed and results are returne
  • JPanel (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)