A subclass of Cipher to implement the CAST5 (a.k.a.
CAST5() - constructor for class cryptix.provider.cipher.
CAST5 Constructs a CAST5 cipher object, in the UNINITIALIZED state.
A variable-length key generator for CAST5.
CBC - class cryptix.provider.mode.
CBC Implements a block cipher in CBC mode.
cbc - field in class cryptix.tools.
MCT CBC() - constructor for class cryptix.provider.mode.
CBC Constructs a CBC cipher, assuming that the IV will be provided
via setInitializationVector
.
Constructs a CBC cipher, assuming that the IV will be provided
via setInitializationVector
.
Constructs a CBC cipher, using an initialization vector
provided in the constructor.
CFB - class cryptix.provider.mode.
CFB Implements a byte-oriented stream cipher using n-bit CFB with an
n-bit-sized block cipher.
CFB() - constructor for class cryptix.provider.mode.
CFB Constructs a CFB mode object.
Constructs a CFB cipher, assuming that the IV will be provided
via setInitializationVector
.
Constructs a CFB cipher, using an initialization vector
provided in the constructor.
Use of this feedback mode is deprecated, use it for compatibility only!
This class implements PGP's (i.e.
Constructs a CFB-PGP cipher, assuming that the IV will be provided
as the first getInitializationVectorLength()
bytes of the stream (it will be visible as cleartext at the start
of the output stream).
Constructs a CFB-PGP cipher, assuming that the IV will be provided
as the first getInitializationVectorLength()
bytes of the stream.
If reason is null, this method returns silently.
If reason is null, this method returns silently.
Checks that the native library is being used (i.e.
Checks that the native library is being used (i.e.
Checks that the native library is being used (i.e.
On VMs that support Netscape's PrivilegeManager extensions, this checks
that the privilege given by target has been enabled.
On VMs that support Netscape's PrivilegeManager extensions, this checks
that the privilege given by target, with parameter arg has
been enabled.
On VMs that support Netscape's PrivilegeManager extensions, this checks
that the security privilege with name targetname has been enabled.
Throws an InvalidParameterException if any of the parameters are obviously
incorrect.
A Java class to handle checksum exceptions.
If a SecurityManager is installed, this method checks that there is no class
loaded by a ClassLoader in the previous depth stack frames.
Sets the actual major and minor version numbers of the library.
Sets the actual major and minor version numbers of the library.
A reference to the cipher currently operating in this mode.
This class is used to provide the functionality of a general purpose
encryption algorithm, such as DES or RSA.
The JCE docs say: "Constructor used for dynamic instantiation."
I don't understand why this is needed.
Constructor for a Cipher.
This constructor is identical to the previous one (with arguments
boolean, boolean, String), except that it does not have the redundant
implPadding parameter, and also allows the algorithm name
to be specified.
A FilterInputStream that encrypts or decrypts the data passing through
it.
Constructs an input stream using a cipher that must be
initialised for either encryption or decryption, that is, a
cipher whose state is either ENCRYPT
or
DECRYPT
.
A FilterOutputStream that encrypts or decrypts the data passing
through it.
Constructs an output stream using a cipher that must be
initialized for either encryption or decryption, that is, a
cipher whose state is either ENCRYPT
or
DECRYPT
.
Gets the current classLoaderDepth (assuming there is a security manager
installed).
Clears a byte array to all-zeroes.
Clears length bytes of a byte array to zeroes, starting at
offset.
Set the bit at the designated position to 0; ie.
Repeatedly invoke the engineClock()
method until
the LFSR has been clocked ticks
times.
Return a reference to a duplicate of this
.
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Returns a clone of this cipher.
clone() - method in class cryptix.provider.cipher.
DES Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Returns a copy of this MD object.
Returns a copy of this HMAC object.
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Returns a clone of this key generator.
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Returns a copy of this MD object.
Returns a copy of this MD object.
Returns a copy of this MD object.
Returns a clone of this cipher.
clone() - method in class cryptix.provider.cipher.
RC2 Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
clone() - method in class cryptix.provider.cipher.
RC4 Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Return a copy of this MD object.
Return a copy of this MD object.
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Returns a copy of this MD object.
Returns a copy of this MD object.
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Always throws a CloneNotSupportedException (cloning of ciphers is not
supported for security reasons).
Return a reference to a duplicate of this
.
Closes the output stream.
Override close in Base64InputStream to allow detection of
scar footer line.
Used to run a test from the command line.
Used to run a test from the command line, skipping the first offset
arguments (which are assumed to have been processed by the subclass).
Compare this BigRegister
's contents to that of the
argument, returning -1, 0 or 1 for less than, equal to, or greater
than comparison result.
Compare this LFSR to the argument, returning -1, 0 or 1 for
less than, equal to, or greater than comparison.
Return the number of bits set (to 1) in this
.
Encrypts or decrypts the specified array of data, which will be
automatically padded/unpadded as necessary.
Encrypts or decrypts the specified array of data, which will be
automatically padded/unpadded as necessary.
Encrypts or decrypts the specified subarray of data, pads or unpads
it as necessary, and places the result in the specified output buffer.
Processes original and the salt value passed in the constructor
using the crypt(3) algorithm, and returns the resulting hash as a
String.
Implements the Unix crypt(3) algorithm.
This class acts as a security provider for the Java Cryptography
Architecture.
Constructs a Cryptix security provider object.
This class is for any unexpected exception in the crypto library.
This class defines the version number of the Cryptix library, and also
provides facilities needed to load and manage properties.
The interface to an RSA private key.
The interface to an RSA public key.
ecb - field in class cryptix.tools.
MCT Current values of switches as set from the command line arguments.
A class that calculates the ElGamal family of algorithms (encryption,
decryption, signing and verification).
The interface to an ElGamal public or private key.
An interface to an object capable of generating ElGamal key pairs.
Interface to an ElGamal-specific set of key parameters, which defines
an ElGamal key family.
The interface to an ElGamal private key.
The interface to an ElGamal public key.
Enables tracing of calls to SPI methods for the algorithm object
obj, with Output sent to the default location, given by
getDebugOutput()
.
Enables tracing of calls to SPI methods for the algorithm object
obj.
Enables tracing of calls to SPI methods for this object.
The state of the cipher when it is ready to encrypt, that is,
the state it is in right after a call to initEncrypt
.
The encryption algorithm for ElGamal.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of a block, in bytes.
SPI: Returns the length of a block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of a block, in bytes.
SPI: Returns the length of a block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of a block, in bytes.
SPI: Returns the length of an input block, in bytes.
SPI: Return the data block length of this cipher.
SPI: Returns the length of an input block, in bytes.
SPI: Returns the length of a ciphertext block, in bytes.
SPI: Return the ciphertext block size, in bytes.
SPI: Returns the length of a ciphertext block, in bytes.
Clock the register ticks steps.
SPI: Process data buffered by this cipher implementation.
SPI: Calculates the final digest.
Completes the hash computation by performing final operations such
as padding.
Calculates the final MAC.
Completes the hash computation by performing final operations such
as padding.
Completes the hash computation by performing final operations such
as padding.
Complete the hash computation by performing final operations such
as padding.
Complete the hash computation by performing final operations such
as padding.
SPI (for BlockMessageDigests only): Calculates the
final digest.
Returns the digest of the data added and resets the digest.
Returns the digest of the data added and resets the digest.
Returns the digest of the data added and resets the digest.
This method allows subclasses to modify the bytes that will be
used to generate a key.
SPI: Returns the length of the block that this hash
function operates on.
Returns the length of the data (in bytes) hashed in every transform.
Returns the length of the data (in bytes) hashed in every transform.
Returns the length of the data (in bytes) hashed in every transform.
SPI: Returns the digest length in bytes.
SPI: Returns the digest length in bytes.
Returns the length of the hash (in bytes).
SPI: Return the digest length in bytes.
SPI: Returns the digest length in bytes.
Returns the length of the hash (in bytes).
Returns the length of the hash (in bytes).
SPI: Returns an algorithm-specific parameter.
SPI: Gets the value of the specified algorithm parameter.
SPI: Gets the value of the specified algorithm parameter.
SPI: Gets the value of the specified algorithm parameter.
SPI: Gets the value of the specified algorithm parameter.
SPI: Gets the value of the specified algorithm parameter.
SPI: Return an algorithm-specific parameter.
SPI: Gets the value of the specified algorithm parameter.
SPI: Returns the minimum number of bytes of input, that
will cause an output of outLen bytes from a call to
engineUpdate
(when isFinal is false), or
successive calls to both engineUpdate
and
engineCrypt
(when isFinal is true).
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes the cipher for decryption, using the
given private key.
SPI: Initializes this cipher object for decryption, using the
given private key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for decryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes the cipher for encryption, using the
given public key.
SPI: Initializes this cipher object for encryption, using the
given public key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes this cipher for encryption, using the
specified key.
SPI: Initializes the cipher for signing, using the
given private key.
SPI: Initializes this signature object for signing, using the
given private key.
SPI: Initializes the cipher for verification, using the
given public key.
SPI: Initializes this signature object for verification, using
the given public key.
SPI: Returns true if size is a valid block size (in
bytes) for this algorithm.
SPI: Returns true if size is a valid block size (in
bytes) for this scheme.
SPI: Returns true if size is a valid block size (in
bytes) for this algorithm.
SPI: Returns true if size is a valid block size (in
bytes) for this algorithm.
SPI: Returns the length of output buffer required for a given
length of input, in bytes.
Pads a given array of bytes.
SPI: Pads a single incomplete block.
Pads a given array of bytes.
Pads a given array of bytes.
SPI: Returns the length of a plaintext block, in bytes.
SPI: Return the plaintext block size, in bytes.
SPI: Return the block size, in bytes.
Resets this object disregarding any temporary data present at the
time of the invocation of this call.
Resets this object disregarding any temporary data present at the
time of the invocation of this call.
Resets this object disregarding any temporary data present at the
time of the invocation of this call.
Resets this object disregarding any temporary data present at the
time of the invocation of this call.
Initializes (resets) the message digest.
Resets this object disregarding any temporary data present at the
time of the invocation of this call.
Resets this object disregarding any temporary data present at the
time of the invocation of this call.
Initializes (resets) the message digest.
Initializes (resets) the message digest.
Sets the blockSize
variable for this instance.
SPI: Sets the underlying cipher.
SPI: Sets the underlying cipher.
SPI: Sets the underlying cipher.
SPI: Sets the object that will implement padding for this cipher.
SPI: Sets an algorithm-specific parameter.
SPI: Sets the specified algorithm parameter to the specified
value.
SPI: Sets the specified algorithm parameter to the specified
value.
SPI: Sets the specified algorithm parameter to the specified
value.
SPI: Sets the specified algorithm parameter to the specified
value.
SPI: Sets the specified algorithm parameter to the specified
value.
SPI: Set an algorithm-specific parameter.
SPI: Sets the specified algorithm parameter to the specified
value.
Terminates the update process and returns the signature bytes of
all the data signed so far.
Terminates the update process and returns the signature bytes of
all the data signed so far.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
Test using the data from RFC 2202.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
Test that is run by distribution to make sure everything is OK!
It writes some test files, makes Scar archive from them, unarchives files
and compares results.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
This method should be overridden by test subclasses, to perform the
actual testing.
Test that is run by distribution to make sure everything is OK!
This C test program will confirm (note that some systems don't implement
straight crypt(3)).
SPI (for BlockMessageDigests only): Performs a
transformation on the given data, which is always one block long.
Adds data to the message digest.
Adds data to the message digest.
Adds data to the message digest.
Given the specified subarray of bytes that includes padding bytes, returns
the index indicating where padding starts.
SPI: Given the specified subarray of bytes that includes
padding bytes, returns the index indicating where padding starts.
Given the specified subarray of bytes that includes padding bytes, returns
the index indicating where padding starts.
Given the specified subarray of bytes that includes padding bytes, returns
the index indicating where padding starts.
Updates the data to be signed or verified, using one byte.
Updates the data to be signed or verified, using one byte.
SPI: Updates the message digest with a byte of new data.
Continues a HAVAL message digest using the input byte.
Continues an HMAC digest using the input byte.
Continues an MD2 message digest using the input byte.
Continues an MD4 message digest using the input byte.
Continue a RIPEMD128 message digest using the input byte.
Continue a RIPEMD160 message digest using the input byte.
Updates the data to be signed or verified, using the specified
sub-array of bytes, starting at the specified offset.
Updates the data to be signed or verified, using the specified
sub-array of bytes, starting at the specified offset.
SPI: Updates the message digest with new data.
Hashes a byte array from a given offset for a specified length.
Hashes a byte array from a given offset for a specified length.
MD2 block update operation.
MD4 block update operation.
RIPEMD128 block update operation.
RIPEMD160 block update operation.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
SPI: This is the main engine method for updating data.
Terminates the update process and verifies that the passed signature
equals that of a generated one based on the updated data so far.
Terminates the update process and verifies that the passed signature
equals that of a generated one based on the updated data so far.
err - static field in class cryptix.tools.
Scar Reports an error due to an unexpected exception.
Reports an error, with the given message.
Prints an error message that may be significant to a user.
The KeyGenerator class in JavaSoft's original version of JCE
does not provide these essential features:
- ability to set key lengths, for algorithms that support
more than one length.
This is the general security exception class, which serves to group all
the exception classes of the java.security package that extend
from it.
Constructs a GeneralSecurityException without any detail message.
Constructs a GeneralSecurityException with the specified
detail message.
Generates a key from an encoded byte array.
Generates a key from an encoded byte array.
Generate a new RSA key pair with the confidence that each of the
public modulus n factors p and q are primes
with a mathematical probability that will exceed 1 - (1/2)**
CONFIDENCE.
Generates new parameters, p and g.
Generates new parameters, p and g.
This class represents a set of ElGamal parameters for various prime lengths.
Subclasses should call this constructor to determine the parameters
that will be returned by getParameters
.
Returns the name of the algorithm this key is intended for
("ElGamal").
Returns the name of the algorithm, for this class always "RSA".
Returns the name of the algorithm, for this class always "RSA".
Returns this algorithm's standard cipher name (not including
mode and padding).
Returns the standard name of the algorithm for this key generator.
Returns the standard name of the padding scheme implemented.
Returns the ASN.1 bytes of the AlgorithmIdentifier token described
in engineSign()
method above.
Returns the ASN.1 bytes of the AlgorithmIdentifier token described
in engineSign()
method above.
Returns the ASN.1 bytes of the AlgorithmIdentifier token described
in engineSign()
method above.
Returns the ASN.1 bytes of the AlgorithmIdentifier token described
in engineSign()
method above.
Gets the standard names of all Ciphers implemented by any
installed provider.
Gets the standard names of all KeyGenerators implemented by any
installed provider.
Gets the standard names of all Modes implemented by any
installed provider.
Gets the standard names of all PaddingSchemes implemented by any
installed provider.
Gets the standard names of all Ciphers implemented by a provider.
Gets the standard names of all KeyGenerators implemented by a
provider.
Gets the standard names of all Modes implemented by a
provider.
Gets the standard names of all PaddingSchemes implemented by a
provider.
Gets the standard names of all algorithms of the given type
implemented by a provider.
Gets the standard names of all algorithms of the given type
implemented by any installed provider.
Return 1 or 0 if the designated bit was set or cleared respectively.
Return count
bits starting at offset n
framed in a long
, right justified and left padded
with binary zeroes.
Gets the block size of the cipher (or 0 if this was not set).
Returns the block size for this padding scheme.
Returns the length of a ciphertext block, in bytes.
Gets the size of the data passed to the cipher (or 0 if this
was not set).
Returns the debug level for label.
Returns the PrintWriter that debugging Output is to be sent to.
Returns the key length that will be used by
generateKey()
to create new random keys.
Returns the key length that will be used by
generateKey()
to create new random keys.
Generates a random probable-prime, p, of the given length, such that all
the factors of p - 1 are known.
Returns an encoding of this key as a byte array.
Returns an encoding of the key as a byte array, as described
above.
Returns an encoding of the key as a byte array, as described
above.
Returns the error code that should be passed to System.exit
.
Returns the number of errors so far.
Returns the number of expected passes, or 0 if this has not yet been
set, or is unknown.
Return the private exponent d.
Returns the public exponent e.
Returns the number of failures so far.
Returns the encoding format name for this key.
Returns the encoding format name, for this class always "RAW".
Returns the encoding format name, for this class always "RAW".
Returns a Germain (Sophie) probable-prime with an approximate
specified bitlength, that is prime with a probability exceeding
1 - (1/2)certainty.
Returns a Gordon strong probable-prime with an approximate
specified bitlength, that is prime with a probability exceeding
1 - (1/2)certainty.
Returns English-language HTML credits for Cryptix, in a form that
could be included in an application's About box, for example.
Returns an object configured to the specified type.
Returns an object configured to the specified type.
Given an algorithm name (which may be an alias) and type, returns the
corresponding algorithm class from any provider.
Given an algorithm name (which may be an alias), a provider name, and
a type, returns the corresponding algorithm class.
Gets the initialization vector for this object.
Gets a copy of the starting initialization vector.
Returns the size of the initialization vector expected by
setInitializationVector
.
Returns the size of the initialization vector expected by
setInitializationVector
.
Returns the length of an input block, in bytes.
Generates a Cipher object that implements the given algorithm.
Generates a KeyGenerator object that implements the algorithm
requested, as available in the environment.
Generates a Mode object that implements the algorithm
requested, as available in the environment.
Generates a PaddingScheme object that implements the algorithm
requested, as available in the environment.
Generates a Cipher object that implements the given cipher, from
the given provider.
Generates a KeyGenerator object implementing the specified
algorithm, as supplied from the specified provider, if such an
algorithm is available from the provider.
Generates a Mode object implementing the specified
algorithm, as supplied from the specified provider, if such an
algorithm is available from the provider.
Generates a PaddingScheme object implementing the specified
algorithm, as supplied from the specified provider, if such an
algorithm is available from the provider.
Generates a new Cipher object by composing the given Cipher, Mode and
PaddingScheme objects.
Returns the intermediate version of this release of Cryptix.
Returns the intermediate version of this release of IJCE.
Returns the multiplicative inverse of q modulo p.
Returns the coefficient, equal to the multiplicative inverse of
q modulo p, or null if the factors of the modulus are
unknown.
Returns the debug level for label.
Returns the maximum of the debug levels for label1 and label2.
Returns the library name.
Returns the library name.
Returns the library name.
Returns the path of the library directory.
Returns the path of the library directory.
Returns an error string describing why the library failed to load,
or null if there was no error.
Returns an error string describing why the library failed to load,
or null if there was no error.
Returns an error string describing why the library failed to load,
or null if there was no error.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Gets an object representing the native linking status of this class.
Return the magnitude bytes of a BigInteger with no leading 0's.
Returns the major version of this release of Cryptix.
Returns the major version of this release of IJCE.
Returns the actual major version number.
Returns the actual major version number.
Returns the actual major version number.
Gets the current value of the mask for this filter.
Returns the maximum useful key length for this algorithm.
Returns the maximum useful key length for this algorithm.
Return the degree/power of the mid-tap element in this LFSR.
Returns the minimum key length for this algorithm.
Returns the minimum key length for this algorithm.
Returns the minor version of this release of Cryptix.
Returns the minor version of this release of IJCE.
Returns the actual minor version number.
Returns the actual minor version number.
Returns the actual minor version number.
Returns this algorithm's standard mode name.
Return the public modulus n: the product of both p
and q.
Returns the public modulus n.
Gets the name of this test (as shown to the user).
Returns the PrintWriter to which debugging output is to be sent.
Returns the length of an output block, in bytes.
Returns p, the first factor of the public modulus.
Returns the first prime factor, p, or null if the factors of
the modulus are unknown.
Returns this algorithm's standard padding scheme name.
Returns the object implementing padding for this cipher, or null if
there is no such object.
Gets the value of the specified algorithm parameter.
Gets the value of the specified algorithm parameter.
Gets the value of the specified algorithm parameter.
Gets the value of the specified algorithm parameter.
Gets the value of the specified algorithm parameter.
Gets the value of the specified algorithm parameter.
If primeLength corresponds to one of the precomputed prime lengths,
this method returns a corresponding ElGamalParams object.
Returns the number of passes so far.
Returns the length of a plaintext block, in bytes.
Gets the value of a property.
Gets the value of a property.
Gets the value of a property, or returns defaultValue if the
property was not set.
Gets the value of a property, or returns defaultValue if the
property was not set.
Returns the name of the provider of this cipher.
Return q, the second factor of the public modulus.
Returns the second prime factor, q, or null if the factors of
the modulus are unknown.
Returns the release date of this version of Cryptix, as a string in
the form "yyyy/mm/dd".
Returns the release date of this version of IJCE, as a string in
the form "yyyy/mm/dd".
Returns the required major version number.
Returns the required major version number.
Returns the required major version number.
Returns the required minor version number.
Returns the required minor version number.
Returns the required minor version number.
Returns the currently set number of rounds for this instance.
Gets the number of rounds for this cipher.
Returns the currently set number of rounds for this instance.
Return the size
of this
object as
specified at its instantiation time.
Return the number of elements in this LFSR, which is also
the degree of the trinomial.
Returns the number of skipped tests so far.
Return the maximum number of meaningful bits in this LFSR, which
is also the maximum number of bits that can be processed in one
operation without loss of desired output sequence.
Returns a BigInteger array whose elements are the prime factors of a
designated BigInteger value, or null if the value could not easily be
factorised.
Return a BigInteger array whose elements are the prime factors of a
designated BigInteger value, for which we already have one large prime
factor.
Expands the possible alias algorithm to a standard name.
Returns the state of this Cipher object.
Returns the value in the CRC accumulator.
Gets the variant for this cipher ("SK-128", "SK-64", "K-128", or "K-64").
Returns a string describing this version of Cryptix.
Returns a string describing this version of IJCE.
Returns the value of x (the private key).
Returns the value of x (the private key).
Returns the value of y = gx mod p
(where x is the private value).
Returns the value of y = g^x mod p (where x is
the private key).
Whether to compile the library with a standard level of debugging
support.
Whether to compile the library with additional debugging support that
is likely to slow it down.
Whether to compile the library with tracing support or not.
IDEA - class cryptix.provider.cipher.
IDEA IDEA is a block cipher with a key length of 16 bytes and a block length of
8 bytes.
IDEA() - constructor for class cryptix.provider.cipher.
IDEA Constructs an IDEA cipher object, in the UNINITIALIZED state.
A key generator for IDEA.
The IJCE class provides an interface to features that were not present
in JavaSoft's initial version of JCE.
This class is a gross hack.
Reimplements methods supported only in Java 1.1.
This is a support class providing facilities needed to load and manage
properties.
This class is used to make any security checks needed by IJCE (for example
when adding and removing security providers).
This class is extended by Java Security classes that allow tracing of
calls to SPI methods.
This exception is thrown when an incorrect block size is processed
through a cipher.
Constructs an IllegalBlockSizeException with the specified
block size and illegal data size.
Constructs an IllegalBlockSizeException with the specified
block size, illegal data size, and detail message.
Constructs an IllegalBlockSizeException with the specified
detail message.
IN - static field in class cryptix.tools.
Scar Returns the minimum number of bytes of input, that will cause an
output of outLen bytes from a call to update
(i.e.
Returns the minimum number of bytes of input, that will cause an
output of outLen bytes from a call to crypt
(including padding for the final block of the stream, if applicable).
Return the register's index relative to the polynomial
term xdegree.
Used when the test is running as an Applet.
Initializes this cipher for decryption, using the specified
key.
Initializes this cipher for encryption, using the specified
key.
Initialise the RSA key pair generator for key strength value of
1024-bit, using the Fermat prime F4 (0x10001) as the encryption/
decryption exponent and a default SecureRandom source.
Initialises the key pair generator using the specified prime
(p) and base (g).
Initializes the key pair generator using the specified prime and
base.
Initialise the key pair generator using the specified strength
(desired public modulus length in bits), public exponent, and a
source of random bits.
Initializes the key pair generator using the specified "strength"
(desired key length in bits), public exponent, and source of random
bits.
Initialises the key pair generator for a given prime length,
without parameters.
Initializes the key pair generator for a given prime length,
without parameters.
Initialises the key pair generator for a given prime length,
without parameters.
Initialise the RSA key pair generator for a given key strength
(its number of bits), using the Fermat prime F4 (0x10001) as the
public exponent.
Initializes the key generator.
Initializes the key generator.
Initializes the key generator.
Initializes the key generator, and sets a specific key length
for use with algorithms that allow variable-length keys.
Initializes the key generator, and sets a specific key length
for use with algorithms that allow variable-length keys.
Initialises the key pair generator using the prime and base from
the specified ElGamalParams object.
Initializes the key pair generator using the prime and base from
the specified ElGamalParams object.
Installs Cryptix in the java.security file:
- If there is no java.security file, make one, and exit.
Returns a string of 8 hexadecimal digits (most significant digit first)
corresponding to the integer n, which is treated as unsigned.
Return the rightmost 32-bit value in this BigRegister
as an int
.
InvalidKeyFormatException is thrown when a key format is not recognized.
Constructs an InvalidKeyFormatException without any detail message.
Constructs an InvalidKeyFormatException with the specified
detail message.
This is the exception for invalid parameter types.
Constructs an InvalidParameterTypeException without any detail message.
Constructs an InvalidParameterTypeException with the specified
detail message.
Invert the bit order of the current contents of this
.
Reimplements target.isAssignableFrom(cl)
, from class
Class.
Returns true iff a GUI interface is being used.
Returns true if the library was loaded successfully.
Returns true if the library was loaded successfully.
Returns true if the library was loaded successfully.
Returns true if the library was loaded.
Returns true if the library was loaded.
Returns true if the library was loaded.
Returns true iff all the tests have completed successfully.
Returns true if this cipher is a padding block cipher.
Implements a faster (on average) primality check than
BigInteger.isProbablePrime(r, certainty)
.
Returns true if IJCE is providing the implementations of the JCA classes
(MessageDigest, Signature, etc).
Returns true if IJCE is providing the implementations of the JCE classes
(Cipher, KeyGenerator, etc).
Return true iff the argument is a polynomial that belongs to
the same Group as this
.
Return true if the parameters of the BigRegister x
(size
and bits
) are equal to this one;
false otherwise.
Return true if the TrinomialLFSR x has equal characteristics
and contents to this one; false otherwise.
Return true if tracing is requested for a given class.
Returns true iff length is a valid key length (in bytes)
for this algorithm.
Returns true iff length is a valid key length (in bytes)
for this algorithm.
Returns true iff output is to be printed even if all tests pass.
Returns true iff this version of Cryptix is at least the given
version.
Returns true iff this version of IJCE is at least the given
version.
Returns true iff the first 8 bytes of key represent a weak
DES key.
Returns true iff the first 24 bytes of key represent a weak
or semi-weak Triple DES key.
Returns true iff the first 8 bytes of key represent a weak
or semi-weak single DES key.
Returns true iff the first 8 bytes of key represent a weak
DES key.
Returns true iff the byte array key represents a
weak IDEA key.
Returns true iff the byte array key represents a
weak or semi-weak LOKI91 key.
Returns true iff key represents a weak or semi-weak key
for this algorithm.
Returns true iff key is a weak RC4 key, as described in Andrew
Roos' paper.
Returns true iff the bytes at key[offset..offset+7] represent a weak
or semi-weak single DES key.
Returns true if this object is allowed to generate weak and
semi-weak keys; false otherwise.
Returns true if this object is allowed to generate weak and
semi-weak keys; false otherwise.
Value of the current feedback register/queue/buffer.
Value of the IV at initialisation phase as supplied by user.
The raw ElGamal encryption algorithm.
Constructor for a RawElGamalCipher.
RawKey implements a key in raw format, represented as a byte array.
Constructs a key with the specified algorithm name and raw-encoded
data array.
Constructs a secret key with the specified algorithm and raw-encoded
data subarray.
RawKeyGenerator acts as a superclass for other Cryptix key generator
classes.
Constructor for use by subclasses that require a fixed-length key.
Constructor for use by subclasses that allow variable-length keys.
The raw RSA encryption algorithm, without any block framing.
Constructs a RawRSA cipher object, in the UNINITIALIZED state.
A class representing a RAW-encoded RSA private key.
Constructs a raw RSA private key given the private exponent, and
the public modulus n.
Constructs a raw RSA private key given the private exponent, and
the two factors used to generate the public modulus n.
Constructs a raw RSA private key given the private exponent, and
the two factors used to generate the public modulus n.
Constructs a raw RSA private key from data read from an InputStream,
encoded as described
above.
A class representing a RAW-encoded RSA public key.
Constructs a raw RSA public key given the public modulus and using
the Fermat prime F4 (value 0x10001) as the exponent.
Constructs a raw RSA public key given the public modulus n,
and the public exponent e.
Constructs a raw RSA public key from data read from an InputStream,
encoded as described
above.
RawSecretKey implements a secret key in raw format.
Constructs a secret key with the specified algorithm and raw-encoded
data array.
Constructs a secret key with the specified algorithm and raw-encoded
data subarray.
RC2 - class cryptix.provider.cipher.
RC2 A subclass of Cipher to implement the RC2 (TM) block cipher algorithm in
Java.
RC2() - constructor for class cryptix.provider.cipher.
RC2 Constructs an RC2 cipher object, in the UNINITIALIZED state.
RC4 - class cryptix.provider.cipher.
RC4 This class implements the RC4 (TM) stream cipher.
RC4() - constructor for class cryptix.provider.cipher.
RC4 Constructs an RC4 cipher object, in the UNINITIALIZED state.
A variable-length key generator for RC4.
Parse input in fours, producing three bytes to outBuf.
Returns the next encrypted or decrypted byte, depending on the
cipher state.
Fills up the specified bytes of the out array with the next
len encrypted or decrypted bytes (depending on the cipher state).
Forces a report of the number of passes, failures, errors, and expected
passes so far.
Prints a "can't happen" error, with a request to report this as a bug.
Always throws an IOException, since this class does not support mark/reset.
Reset to zeroes all this BigRegister
's bits.
Always throws an IOException, since this class does not support mark/reset.
Resets the mask so that all files will be matched.
Resets to start processing a new CRC.
Set the LFSR's initial state to a value that corresponds
to the polynomial term of the designated degree.
Rijndael --pronounced Reindaal-- is a symmetric cipher with a 128-bit
block size and variable key-size (128-, 192- and 256-bit).
The JCE docs say: "Constructor used for dynamic instantiation."
I don't understand why this is needed.
A variable-length key generator for Rijndael.
Implements the RIPEMD128 message digest algorithm in Java as per the
reference below.
Implements the RIPEMD160 message digest algorithm in Java as per the
reference below.
A class to digest a message with RIPEMD160, and sign/verify the
resulting hash using the ElGamal digital signature scheme, with PKCS#1
block padding.
A class to digest a message with RIPEMD160, and sign/verify the
resulting hash using the RSA digital signature scheme, with PKCS#1
block padding.
Circular left shift over the size
of this
register.
Circular right shift over the size
of this
register.
Computes the RSA algorithm, without using the Chinese Remainder
Theorem.
Computes the RSA algorithm.
A class that calculates the RSA algorithm.
An interface with methods to return the factors and coefficient of an
RSA modulus.
The interface to an RSA public or private key.
An interface to an object capable of generating RSA key pairs.
run() - method in class cryptix.tools.
KAT main action.
run() - method in class cryptix.tools.
MCT main action.
A subclass of Cipher to implement the SAFER algorithm in Java.
SAFER() - constructor for class cryptix.provider.cipher.
SAFER Calls the Cipher constructor with implBuffering
false,
implPadding
false and the provider set to "Cryptix".
A key generator for SAFER.
Saves the properties to the OutputStream os, in the format
used by java.util.Properties.save
.
Saves the properties to the OutputStream os, in the format
used by java.util.Properties.save
.
A command line utility to (a) compress, encrypt and asciify files and/or
directories (with or without directory recursion), and (b) accomplish the
inverse with user-specified option for recreating a source tree directory.
Runs algorithm through test data, including certification data
provided in paper.
Set the bit at the designated position to 1.
Sets the output length of this HAVAL object in bits, resetting all
internal variables.
Set count
bits starting at offset n
to a given value
.
Sets the block size in bytes for this cipher.
Sets the output length of this HAVAL object in bytes, resetting all
internal variables.
Sets the length of the digest output in bytes, and resets the digest.
Sets the number of expected passes for this test class.
Sets whether a GUI interface is used.
Sets the initialization vector.
Sets the initialization vector for this object.
Sets the mask this filter will be using from now on.
Sets the name of this test (as shown to the user).
Enables or disables the native code.
Enables or disables the native code.
Enables or disables the native code.
Sets the PrintWriter to which output is to be sent.
Sets the specified algorithm parameter to the specified value.
Sets the specified algorithm parameter to the specified value.
Sets the specified algorithm parameter to the specified value.
Sets the specified algorithm parameter to the specified value.
Sets the specified algorithm parameter to the specified value.
Sets the specified algorithm parameter to the specified value.
Sets parity bits for the given input array.
Sets the number of passes for this HAVAL object, resetting all
internal variables.
Sets the number of rounds for this cipher.
Sets the number of rounds for this cipher.
Sets the number of rounds for this cipher.
Sets the RSA parameters n and d.
Sets the RSA parameters n and e.
Sets the RSA parameters d, p, q, and u,
to allow fast execution of mathematical operations performed later
on during the life of this key.
Sets the variant for this cipher.
Sets whether output is to be printed even if all tests pass.
Sets whether this object is allowed to generate weak and
semi-weak keys.
Sets whether this object is allowed to generate weak and
semi-weak keys.
Set (to one) this LFSR's polynomial term of
the given degree.
This class implements the SHA-0 message digest algorithm
(not to be confused with the revised SHA-1 algorithm).
SHA0() - constructor for class cryptix.provider.md.
SHA0 The public constructor.
This class implements the SHA-1 message digest algorithm.
SHA1() - constructor for class cryptix.provider.md.
SHA1 Constructs a SHA-1 message digest.
A class to digest a message with SHA-1, and sign/verify the
resulting hash using the ElGamal digital signature scheme, with PKCS#1
block padding.
A class to digest a message with SHA-1, and sign/verify the
resulting hash using the RSA digital signature scheme, with PKCS#1
block padding.
Execute a left shift of this BigRegister
's contents
by a given number of bit positions.
Execute a right shift of this BigRegister
's contents
by a given number of bit positions.
Returns a string of 4 hexadecimal digits (most significant digit first)
corresponding to the lowest 16 bits of n.
The signature algorithm for ElGamal.
Skips over and discards n bytes of data from the
input stream.
Skips over and discards n bytes of data from the
input stream.
Reports a skipped test, with the given message.
SPEED is a block cipher with variable key size, data block size and number
of rounds (in the style of RC5).
SPEED() - constructor for class cryptix.provider.cipher.
SPEED Constructs a SPEED cipher object, in the UNINITIALIZED state.
A variable-length key generator for SPEED.
A subclass of Cipher to implement a Java class of the Square algorithm.
Constructs a Square cipher object, in the UNINITIALIZED state.
A key generator for Square.
The PrintWriter to which immediate output is sent.
Compute this -= gx (mod f(x))
.
This interface is implemented by symmetric ciphers.
This class tests the cryptix.util.math.TrinomialLFSR class.
Class for running all tests in the cryptix.test package.
Return true if the designated bit is set or false otherwise.
Tests the output of the Blowfish cipher algorithm implementation against
certified pre-computed output for a given set of reference input.
This class tests the cryptix.util.math.BigRegister class.
Tests the output of the CAST5 (CAST-128) cipher algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the DES block cipher algorithm implementation
against certified and pre-computed output for a given set of reference input.
Tests the output of the DES_EDE3 block cipher algorithm implementation
against pre-computed output for a given set of reference input.
This object tests the RawElGamal* and *_ElGamal_PKCS1 classes, by
generating 6 keypairs with varying strength (384- to 1024-bit in 128-bit
increments).
This exception is thrown when a test fails.
Constructs a TestException with the specified detail message and error code.
A GUI panel for the test classes.
Creates a TestGUI with the given owner.
Tests the output of the HAVAL message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the HMAC message authentication code implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the IDEA block cipher algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the current IJCE implementation using a SAFER cipher instance.
Tests whether Cryptix is installed correctly.
Tests the output of the LOKI91 cipher algorithm implementation against
certified pre-computed output for a given set of reference input.
Tests the output of the MD2 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the MD4 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the MD5 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the RC2 cipher algorithm implementation against
certified pre-computed output for a given set of reference input.
Tests the output of the RC4 cipher algorithm implementation against
certified pre-computed output for a given set of reference input.
Tests the Rijndael (AES) cipher.
Tests the output of the RIPEMD-128 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the RIPEMD-160 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
This object tests the RawRSA* and RSA_*_PKCS1 classes by generating
4 keypairs with varying strength (384- to 768-bit in 128-bit increments).
Tests the output of the SAFER cipher algorithm implementation against
certified pre-computed output for a given set of reference input.
Tests the output of the SHA-0 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the SHA-1 message digest algorithm implementation
against certified pre-computed output for a given set of reference input.
Tests the output of the SPEED cipher algorithm implementation against
certified pre-computed output for a given set of reference input.
Tests the output of the Square cipher algorithm implementation against
certified pre-computed values for a given set of reference input.
A class that extends Writer to write into a TextArea.
Creates a TextAreaWriter for the given TextArea.
Return the state of this
LFSR as a BigRegister
object where now the powers of the polynomial terms are
ordered in ascending succession starting from power 0 at index 0.
Return a copy of this BigRegister
's contents in a
byte array with the LSB at index position 0.
Returns a 4-byte array built from an int.
Returns a byte array built from a short array.
Returns the hex digit corresponding to a number n, from 0 to 15.
Returns an int built from two shorts.
Return a formatted String
representation of the
polynomial form represented by this
LFSR's state.
Returns a string of hexadecimal digits in reverse order from a byte array
(i.e.
Returns a short built from two bytes.
Returns a short array built from a byte array.
Write a BigInteger to a stream in Big Endian format (MSB first)
in a manner compatible with fromStream.
Returns a string representation of this key.
Returns a string representation of this key.
Return a formatted String
representation of the binary
contents of this
.
Return a formatted String
representation of the binary
contents of this
.
Returns a string of hexadecimal digits from a byte array.
Returns a string of hexadecimal digits from an integer array.
TRACE - static field in class cryptix.tools.
Scar Traces a method call that will return a result.
Traces the result of a method as an integer.
Traces the result of a method as a string.
Traces a void method call.
A class that implements a special category of Linear Feedback Shift
Register (LFSR).
Define an LFSR with L
stages and with a connection
trinomial of the form: xL +
xK + 1.
Return a TrinomialLFSR
object whose state is set
to the powers of the polynomial p(x) such that p(x)
= 1 in the polynomial Group defined over the trinomial
function of this
object.
Return a TrinomialLFSR
object whose state is set
to the powers of the polynomial p(x) such that p(x)
= x in the polynomial Group defined over the trinomial
function of this
object.