Top Fields Constructors Methods
org.bouncycastle.crypto.asymmetric

pack-priv Class KeyUtils

extends Object
Class Inheritance
Imports
java.math.BigInteger, java.security.Permission, .SecureRandom, javax.security.auth.Destroyable, org.bouncycastle.asn1.ASN1Encodable, .ASN1Encoding, .ASN1Integer, .ASN1Object, .ASN1Sequence, .ASN1Set, .DERNull, org.bouncycastle.asn1.pkcs.PrivateKeyInfo, org.bouncycastle.asn1.x509.AlgorithmIdentifier, .SubjectPublicKeyInfo, org.bouncycastle.asn1.x9.X962Parameters, .X9ECParameters, org.bouncycastle.crypto.fips.FipsDRBG, org.bouncycastle.math.ec.ECAlgorithms, .ECCurve, .ECPoint, org.bouncycastle.math.internal.Primes, org.bouncycastle.util.Pack, .Strings

Field Summary

Modifier and TypeField and Description
private static final BigInteger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static X962Parameters
pack-priv static void
pack-priv static void
checkPermission(final Permission keyPermission)

pack-priv static byte[]
pack-priv static byte[]
pack-priv static byte[]
getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey, ASN1Set attributes, byte[] publicKey)

pack-priv static byte[]
pack-priv static int
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
isValidPrefix(byte[] prefix, byte[] encoding)

pack-priv static BigInteger
pack-priv static BigInteger
pack-priv static BigInteger
validated(BigInteger modulus, BigInteger publicExponent)

pack-priv static ECPoint
pack-priv static ECPoint
validated(ECCurve c, byte[] encodedPoint)

pack-priv static BigInteger
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

TWOback to summary
private static final BigInteger TWO

Constructor Detail

KeyUtilsback to summary
pack-priv KeyUtils()

Method Detail

buildCurveParametersback to summary
pack-priv static X962Parameters buildCurveParameters(ECDomainParameters curveParams)
checkDestroyedback to summary
pack-priv static void checkDestroyed(Destroyable destroyable)
checkPermissionback to summary
pack-priv static void checkPermission(final Permission keyPermission)
getEncodedInfoback to summary
pack-priv static byte[] getEncodedInfo(ASN1Object info)
getEncodedPrivateKeyInfoback to summary
pack-priv static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey)
getEncodedPrivateKeyInfoback to summary
pack-priv static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey, ASN1Set attributes, byte[] publicKey)
getEncodedSubjectPublicKeyInfoback to summary
pack-priv static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable pubKey)
getOrderBitLengthback to summary
pack-priv static int getOrderBitLength(ECDomainParameters curveParams)
isDHPKCSParamback to summary
pack-priv static boolean isDHPKCSParam(ASN1Encodable params)
isFieldEqualback to summary
pack-priv static boolean isFieldEqual(Object a, Object b)
isNotNullback to summary
pack-priv static boolean isNotNull(ASN1Encodable parameters)
isValidPrefixback to summary
pack-priv static boolean isValidPrefix(byte[] prefix, byte[] encoding)
validatedback to summary
pack-priv static BigInteger validated(DHDomainParameters dhParams, BigInteger y)
validatedback to summary
pack-priv static BigInteger validated(DSADomainParameters dsaParams, BigInteger y)
validatedback to summary
pack-priv static BigInteger validated(BigInteger modulus, BigInteger publicExponent)
validatedback to summary
pack-priv static ECPoint validated(ECCurve c, ECPoint q)
validatedback to summary
pack-priv static ECPoint validated(ECCurve c, byte[] encodedPoint)
validatedModulusback to summary
pack-priv static BigInteger validatedModulus(BigInteger modulus)