Top Inners Fields Constructors Methods
sun.security.ec

public Class ECOperations

extends Object
Class Inheritance
Imports
sun.security.ec.point.*, sun.security.util.CurveDB, .KnownOIDs, .ArrayUtil, sun.security.util.math.*, sun.security.util.math.intpoly.*, java.math.BigInteger, java.security.ProviderException, java.security.spec.ECFieldFp, .ECParameterSpec, .ECPoint, .EllipticCurve, java.util.Map, .Optional

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static interface

Field Summary

Modifier and TypeField and Description
pack-priv final ImmutableIntegerModuloP
b

pack-priv static final Map<BigInteger, IntegerFieldModuloP>
pack-priv final SmallValue
pack-priv final ProjectivePoint.Immutable
pack-priv final SmallValue
private final IntegerFieldModuloP
pack-priv static final Map<BigInteger, IntegerFieldModuloP>
private static final ECOperations
pack-priv final SmallValue
pack-priv final SmallValue

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
allZero(byte[] arr)

public boolean
public static Optional<ECOperations>
public IntegerFieldModuloP
protected ProjectivePoint.Immutable
public IntegerFieldModuloP
public boolean
public MutablePoint

Returns:

the product
multiply
(AffinePoint
the point
affineP
,
byte[]
the scalar as a little-endian array
s
)

Multiply an affine point by a scalar and return the result as a mutable point.

public MutablePoint
multiply(ECPoint ecPoint, byte[] s)

pack-priv byte[]
seedToScalar(byte[] seedBytes)

private void
public void
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bback to summary
pack-priv final ImmutableIntegerModuloP b
fieldsback to summary
pack-priv static final Map<BigInteger, IntegerFieldModuloP> fields
fourback to summary
pack-priv final SmallValue four
neutralback to summary
pack-priv final ProjectivePoint.Immutable neutral
oneback to summary
pack-priv final SmallValue one
orderFieldback to summary
private final IntegerFieldModuloP orderField
orderFieldsback to summary
pack-priv static final Map<BigInteger, IntegerFieldModuloP> orderFields
secp256r1Opsback to summary
private static final ECOperations secp256r1Ops
threeback to summary
pack-priv final SmallValue three
twoback to summary
pack-priv final SmallValue two

Constructor Detail

ECOperationsback to summary
public ECOperations(IntegerModuloP b, IntegerFieldModuloP orderField)

Method Detail

allZeroback to summary
public static boolean allZero(byte[] arr)
checkOrderback to summary
public boolean checkOrder(ECPoint point)
forParametersback to summary
public static Optional<ECOperations> forParameters(ECParameterSpec params)
getFieldback to summary
public IntegerFieldModuloP getField()
getNeutralback to summary
protected ProjectivePoint.Immutable getNeutral()
getOrderFieldback to summary
public IntegerFieldModuloP getOrderField()
isNeutralback to summary
public boolean isNeutral(Point p)
multiplyback to summary
public MutablePoint multiply(AffinePoint affineP, byte[] s)

Multiply an affine point by a scalar and return the result as a mutable point.

Parameters
affineP:AffinePoint

the point

s:byte[]

the scalar as a little-endian array

Returns:MutablePoint

the product

multiplyback to summary
public MutablePoint multiply(ECPoint ecPoint, byte[] s)
seedToScalarback to summary
pack-priv byte[] seedToScalar(byte[] seedBytes) throws IntermediateValueException
setDoubleback to summary
private void setDouble(ProjectivePoint.Mutable p, MutableIntegerModuloP t0, MutableIntegerModuloP t1, MutableIntegerModuloP t2, MutableIntegerModuloP t3, MutableIntegerModuloP t4)
setSumback to summary
public void setSum(MutablePoint p, AffinePoint p2)
setSumback to summary
private void setSum(ProjectivePoint.Mutable p, AffinePoint p2, MutableIntegerModuloP t0, MutableIntegerModuloP t1, MutableIntegerModuloP t2, MutableIntegerModuloP t3, MutableIntegerModuloP t4)
setSumback to summary
private void setSum(ProjectivePoint.Mutable p, ProjectivePoint.Mutable p2, MutableIntegerModuloP t0, MutableIntegerModuloP t1, MutableIntegerModuloP t2, MutableIntegerModuloP t3, MutableIntegerModuloP t4)
sun.security.ec back to summary

pack-priv Class ECOperations.IntermediateValueException

extends Exception
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

IntermediateValueExceptionback to summary
pack-priv IntermediateValueException()
sun.security.ec back to summary

pack-priv sealed Interface ECOperations.PointMultiplier

Known Direct Implementers
sun.security.ec.ECOperations.PointMultiplier.Default, sun.security.ec.ECOperations.PointMultiplier.Secp256R1GeneratorMultiplier

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
public static final Map<ECPoint, ECOperations.PointMultiplier>

Method Summary

Modifier and TypeMethod and Description
private static void
public static ECOperations.PointMultiplier
of(ECOperations ecOps, AffinePoint affPoint)

public static ECOperations.PointMultiplier
of(ECOperations ecOps, ECPoint ecPoint)

public ProjectivePoint.Mutable
pointMultiply(byte[] scalar)

Field Detail

multipliersback to summary
public static final Map<ECPoint, ECOperations.PointMultiplier> multipliers

Method Detail

lookupback to summary
private static void lookup(ProjectivePoint.Immutable[] ips, int index, ProjectivePoint.Mutable result)
ofback to summary
public static ECOperations.PointMultiplier of(ECOperations ecOps, AffinePoint affPoint)
ofback to summary
public static ECOperations.PointMultiplier of(ECOperations ecOps, ECPoint ecPoint)
pointMultiplyback to summary
public ProjectivePoint.Mutable pointMultiply(byte[] scalar)
sun.security.ec back to summary

public final Class ECOperations.PointMultiplier.Default

extends Object
implements PointMultiplier
Class Inheritance
All Implemented Interfaces
sun.security.ec.ECOperations.PointMultiplier

Field Summary

Modifier and TypeField and Description
private final AffinePoint
private final ECOperations

Constructor Summary

AccessConstructor and Description
private

Field Detail

affinePback to summary
private final AffinePoint affineP
ecOpsback to summary
private final ECOperations ecOps

Constructor Detail

Defaultback to summary
private Default(ECOperations ecOps, AffinePoint affineP)
sun.security.ec back to summary

public final Class ECOperations.PointMultiplier.Secp256R1GeneratorMultiplier

extends Object
implements PointMultiplier
Class Inheritance
  • java.lang.Object
  • sun.security.ec.ECOperations.PointMultiplier.Secp256R1GeneratorMultiplier
All Implemented Interfaces
sun.security.ec.ECOperations.PointMultiplier

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final ECPoint
private static final ECOperations.PointMultiplier
private static final ImmutableIntegerModuloP
private static final ImmutableIntegerModuloP

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
bit(byte[] k, int i)

public ProjectivePoint.Mutable
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

generatorback to summary
private static final ECPoint generator
multiplierback to summary
private static final ECOperations.PointMultiplier multiplier
oneback to summary
private static final ImmutableIntegerModuloP one
zeroback to summary
private static final ImmutableIntegerModuloP zero

Constructor Detail

Secp256R1GeneratorMultiplierback to summary
public Secp256R1GeneratorMultiplier()

Method Detail

bitback to summary
private static int bit(byte[] k, int i)
pointMultiplyback to summary
public ProjectivePoint.Mutable pointMultiply(byte[] s)

Implements sun.security.ec.ECOperations.PointMultiplier.pointMultiply.

Annotations
@Override
sun.security.ec back to summary

private final Class ECOperations.PointMultiplier.Secp256R1GeneratorMultiplier.P256

extends Object
Class Inheritance
  • java.lang.Object
  • sun.security.ec.ECOperations.PointMultiplier.Secp256R1GeneratorMultiplier.P256

Field Summary

Modifier and TypeField and Description
private static final ProjectivePoint.Immutable[][]

Constructor Summary

AccessConstructor and Description
private
P256()

Method Summary

Modifier and TypeMethod and Description
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pointsback to summary
private static final ProjectivePoint.Immutable[][] points

Constructor Detail

P256back to summary
private P256()

Method Detail

verifyTablesback to summary
private static void verifyTables(BigInteger[] base)