| RSA BSAFE CRYPTO-J |
Cryptographic Components for Java |
| JSAFE Javadoc | JCE Javadoc | Search |
Currently, Crypto-J supports the DSA and Diffie-Hellman algorithms.
See Overview of Crypto-J for background and reference material on using and understanding Crypto-J.
Note: Not all Crypto-J transformations have OIDs assigned to them. See Crypto-J Transformations and Their Associated Classes for a list of transformations that have assigned OIDs.
Copyright © RSA Security Inc., 1997-2005. All rights reserved.
Inheritance diagram for JSAFE_Parameters:

Public Methods | |
| byte [] JSAFE_Parameters:: | getDERAlgorithmID () throws JSAFE_UnimplementedException |
Returns a new byte array containing the DER encoding of the algorithm ID of the algorithm in this object. More... | |
| abstract byte [] JSAFE_Parameters:: | getDERAlgorithmID (String format) throws JSAFE_UnimplementedException; |
Returns a new byte array containing the DER encoding of the algorithm ID of the algorithm in this object. More... | |
| String JSAFE_Parameters:: | getDevice () |
| Returns the name of the device of record. More... | |
| String [] JSAFE_Parameters:: | getDeviceList () |
Returns a String array that describes all the devices used to execute the transformation. More... | |
| abstract String JSAFE_Parameters:: | getAlgorithm () |
| Returns the standard algorithm name. More... | |
| abstract String [] JSAFE_Parameters:: | getSupportedSetFormats () |
Returns a String array that lists the supported formats for setParameterData(). More... | |
| abstract String [] JSAFE_Parameters:: | getSupportedGetFormats () |
Returns a String array that lists the supported formats for getParameterData(). More... | |
| abstract void JSAFE_Parameters:: | setParameterData (String format, byte[][] parameterData) throws JSAFE_InputException, JSAFE_UnimplementedException; |
Sets an object with the parameterData in the format shown below for Diffie-Hellman and DSA algorithms. More... | |
| abstract void JSAFE_Parameters:: | setParameterData (byte[][] parameterData) throws JSAFE_InputException; |
Sets an object with the parameterData in the default format shown in the following table. More... | |
| abstract byte [][] JSAFE_Parameters:: | getParameterData (String format) throws JSAFE_UnimplementedException; |
Returns an array of byte arrays that contain the Parameterdata in the given format shown in the following table. More... | |
| abstract byte [][] JSAFE_Parameters:: | getParameterData () |
Returns an array of byte arrays that contains the parameterData in the default format shown in the following table. More... | |
| byte [][] JSAFE_Parameters:: | getDSADomainParameterGenerationData (int[] counter) throws JSAFE_InvalidUseException |
Returns an array of byte arrays that contains the parameterData in the format shown in the following following table plus the counter value via the method argument. More... | |
| abstract void JSAFE_Parameters:: | generateInit (int[] paramGenParams, SecureRandom random) throws JSAFE_InvalidParameterException; |
Initializes this object to generate system parameters based on the given paramGenParams and using the given random. More... | |
| abstract void JSAFE_Parameters:: | generateInit (int[] paramGenParams, SecureRandom random, JSAFE_Session[] sessions) throws JSAFE_InvalidParameterException; |
Initializes this object to generate system parameters based on the given paramGenParams and using the given random. More... | |
| void JSAFE_Parameters:: | generateFIPSInit (int[] paramGenParams, SecureRandom random) throws JSAFE_InvalidParameterException, JSAFE_InvalidUseException |
Initializes this object to generate system parameters based on the given paramGenParams and using the given random. More... | |
| abstract void JSAFE_Parameters:: | generateReInit () throws JSAFE_InvalidUseException; |
Re-initializes this object to generate system parameters, using the generating parameters and the random object passed in during a previous call to generateInit(). More... | |
| abstract void JSAFE_Parameters:: | generate () throws JSAFE_InvalidUseException; |
| Generates the system parameters to be held by this object. More... | |
| abstract Object JSAFE_Parameters:: | clone () throws CloneNotSupportedException; |
| Overrides the default clone to produce a deep clone. More... | |
| void JSAFE_Parameters:: | clearSensitiveData () |
| This method clears sensitive data from an object. More... | |
Static Public Methods | |
| JSAFE_Parameters JSAFE_Parameters:: | getInstance (byte[] berAlgID, int offset, String device) throws JSAFE_UnimplementedException, JSAFE_InvalidParameterException |
Builds an object that contains the parameters defined in berAlgID, beginning at offset. More... | |
| int JSAFE_Parameters:: | getNextBEROffset (byte[] berAlgID, int offset) throws JSAFE_UnimplementedException |
Computes the offset into berAlgID for the byte immediately following the algorithm ID, which begins at offset. More... | |
| JSAFE_Parameters JSAFE_Parameters:: | getInstance (String transformation, String device) throws JSAFE_UnimplementedException, JSAFE_InvalidParameterException |
Builds an object that performs the transformation on the given device. More... | |
|
|
This method clears sensitive data from an object. Although the finalizer clears the data, there is no guarantee the garbage collector will quickly call the finalizer. Allows a user to clear data as soon as possible. After calling Reimplemented from JSAFE_Object. |
|
|
Overrides the default clone to produce a deep clone.
Reimplemented from JSAFE_Object. |
|
|
Generates the system parameters to be held by this object.
|
|
||||||||||||
|
Initializes this object to generate system parameters based on the given
This method is provided for backward compatibility and is not necesary. Since Crypto-J 3.5 the preferred method is to call
|
|
||||||||||||||||
|
Initializes this object to generate system parameters based on the given
|
|
||||||||||||
|
Initializes this object to generate system parameters based on the given
|
|
|
Re-initializes this object to generate system parameters, using the generating parameters and the random object passed in during a previous call to
|
|
|
Returns the standard algorithm name.
|
|
|
Returns a new
The possible values for
Note: For Diffie_Hellman parameters, either pass in
|
|
|
Returns a new
|
|
|
Returns the name of the device of record. Possible device values are:
|
|
|
Returns a
|
|
|
Returns an array of This method supports the DSAVS Domain Parameter Generation test. It enables the test to retrive the DSA parameters P, Q, G, H, seed, and counter.
|
|
||||||||||||
|
Builds an object that performs the The value of algorithm is as follows:
The
Note: Do not attempt to use hardware versions of Crypto-J classes unless you are
very familiar with the hardware. Refer to the "Cryptographic Hardware" section
in the Crypto-J Developer’s Guide , which describes hardware usage,
its benefits, and its problems.
For example:
JSAFE_Parameters dhParams = JSAFE_Parameters.getInstance
("DH", "Acme/Native/Java");
|
|
||||||||||||||||
|
Builds an object that contains the parameters defined in
The value encoded in
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
parameters ANY DEFINED BY algorithm OPTIONAL }
The Diffie-Hellman algorithm identifier follows the definition below:
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER, -- { pkcs-3 1 }
SEQUENCE {
prime INTEGER, -- p
base INTEGER, -- g
privateValueLength INTEGER OPTIONAL } }
The DSA algorithm identifier must use one of the following ASN.1 definitions:
DSA AlgorithmIdentifier According to X9.30
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
SEQUENCE {
modulusLength INTEGER,
prime INTEGER,
subPrime INTEGER,
base INTEGER } }
DSA AlgorithmIdentifier According to X9.57
AlgorithmIdentifier ::= SEQUENCE {
algorithm OBJECT IDENTIFIER,
SEQUENCE {
prime INTEGER,
subPrime INTEGER,
base INTEGER } }
|
|
||||||||||||
|
Computes the offset into
|
|
|
Returns an array of
|
|
|
Returns an array of
Note: If the
|
|
|
Returns a
|
|
|
Returns a
|
|
|
Sets an object with the
Note: If the
|
|
||||||||||||
|
Sets an object with the
Note: If the
|