Top Description Fields Constructors Methods
org.bouncycastle.crypto.general

public Class GeneralAlgorithm

extends Object
implements Algorithm
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.Algorithm, java.io.Serializable
Known Direct Subclasses
org.bouncycastle.crypto.general.GeneralDigestAlgorithm
Imports
java.security.SecureRandom, org.bouncycastle.crypto.Algorithm

Base class for the marker/algorithm ids for non-FIPS algorithms.

Field Summary

Modifier and TypeField and Description
private final Enum<E extends Enum<E>>
private final Enum<E extends Enum<E>>
private final String

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
GeneralAlgorithm(String name, Enum<E extends Enum<E>> basicVariation)

pack-priv
GeneralAlgorithm(GeneralAlgorithm baseAlgorithm, Enum<E extends Enum<E>> basicVariation)

pack-priv
GeneralAlgorithm(GeneralAlgorithm baseAlgorithm, Enum<E extends Enum<E>> basicVariation, Padding additionalVariation)

pack-priv
GeneralAlgorithm(String name, Enum<E extends Enum<E>> basicVariation, Padding additionalVariation)

Method Summary

Modifier and TypeMethod and Description
pack-priv Enum<E extends Enum<E>>
pack-priv Enum<E extends Enum<E>>
pack-priv byte[]
checkIv(byte[] iv, int blockSize)

pack-priv byte[]
pack-priv byte[]
createIvIfNecessary(int ivLen, SecureRandom random)

public boolean
equals(Object
the object to be checked for equality.
o
)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Algorithm.equals.

Object equals method.
public String
getName()

Implements org.bouncycastle.crypto.Algorithm.getName.

Return a string representation of the algorithm.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Algorithm.hashCode.

Object hashCode method.
private boolean
public final boolean
requiresAlgorithmParameters()

Implements org.bouncycastle.crypto.Algorithm.requiresAlgorithmParameters.

Returns true if this algorithm requires additional parameter fields, false otherwise.
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

additionalVariationback to summary
private final Enum<E extends Enum<E>> additionalVariation
basicVariationback to summary
private final Enum<E extends Enum<E>> basicVariation
nameback to summary
private final String name

Constructor Detail

GeneralAlgorithmback to summary
pack-priv GeneralAlgorithm(String name)
GeneralAlgorithmback to summary
pack-priv GeneralAlgorithm(String name, Enum<E extends Enum<E>> basicVariation)
GeneralAlgorithmback to summary
pack-priv GeneralAlgorithm(GeneralAlgorithm baseAlgorithm, Enum<E extends Enum<E>> basicVariation)
GeneralAlgorithmback to summary
pack-priv GeneralAlgorithm(GeneralAlgorithm baseAlgorithm, Enum<E extends Enum<E>> basicVariation, Padding additionalVariation)
GeneralAlgorithmback to summary
pack-priv GeneralAlgorithm(String name, Enum<E extends Enum<E>> basicVariation, Padding additionalVariation)

Method Detail

additionalVariationback to summary
pack-priv Enum<E extends Enum<E>> additionalVariation()
basicVariationback to summary
pack-priv Enum<E extends Enum<E>> basicVariation()
checkIvback to summary
pack-priv byte[] checkIv(byte[] iv, int blockSize)
createDefaultIvIfNecessaryback to summary
pack-priv byte[] createDefaultIvIfNecessary(int blockSize, SecureRandom random)
createIvIfNecessaryback to summary
pack-priv byte[] createIvIfNecessary(int ivLen, SecureRandom random)
equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Implements org.bouncycastle.crypto.Algorithm.equals.

Doc from org.bouncycastle.crypto.Algorithm.equals.

Object equals method.

Parameters
o:Object

the object to be checked for equality.

Returns:boolean

true if o is equal to this, false otherwise.

Annotations
@Override
getNameback to summary
public String getName()

Implements org.bouncycastle.crypto.Algorithm.getName.

Doc from org.bouncycastle.crypto.Algorithm.getName.

Return a string representation of the algorithm.

Returns:String

the algorithm name.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.bouncycastle.crypto.Algorithm.hashCode.

Doc from org.bouncycastle.crypto.Algorithm.hashCode.

Object hashCode method.

Returns:int

calculated hash code for this object.

Annotations
@Override
isEqualback to summary
private boolean isEqual(Object a, Object b)
requiresAlgorithmParametersback to summary
public final boolean requiresAlgorithmParameters()

Implements org.bouncycastle.crypto.Algorithm.requiresAlgorithmParameters.

Doc from org.bouncycastle.crypto.Algorithm.requiresAlgorithmParameters.

Returns true if this algorithm requires additional parameter fields, false otherwise.

Returns:boolean

true if algorithm requires parameters.