GF2nONBElement.<init>
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.bouncycastle.pqc.math.linearalgebra.GF2nONBElement.<init> (Showing top 20 results out of 315)

origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Create a new GF2nONBElement by cloning this GF2nPolynomialElement.
 *
 * @return a copy of this element
 */
public Object clone()
{
  return new GF2nONBElement(this);
}
origin: redfish64/TinyTravelTracker

/**
 * Create a new GF2nONBElement by cloning this GF2nPolynomialElement.
 *
 * @return a copy of this element
 */
public Object clone()
{
  return new GF2nONBElement(this);
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * returns <tt>this</tt> element to the power of 2.
 *
 * @return <tt>this</tt><sup>2</sup>
 */
public GF2nElement square()
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.squareThis();
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * returns <tt>this</tt> element + 1.
 *
 * @return <tt>this</tt> + 1
 */
public GF2nElement increase()
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.increaseThis();
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * returns <tt>this</tt> element to the power of 2.
 *
 * @return <tt>this</tt><sup>2</sup>
 */
public GF2nElement square()
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.squareThis();
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * Create the zero element.
 *
 * @param gf2n the finite field
 * @return the zero element in the given finite field
 */
public static GF2nONBElement ZERO(GF2nONBField gf2n)
{
  long[] polynomial = new long[gf2n.getONBLength()];
  return new GF2nONBElement(gf2n, polynomial);
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * returns <tt>this</tt> element + 1.
 *
 * @return <tt>this</tt> + 1
 */
public GF2nElement increase()
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.increaseThis();
  return result;
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Create the zero element.
 *
 * @param gf2n the finite field
 * @return the zero element in the given finite field
 */
public static GF2nONBElement ZERO(GF2nONBField gf2n)
{
  long[] polynomial = new long[gf2n.getONBLength()];
  return new GF2nONBElement(gf2n, polynomial);
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * returns the root of<tt>this</tt> element.
 *
 * @return <tt>this</tt><sup>1/2</sup>
 */
public GF2nElement squareRoot()
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.squareRootThis();
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * returns the root of<tt>this</tt> element.
 *
 * @return <tt>this</tt><sup>1/2</sup>
 */
public GF2nElement squareRoot()
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.squareRootThis();
  return result;
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Compute the product of this element and <tt>factor</tt>.
 *
 * @param factor the factor
 * @return <tt>this * factor</tt> (newly created)
 */
public GFElement multiply(GFElement factor)
  throws RuntimeException
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.multiplyThisBy(factor);
  return result;
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Compute the sum of this element and <tt>addend</tt>.
 *
 * @param addend the addend
 * @return <tt>this + other</tt> (newly created)
 */
public GFElement add(GFElement addend)
  throws RuntimeException
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.addToThis(addend);
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * Compute the multiplicative inverse of this element.
 *
 * @return <tt>this<sup>-1</sup></tt> (newly created)
 * @throws ArithmeticException if <tt>this</tt> is the zero element.
 */
public GFElement invert()
  throws ArithmeticException
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.invertThis();
  return result;
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Compute the multiplicative inverse of this element.
 *
 * @return <tt>this<sup>-1</sup></tt> (newly created)
 * @throws ArithmeticException if <tt>this</tt> is the zero element.
 */
public GFElement invert()
  throws ArithmeticException
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.invertThis();
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * Compute the product of this element and <tt>factor</tt>.
 *
 * @param factor the factor
 * @return <tt>this * factor</tt> (newly created)
 * @throws DifferentFieldsException if the elements are of different fields.
 */
public GFElement multiply(GFElement factor)
  throws RuntimeException
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.multiplyThisBy(factor);
  return result;
}
origin: redfish64/TinyTravelTracker

/**
 * Compute the sum of this element and <tt>addend</tt>.
 *
 * @param addend the addend
 * @return <tt>this + other</tt> (newly created)
 * @throws DifferentFieldsException if the elements are of different fields.
 */
public GFElement add(GFElement addend)
  throws RuntimeException
{
  GF2nONBElement result = new GF2nONBElement(this);
  result.addToThis(addend);
  return result;
}
origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Create the one element.
 *
 * @param gf2n the finite field
 * @return the one element in the given finite field
 */
public static GF2nONBElement ONE(GF2nONBField gf2n)
{
  int mLength = gf2n.getONBLength();
  long[] polynomial = new long[mLength];
  // fill mDegree coefficients with one's
  for (int i = 0; i < mLength - 1; i++)
  {
    polynomial[i] = 0xffffffffffffffffL;
  }
  polynomial[mLength - 1] = mMaxmask[gf2n.getONBBit() - 1];
  return new GF2nONBElement(gf2n, polynomial);
}
origin: redfish64/TinyTravelTracker

/**
 * Create the one element.
 *
 * @param gf2n the finite field
 * @return the one element in the given finite field
 */
public static GF2nONBElement ONE(GF2nONBField gf2n)
{
  int mLength = gf2n.getONBLength();
  long[] polynomial = new long[mLength];
  // fill mDegree coefficients with one's
  for (int i = 0; i < mLength - 1; i++)
  {
    polynomial[i] = 0xffffffffffffffffL;
  }
  polynomial[mLength - 1] = mMaxmask[gf2n.getONBBit() - 1];
  return new GF2nONBElement(gf2n, polynomial);
}
origin: org.bouncycastle/bcprov-debug-jdk15on

GF2nElement n = new GF2nONBElement(this);
origin: redfish64/TinyTravelTracker

GF2nElement n = new GF2nONBElement(this);
org.bouncycastle.pqc.math.linearalgebraGF2nONBElement<init>

Javadoc

Copy constructor.

Popular methods of GF2nONBElement

  • ONE
    Create the one element.
  • ZERO
    Create the zero element.
  • addToThis
    Compute this + addend (overwrite this).
  • assign
    assigns to this element the value val.
  • equals
    Compare this element with another object.
  • getElement
  • getElementReverseOrder
    Returns the ONB representation of this element. The Bit-Order is exchanged (according to 1363)!
  • increaseThis
    increases this element.
  • invertThis
    Multiplicatively invert of this element (overwrite this).
  • isZero
    Checks whether this element is zero.
  • multiplyThisBy
    Compute this * factor (overwrite this).
  • reverseOrder
    Reverses the bit-order in this element(according to 1363). This is a hack!
  • multiplyThisBy,
  • reverseOrder,
  • squareRootThis,
  • squareThis,
  • testBit,
  • toByteArray,
  • toString,
  • trace

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)