A B C D E F G H I K M N O P Q R S T U V W Z

A

available() - Method in class org.logi.crypto.io.DecryptStream
Returns the number of bytes that can be read from this input stream without blocking.
available() - Method in class org.logi.crypto.io.VerifyStream
Returns the number of bytes that can be read from this input stream without blocking.
available() - Method in class org.logi.crypto.io.HashInputStream
Returns the number of bytes that can be read from this input stream without blocking.

B

binString(int) - Static method in class org.logi.crypto.Crypto
Convert an int to a string of binary digits.
binString(long) - Static method in class org.logi.crypto.Crypto
Convert a long to a string of binary digits.
BIT - Static variable in class org.logi.crypto.Crypto
The binary digits "0" and "1".
BitBucket - class org.logi.crypto.test.BitBucket.
Anything written to instances of this class is counted and discarded.
BitBucket() - Constructor for class org.logi.crypto.test.BitBucket
 
blockSize() - Method in class org.logi.crypto.hash.HashState
Return the size of input-blocks for this hash function in bytes.
blockSize() - Method in class org.logi.crypto.hash.SHA1State
Return the size of input-blocks for this hash function in bytes.
blockSize() - Method in class org.logi.crypto.hash.MD5State
Return the size of input-blocks for this hash function in bytes.
BlowfishKey - class org.logi.crypto.keys.BlowfishKey.
This is the class for Blowfish keys.
BlowfishKey() - Constructor for class org.logi.crypto.keys.BlowfishKey
Create a new random 448 bit Blowfish key.
BlowfishKey(byte[]) - Constructor for class org.logi.crypto.keys.BlowfishKey
Create a new Blowfish key with the key bits from key.
BlowfishKey(int) - Constructor for class org.logi.crypto.keys.BlowfishKey
Create a new random n-bit Blowfish key.
buffer - Variable in class org.logi.crypto.hash.MD5State.SubState
Holds the bytes that have been added to this object, but not calculated into the hash in state.
byFingerprint(Fingerprint) - Method in interface org.logi.crypto.keys.KeySource
Retreive the key with the given fingerprint.
byFingerprint(Fingerprint) - Method in class org.logi.crypto.keys.KeyRing
Retreive the key with the given fingerprint.

C

CaesarKey - class org.logi.crypto.keys.CaesarKey.
The Caesar algorithm is supposedly the one Julius Caesar used by hand many centuries ago.
CaesarKey() - Constructor for class org.logi.crypto.keys.CaesarKey
Create a new random Caesar key.
CaesarKey(byte) - Constructor for class org.logi.crypto.keys.CaesarKey
Create a new Caesar key with the specified shift.
calculate() - Method in class org.logi.crypto.hash.HashState
Return a fingerprint for the curret state, without destroying the state.
calculate() - Method in class org.logi.crypto.hash.SHA1State
Return a Fingerprint for the curret state, without destroying the state.
calculate() - Method in class org.logi.crypto.hash.MD5State
Return a Fingerprint for the curret state, without destroying the state.
calculate(byte[]) - Method in class org.logi.crypto.Producer
Fills buf with newly produced bytes.
calculate(byte[]) - Method in class org.logi.crypto.modes.OFBProducer
Calculate the next bytes from the key-stream and put in buf.
cdsPath - Static variable in class org.logi.crypto.Crypto
The array of names of packages that are searched for classes mentioned in a CDS.
cipherBlockSize() - Method in class org.logi.crypto.keys.RSAKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
cipherBlockSize() - Method in class org.logi.crypto.keys.DHKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
cipherBlockSize() - Method in class org.logi.crypto.keys.BlowfishKey
The block-size for the Blowfish cipher is 8 bytes.
cipherBlockSize() - Method in class org.logi.crypto.keys.CaesarKey
The block-size for the Caesar cipher is one byte.
cipherBlockSize() - Method in class org.logi.crypto.keys.DESKey
The block-size for the DES cipher is 8 bytes.
cipherBlockSize() - Method in class org.logi.crypto.keys.TriDESKey
The block-size for the triple-DES cipher is 8 bytes.
cipherBlockSize() - Method in interface org.logi.crypto.keys.CipherKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
CipherKey - interface org.logi.crypto.keys.CipherKey.
This interface is implemented by keys which handle encryption and decryption of single blocks of data.
CipherStream - class org.logi.crypto.io.CipherStream.
Parent of CipherStreamClient and CipherStreamServer.
CipherStream() - Constructor for class org.logi.crypto.io.CipherStream
 
CipherStreamClient - class org.logi.crypto.io.CipherStreamClient.
This class can be used to apply an interactive key exchange protocol to a pair of streams and then encrypt all data going through them with the session key exchanged.
CipherStreamClient(InputStream, OutputStream, InterKeyExClient, EncryptMode, DecryptMode) - Constructor for class org.logi.crypto.io.CipherStreamClient
Create a new CipherStreamClient object and ecxhange keys.
CipherStreamServer - class org.logi.crypto.io.CipherStreamServer.
This class can be used to apply an interactive key exchange protocol to a pair of streams and then encrypt all data going through them with the session key exchanged.
CipherStreamServer(InputStream, OutputStream, InterKeyExServer, EncryptMode, DecryptMode) - Constructor for class org.logi.crypto.io.CipherStreamServer
Create a new CipherStreamServer object and ecxhange keys.
close() - Method in class org.logi.crypto.io.DecryptStream
Closes this input stream and releases any system resources associated with this stream.
close() - Method in class org.logi.crypto.io.HashOutputStream
Closes this output stream and releases any system resources associated with this stream.
close() - Method in class org.logi.crypto.io.SignStream
Closes this output stream and releases any system resources associated with this stream.
close() - Method in class org.logi.crypto.io.EncryptStream
Closes this output stream and releases any system resources associated with this stream.
close() - Method in class org.logi.crypto.modes.EncryptMode
Close files and kill threads owned by the object.
close() - Method in class org.logi.crypto.modes.DecryptMode
Close files and kill threads owned by the object.
close() - Method in class org.logi.crypto.modes.DecryptOFB
Close files and kill threads owned by the object.
close() - Method in class org.logi.crypto.modes.EncryptOFB
Close files and kill threads owned by the object.
close() - Method in class org.logi.crypto.test.BitBucket
 
completed() - Method in interface org.logi.crypto.protocols.InterProtocolServer
Returns true iff this end of the protocol is completed.
completed() - Method in class org.logi.crypto.protocols.EncryptedKeyEx
Returns true iff this end of the protocol i completed.
completed() - Method in class org.logi.crypto.protocols.QRAuth
Returns true iff this end of the protocol is completed.
completed() - Method in class org.logi.crypto.protocols.SendHashKeyEx
Returns true iff this end of the protocol i completed.
completed() - Method in class org.logi.crypto.protocols.DHKeyEx
Returns true iff this end of the protocol i completed.
completed() - Method in interface org.logi.crypto.protocols.InterProtocolClient
Returns true iff this end of the protocol is completed.
count - Variable in class org.logi.crypto.hash.MD5State.SubState
Holds the number of bits added to this object.
create() - Static method in class org.logi.crypto.hash.HashState
Create a HashState object for the default hash function.
create(byte[], int, int, String) - Static method in class org.logi.crypto.hash.Fingerprint
Create a Fingerprint object.
create(byte[], String) - Static method in class org.logi.crypto.hash.Fingerprint
Create a Fingerprint object.
create(String) - Static method in class org.logi.crypto.hash.HashState
Create a HashState object for the named hash function.
create(String, String) - Static method in class org.logi.crypto.hash.Fingerprint
Create a Fingerprint object.
createKeys(BigInteger, BigInteger, BigInteger) - Static method in class org.logi.crypto.keys.RSAKey
Create a KeyPair object holding objects for the public RSA key (r,n) and the private RSA key (s,n).
createKeys(int) - Static method in class org.logi.crypto.keys.RSAKey
Create a pair of public/private keys.
createKeys(int) - Static method in class org.logi.crypto.keys.DHKey
Create a pair of public/private keys in a group with an n bit modulo.
createKeys(String, PrintWriter, PrintWriter) - Static method in class org.logi.crypto.test.TestKey
 
createKeys(String, String, String, int) - Static method in class org.logi.crypto.keys.RSAKey
Create a pair of public/private keys from a username/password pair.
Crypto - class org.logi.crypto.Crypto.
This class contains numerous static and final utility functions along with global variables for the logi.crypto package.
Crypto() - Constructor for class org.logi.crypto.Crypto
 
CryptoCorruptError - error org.logi.crypto.CryptoCorruptError.
This exception is thrown whenever logi.crypto detects that it has been corrupted in some manner.
CryptoCorruptError() - Constructor for class org.logi.crypto.CryptoCorruptError
Create a new CryptoCorruptError with no message.
CryptoCorruptError(String) - Constructor for class org.logi.crypto.CryptoCorruptError
Create a new CryptoCorruptError with the message msg.
CryptoError - error org.logi.crypto.CryptoError.
This error or its sub-classes are thrown whenever a serious and unforseen cryptographic error occurs.
CryptoError() - Constructor for class org.logi.crypto.CryptoError
Create a new CryptoError with no message.
CryptoError(String) - Constructor for class org.logi.crypto.CryptoError
Create a new CryptoError with the message msg.
CryptoException - exception org.logi.crypto.CryptoException.
This exception or its sub-classes are thrown whenever a cryptographic error occurs.
CryptoException() - Constructor for class org.logi.crypto.CryptoException
Create a new CryptoException with no message.
CryptoException(String) - Constructor for class org.logi.crypto.CryptoException
Create a new CryptoException with the message msg.
CryptoProtocolException - exception org.logi.crypto.protocols.CryptoProtocolException.
This exception is thrown when a problem arises in a cryptographic protocol, such as an invalid message being received.
CryptoProtocolException() - Constructor for class org.logi.crypto.protocols.CryptoProtocolException
Create a new CryptoProtocolException with no message.
CryptoProtocolException(String) - Constructor for class org.logi.crypto.protocols.CryptoProtocolException
Create a new CryptoProtocolException with the message msg.

D

decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.RSAKey
Decrypt one block of data.
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.DHKey
Decrypt one block of data.
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.BlowfishKey
Decrypt one block of data.
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.CaesarKey
Decrypt one byte.
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.DESKey
Decrypt one block of data.
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.TriDESKey
Decrypt one block of data.
decrypt(byte[], int, byte[], int) - Method in interface org.logi.crypto.keys.CipherKey
Decrypt one block of data.
decrypt(byte[], int, int) - Method in class org.logi.crypto.modes.DecryptMode
Send bytes to the DecryptMode for decryption.
decrypt(byte[], int, int) - Method in class org.logi.crypto.modes.DecryptECB
Send bytes to the DecryptECB object for decryption.
decrypt(byte[], int, int) - Method in class org.logi.crypto.modes.DecryptOFB
Send bytes to the DecryptOFB object for encryption.
decrypt(byte[], int, int) - Method in class org.logi.crypto.modes.DecryptCFB
Send bytes to the DecryptCFB object for encryption.
decrypt(byte[], int, int) - Method in class org.logi.crypto.modes.DecryptCBC
Send bytes to the DecryptCBC object for decryption.
DecryptCBC - class org.logi.crypto.modes.DecryptCBC.
Use this class to decrypt ciphertext generated by EncryptCBC.
DecryptCBC() - Constructor for class org.logi.crypto.modes.DecryptCBC
Create a new CBC-mode decrypt session with no key.
DecryptCBC(CipherKey) - Constructor for class org.logi.crypto.modes.DecryptCBC
Create a new CBC-mode decrypt session with the specified key.
DecryptCFB - class org.logi.crypto.modes.DecryptCFB.
Use this class to decrypt ciphertext generated by EncryptCFB.
DecryptCFB() - Constructor for class org.logi.crypto.modes.DecryptCFB
Create a new CFB-mode decrypt session with no key.
DecryptCFB(CipherKey) - Constructor for class org.logi.crypto.modes.DecryptCFB
Create a new CFB-mode decrypt session with the specified key.
DecryptECB - class org.logi.crypto.modes.DecryptECB.
Use this class to decrypt ciphertext generated by EncryptECB.
DecryptECB() - Constructor for class org.logi.crypto.modes.DecryptECB
Create a new ECB-mode decrypt session with no key.
DecryptECB(CipherKey) - Constructor for class org.logi.crypto.modes.DecryptECB
Create a new ECB-mode decrypt session with the specified key.
DecryptMode - class org.logi.crypto.modes.DecryptMode.
DecryptMode objects are used to decrypt ciphertext generated with a correpsonding EncryptMode object.
DecryptMode() - Constructor for class org.logi.crypto.modes.DecryptMode
 
DecryptOFB - class org.logi.crypto.modes.DecryptOFB.
Use this class to decrypt ciphertext generated by EncryptOFB.
DecryptOFB(CipherKey, int) - Constructor for class org.logi.crypto.modes.DecryptOFB
Create a new OFB-mode decrypt session with the specified key.
DecryptOFB(int) - Constructor for class org.logi.crypto.modes.DecryptOFB
Create a new OFB-mode decrypt session with no key.
DecryptStream - class org.logi.crypto.io.DecryptStream.
Decrypt a stream of data encrypted with a corresponding EncryptStream ojbect.
DecryptStream(InputStream, NoninterKeyExServer, DecryptMode) - Constructor for class org.logi.crypto.io.DecryptStream
Create a new DecryptStream.
DESKey - class org.logi.crypto.keys.DESKey.
This is the class for Data Encryption Standard (DES) keys.
DESKey() - Constructor for class org.logi.crypto.keys.DESKey
Create a new random DES key.
DESKey(byte[]) - Constructor for class org.logi.crypto.keys.DESKey
Create a new DES key with the key bits from key[0..7].
DESKey(long) - Constructor for class org.logi.crypto.keys.DESKey
Create a new DES key with the key bits from key.
DHEKEKeyExClient - class org.logi.crypto.protocols.DHEKEKeyExClient.
Diffie-Hellman EKE key exchange and password verification client.
DHEKEKeyExClient(int, String, CipherKey) - Constructor for class org.logi.crypto.protocols.DHEKEKeyExClient
 
DHEKEKeyExServer - class org.logi.crypto.protocols.DHEKEKeyExServer.
Diffie-Hellman EKE key exchange and authentication server.
DHEKEKeyExServer(int, String, CipherKey) - Constructor for class org.logi.crypto.protocols.DHEKEKeyExServer
Create a new DHEKEKeyExClient object which uses an n bit modulus, the named key type and the specified secret key.
DHKey - class org.logi.crypto.keys.DHKey.
This object holds one Diffie-Hellman key.
DHKey(BigInteger, BigInteger, BigInteger, boolean) - Constructor for class org.logi.crypto.keys.DHKey
Create a new Diffie-Hellman key object.
DHKey(int) - Constructor for class org.logi.crypto.keys.DHKey
Create a random private DHKey with an n bit modulus.
DHKeyEx - class org.logi.crypto.protocols.DHKeyEx.
Ancestor of Diffie-Hellman key exchange objects
DHKeyExClient - class org.logi.crypto.protocols.DHKeyExClient.
Diffie-Hellman key exchange client.
DHKeyExClient(DHKey, String) - Constructor for class org.logi.crypto.protocols.DHKeyExClient
Create a new DHKeyExClient object.
DHKeyExClient(int, String) - Constructor for class org.logi.crypto.protocols.DHKeyExClient
Create a new DHKeyExClient object.
DHKeyExNoninter - class org.logi.crypto.protocols.DHKeyExNoninter.
Diffie-Hellman key exchange without exchanging keys.
DHKeyExNoninter(DHKey, DHKey, String) - Constructor for class org.logi.crypto.protocols.DHKeyExNoninter
Create a new DHKeyExClient object which uses the private DH key from pri and the public DH key from pri to generate a session key.
DHKeyExServer - class org.logi.crypto.protocols.DHKeyExServer.
Diffie-Hellman key exchange server.
DHKeyExServer(DHKey, String) - Constructor for class org.logi.crypto.protocols.DHKeyExServer
Create a new DHKeyExServer object.
DHKeyExServer(int, String) - Constructor for class org.logi.crypto.protocols.DHKeyExServer
Create a new DHKeyExClient object.
drain() - Method in class org.logi.crypto.io.DecryptStream
Drain random bytes inserted to fill a plain-text block.
drain() - Method in class org.logi.crypto.io.VerifyStream
Drain the underlying stream if it is a DecryptStream.

E

ElGamalKey - class org.logi.crypto.keys.ElGamalKey.
Deprecated. All functionality moved to the DHKey class.
ElGamalKey(BigInteger, BigInteger, BigInteger, boolean) - Constructor for class org.logi.crypto.keys.ElGamalKey
Deprecated. Create a new ElGamal key object.
ElGamalKey(int) - Constructor for class org.logi.crypto.keys.ElGamalKey
Deprecated. Create a random private ElGamalKey with an n bit modulus.
EMPTY_ARRAY - Static variable in class org.logi.crypto.Crypto
An empty byte array.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.RSAKey
Encrypt one block of data.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.DHKey
Encrypt one block of data.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.BlowfishKey
Encrypt one block of data.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.CaesarKey
Encrypt one byte.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.DESKey
Encrypt one block of data.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.TriDESKey
Encrypt one block of data.
encrypt(byte[], int, byte[], int) - Method in interface org.logi.crypto.keys.CipherKey
Encrypt one block of data.
encrypt(byte[], int, int) - Method in class org.logi.crypto.modes.EncryptMode
Send bytes to the EncryptMode for encryption.
encrypt(byte[], int, int) - Method in class org.logi.crypto.modes.EncryptECB
Send bytes to the EncryptECB object for encryption.
encrypt(byte[], int, int) - Method in class org.logi.crypto.modes.EncryptCFB
Send bytes to the EncryptCFB object for encryption.
encrypt(byte[], int, int) - Method in class org.logi.crypto.modes.EncryptCBC
Send bytes to the EncryptCBC object for encryption.
encrypt(byte[], int, int) - Method in class org.logi.crypto.modes.EncryptOFB
Send bytes to the EncryptOFB object for encryption.
EncryptCBC - class org.logi.crypto.modes.EncryptCBC.
Cipher Block Chaining mode xors each plain block with the previous cipher block before encrypting.
EncryptCBC() - Constructor for class org.logi.crypto.modes.EncryptCBC
Create a new CBC-mode encrypt session with no key.
EncryptCBC(CipherKey) - Constructor for class org.logi.crypto.modes.EncryptCBC
Create a new CBC-mode encrypt session with the specified key.
EncryptCFB - class org.logi.crypto.modes.EncryptCFB.
This class implements 8-bit Cipherblock FeedBack mode which encrypts a whole block for each plaintext character.
EncryptCFB() - Constructor for class org.logi.crypto.modes.EncryptCFB
Create a new CBF-mode encrypt session with no key.
EncryptCFB(CipherKey) - Constructor for class org.logi.crypto.modes.EncryptCFB
Create a new CBF-mode encrypt session with the specified key.
EncryptECB - class org.logi.crypto.modes.EncryptECB.
Electronic Codebook Mode simply encrypts each block of plaintext independently.
EncryptECB() - Constructor for class org.logi.crypto.modes.EncryptECB
Create a new ECB-mode encrypt session with no key.
EncryptECB(CipherKey) - Constructor for class org.logi.crypto.modes.EncryptECB
Create a new ECB-mode encrypt session with the specified key.
EncryptedKeyEx - class org.logi.crypto.protocols.EncryptedKeyEx.
Ancestor of EncryptedKeyEx classes.
EncryptedKeyExClient - class org.logi.crypto.protocols.EncryptedKeyExClient.
Exchange keys by sending an encrypted key from this class to the corresponding EncryptedKeyExServer.
EncryptedKeyExClient(CipherKey, Key) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExClient
Create a new EncryptedKeyExClient object.
EncryptedKeyExClient(CipherKey, SignatureKey, Key) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExClient
Create a new EncryptedKeyExClient object.
EncryptedKeyExServer - class org.logi.crypto.protocols.EncryptedKeyExServer.
Receive an encrypted key from the correstponding EncryptedKeyExClient and optionally check a signature.
EncryptedKeyExServer(CipherKey) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExServer
Creates a new EncryptedKeyExchangeServer object.
EncryptedKeyExServer(CipherKey, SignatureKey) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExServer
Creates a new EncryptedKeyExchangeServer object.
EncryptedKeyExServer(CipherKey, SignatureKey, Seedable) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExServer
Creates a new EncryptedKeyExchangeServer object.
EncryptMode - class org.logi.crypto.modes.EncryptMode.
Descendants of EncryptMode encrypt arbtrarily large arrays of plaintext.
EncryptMode() - Constructor for class org.logi.crypto.modes.EncryptMode
 
EncryptOFB - class org.logi.crypto.modes.EncryptOFB.
Output Fedback Mode iterates the encryption routine on the IV and xors the resulting stream with the plaintext to produce the ciphertext.
EncryptOFB(CipherKey, int) - Constructor for class org.logi.crypto.modes.EncryptOFB
Create a new OFB-mode encrypt session with the specified key.
EncryptOFB(int) - Constructor for class org.logi.crypto.modes.EncryptOFB
Create a new OFB-mode encrypt session with no key.
EncryptStream - class org.logi.crypto.io.EncryptStream.
This OutputStream encrypts everything written to it using the specified EncryptMode.
EncryptStream(OutputStream, NoninterKeyExClient, EncryptMode) - Constructor for class org.logi.crypto.io.EncryptStream
Create a new EncryptStream.
ensureArrayLength(byte[], int, int) - Static method in class org.logi.crypto.test.TestMode
Either returns a or a new array contianing the first i bytes from a.
equal(byte[], byte[]) - Static method in class org.logi.crypto.Crypto
Return true iff two array contain the same bytes.
equalRelaxed(byte[], byte[]) - Static method in class org.logi.crypto.Crypto
Return true iff two arrays contain the same bytes, discounting any zero bytes from the front of the arrays.
equals(Object) - Method in class org.logi.crypto.hash.Fingerprint
Test for equality with another object.
equals(Object) - Method in class org.logi.crypto.keys.RSAKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.DHKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.BlowfishKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.CaesarKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.DESKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.TriDESKey
Return true iff the two keys are equivalent.
equalSub(byte[], int, byte[], int, int) - Static method in class org.logi.crypto.Crypto
Return true iff a sub-array of two arrays contain the same bytes.
execute(InterProtocolClient) - Method in class org.logi.crypto.io.CipherStreamClient
Executes an interactive protocol.
execute(InterProtocolServer) - Method in class org.logi.crypto.io.CipherStreamServer
Executes an interactive protocol.
execute(NoninterProtocolClient) - Method in class org.logi.crypto.io.EncryptStream
Executes a non-interactive protocol through the encrypted channel.
execute(NoninterProtocolClient, boolean) - Method in class org.logi.crypto.io.EncryptStream
Executes a non-interactive protocol.
execute(NoninterProtocolServer) - Method in class org.logi.crypto.io.DecryptStream
Executes a non-interactive protocol through the encrypted channel.

F

FF(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
finalize() - Method in class org.logi.crypto.modes.EncryptMode
This finalizer calls close().
finalize() - Method in class org.logi.crypto.modes.DecryptMode
This finalizer calls close().
findPrime(BigInteger) - Static method in class org.logi.crypto.keys.RSAKey
Returns the largest prime p <= start
Fingerprint - class org.logi.crypto.hash.Fingerprint.
This class is used to hold a fingerprint of a particular data buffer.
Fingerprint(String, byte[], int, int) - Constructor for class org.logi.crypto.hash.Fingerprint
Creates a new Fingerprint object.
flush() - Method in class org.logi.crypto.io.HashOutputStream
Flushes this output stream and forces any buffered output bytes to be written out to the stream.
flush() - Method in class org.logi.crypto.io.SignStream
Flushes this output stream and forces any buffered output bytes to be written out to the stream.
flush() - Method in class org.logi.crypto.io.EncryptStream
Flushes this output stream and forces any buffered output bytes to be written out to the stream.
flush() - Method in class org.logi.crypto.modes.EncryptMode
Pads the internal buffer, encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.modes.EncryptECB
Pads the internal buffer, encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.modes.EncryptCFB
Pads the internal buffer, encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.modes.EncryptCBC
Pads the internal buffer, encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.modes.EncryptOFB
Pads the internal buffer, encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.test.BitBucket
 
flush(byte[], int, int) - Method in class org.logi.crypto.modes.EncryptMode
Equivalent to calling encrypt(source,i,length) followed by flush().
FOUR - Static variable in class org.logi.crypto.Crypto
The constant four.
fromHexNibble(char) - Static method in class org.logi.crypto.Crypto
Convert a hexadecimal digit to a byte.
fromHexString(String) - Static method in class org.logi.crypto.Crypto
Convert a string of hexadecimal digits to a byte array.
fromString(Reader) - Static method in class org.logi.crypto.Crypto
Parse the given Cipher Description String (CDS).
fromString(String) - Static method in class org.logi.crypto.Crypto
Parse the given Cipher Description String (CDS).

G

getAlgorithm() - Method in interface org.logi.crypto.keys.Key
Return the name of the algorithm used by this key.
getAlgorithm() - Method in class org.logi.crypto.keys.RSAKey
The name of the algorithm is "RSA".
getAlgorithm() - Method in class org.logi.crypto.keys.DHKey
The name of the algorithm is "Diffie-Hellman".
getAlgorithm() - Method in class org.logi.crypto.keys.BlowfishKey
The name of the algorithm is "Blowfish".
getAlgorithm() - Method in class org.logi.crypto.keys.CaesarKey
The name of the algorithm is "Caesar".
getAlgorithm() - Method in class org.logi.crypto.keys.DESKey
The name of the algorithm is "DES".
getAlgorithm() - Method in class org.logi.crypto.keys.TriDESKey
The name of the algorithm is "TriDES".
getBytes() - Method in class org.logi.crypto.hash.Fingerprint
Return an array of the bytes in the fingerprint.
getBytes() - Method in class org.logi.crypto.sign.Signature
Return the bytes from this signature.
getCount() - Method in class org.logi.crypto.test.BitBucket
 
getDecryptKey() - Method in class org.logi.crypto.io.CipherStream
Get the key used for decryption.
getDefaultHashFunction() - Static method in class org.logi.crypto.hash.HashState
Returns the default hash-function.
getEncryptKey() - Method in class org.logi.crypto.io.CipherStream
Get the key used for encryption.
getExponent() - Method in class org.logi.crypto.keys.RSAKey
Return the RSA exponent.
getFingerprint() - Method in class org.logi.crypto.io.HashOutputStream
Return a fingerprint of all data written so far.
getFingerprint() - Method in class org.logi.crypto.io.HashInputStream
Return a fingerprint of all data read so far.
getFingerprint() - Method in class org.logi.crypto.keys.KeyRecord
Return the SHA1 fingerprint of this KeyRecord.
getFingerprint() - Method in interface org.logi.crypto.keys.Key
Return the key's fingerprint using the default hash function.
getFingerprint() - Method in class org.logi.crypto.keys.K
Return the key's fingerprint using the default hash function.
getFingerprint(String) - Method in interface org.logi.crypto.keys.Key
Return the key's fingerprint using the named hash function.
getFingerprint(String) - Method in class org.logi.crypto.keys.K
Return the key's fingerprint using the named hash function.
getFingerprintAlgorithm() - Method in class org.logi.crypto.sign.Signature
Return the name of the algorithm used to fingerprint the data before signing.
getG() - Method in class org.logi.crypto.keys.DHKey
Return the generator for this key.
getGenerator(BigInteger) - Static method in class org.logi.crypto.keys.DHKey
Return a Generator for a modulus group.
getInputStream() - Method in class org.logi.crypto.io.CipherStream
Get the encrypted input-stream.
getKey() - Method in class org.logi.crypto.keys.KeyRecord
Return the key from this record.
getKey() - Method in class org.logi.crypto.keys.DHKey
Return the BigInteger representing this key.
getKey() - Method in class org.logi.crypto.keys.BlowfishKey
Return the key-bits for this key as an array of bytes.
getKey() - Method in class org.logi.crypto.keys.DESKey
Return the key-bits for this key as an array of 8 bytes.
getKey() - Method in class org.logi.crypto.keys.TriDESKey
Return the key-bits for this key as an array of 24 bytes.
getKey() - Method in class org.logi.crypto.modes.EncryptMode
Return the key used for encryption.
getKey() - Method in class org.logi.crypto.modes.EncryptECB
Return the key used for encryption.
getKey() - Method in class org.logi.crypto.modes.DecryptMode
Return the key used for decryption.
getKey() - Method in class org.logi.crypto.modes.DecryptECB
Return the key used for decryption.
getKey() - Method in class org.logi.crypto.modes.DecryptOFB
Return the key used for encryption.
getKey() - Method in class org.logi.crypto.modes.EncryptCFB
Return the key used for encryption.
getKey() - Method in class org.logi.crypto.modes.EncryptCBC
Return the key used for encryption.
getKey() - Method in class org.logi.crypto.modes.DecryptCFB
Return the key used for decryption.
getKey() - Method in class org.logi.crypto.modes.DecryptCBC
Return the key used for decryption.
getKey() - Method in class org.logi.crypto.modes.EncryptOFB
Return the key used for encryption.
getKeyPrint() - Method in class org.logi.crypto.sign.Signature
Return the fingerprint of the key used to verify this signature.
getM() - Method in class org.logi.crypto.keys.DHKey
Return the modulus for this key.
getModulus() - Method in class org.logi.crypto.keys.RSAKey
Return the RSA modulus.
getModulus(int) - Static method in class org.logi.crypto.keys.DHKey
Return a Diffie-Hellman modulus.
getName() - Method in class org.logi.crypto.hash.HashState
Return the name of the algorithm used by this HashState object.
getName() - Method in class org.logi.crypto.hash.SHA1State
The name of the algorithm is "SHA1".
getName() - Method in class org.logi.crypto.hash.MD5State
The name of the algorithm is "MD5".
getName() - Method in class org.logi.crypto.hash.Fingerprint
Return the name of the algorithm used for this fingerprint.
getNotes() - Method in class org.logi.crypto.keys.KeyRecord
Return the notes about this key.
getOutputStream() - Method in class org.logi.crypto.io.CipherStream
Get the encrypted output-stream.
getOwnerMail() - Method in class org.logi.crypto.keys.KeyRecord
Return the e-mail address of the key's owner.
getOwnerName() - Method in class org.logi.crypto.keys.KeyRecord
Return the name of the key's owner.
getPrivate() - Method in class org.logi.crypto.keys.KeyPair
Return the private key from the pair.
getPublic() - Method in class org.logi.crypto.keys.DHKey
Return the public key from the pair.
getPublic() - Method in class org.logi.crypto.keys.KeyPair
Return the public key from the pair.
getSize() - Method in interface org.logi.crypto.keys.Key
Return the "size" of the key.
getSize() - Method in class org.logi.crypto.keys.RSAKey
Return the size of the key modulo in bits.
getSize() - Method in class org.logi.crypto.keys.DHKey
Return the "size" of the key.
getSize() - Method in class org.logi.crypto.keys.BlowfishKey
Return the size of this key.
getSize() - Method in class org.logi.crypto.keys.CaesarKey
The key-size for the Caesar cipher is 1 byte.
getSize() - Method in class org.logi.crypto.keys.DESKey
The key-size for the DES cipher is 56 bits.
getSize() - Method in class org.logi.crypto.keys.TriDESKey
The key-size for the triple-DES cipher is 168 bits.
GG(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
guessTime(int) - Static method in class org.logi.crypto.random.Spinner
Returns t such that spin(t) is larger than n.

H

hash - class org.logi.crypto.test.hash.
Compute a hash of the data on standard in and write it to standard out.
hash - Variable in class org.logi.crypto.hash.MD5State.SubState
A hash for as much of the data added to this object as possible, given that they must be added in 64 byte chunks.
hashCode() - Method in class org.logi.crypto.hash.Fingerprint
Return a hash-code based on the bytes of the fingerprint and the algorithm name.
hashCode() - Method in interface org.logi.crypto.keys.Key
Return a hash-code based on the keys SHA1 fingerprint.
hashCode() - Method in class org.logi.crypto.keys.K
Return a hash-code based on the keys SHA1 fingerprint.
HashInputStream - class org.logi.crypto.io.HashInputStream.
This InputStream hashes everything read from an underlying OutputStream and then returns the data.
HashInputStream(InputStream) - Constructor for class org.logi.crypto.io.HashInputStream
Creates a new HashInputStream around in.
HashInputStream(InputStream, HashState) - Constructor for class org.logi.crypto.io.HashInputStream
Creates a new HashInputStream around in.
hashIt(InputStream, String) - Static method in class org.logi.crypto.test.hash
 
HashOutputStream - class org.logi.crypto.io.HashOutputStream.
This OutputStream hashes everything written to it and then passes it to an underlying OutputStream.
HashOutputStream(OutputStream) - Constructor for class org.logi.crypto.io.HashOutputStream
Creates a new HashOutputStream around out.
HashOutputStream(OutputStream, HashState) - Constructor for class org.logi.crypto.io.HashOutputStream
Creates a new HashOutputStream around out.
hashSize() - Method in class org.logi.crypto.hash.HashState
Returns the size of a fingerprint in bytes.
hashSize() - Method in class org.logi.crypto.hash.SHA1State
Returns the size of a fingerprint in bytes.
hashSize() - Method in class org.logi.crypto.hash.MD5State
Returns the size of a fingerprint in bytes.
HashState - class org.logi.crypto.hash.HashState.
An subclasses of this object handle the status of a fingerprint still being calculated.
HashState() - Constructor for class org.logi.crypto.hash.HashState
 
help() - Static method in class org.logi.crypto.test.hash
 
help(Object) - Static method in class org.logi.crypto.test.TestRandom
 
hexString(byte) - Static method in class org.logi.crypto.Crypto
Convert a byte to a string of hexadecimal digits.
hexString(byte[]) - Static method in class org.logi.crypto.Crypto
Convert a byte array to a string of hexadecimal digits.
hexString(byte[], int, int) - Static method in class org.logi.crypto.Crypto
Convert a byte array to a string of hexadecimal digits.
hexString(int) - Static method in class org.logi.crypto.Crypto
Convert an int to a string of hexadecimal digits.
hexString(long) - Static method in class org.logi.crypto.Crypto
Convert a long to a string of hexadecimal digits.
HH(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 

I

II(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
initRandom() - Static method in class org.logi.crypto.Crypto
Initialize the logi.crypto library.
initRandom(Random) - Static method in class org.logi.crypto.Crypto
Initialize the logi.crypto library.
insert(Key) - Method in class org.logi.crypto.keys.KeyRing
Insert the Key k into the KeyRing.
insert(KeyRecord) - Method in class org.logi.crypto.keys.KeyRing
Insert the KeyRecord k into the KeyRing.
InterAuthClient - interface org.logi.crypto.protocols.InterAuthClient.
This interface is implemented by classes for the client portion of an interactive authentication protocol.
InterAuthServer - interface org.logi.crypto.protocols.InterAuthServer.
This interface is implemented by classes for the server portion of an interactive authentication protocol.
InterKeyExClient - interface org.logi.crypto.protocols.InterKeyExClient.
This interface is implemented by classes for the client portion of an interactive key-exchange protocol.
InterKeyExServer - interface org.logi.crypto.protocols.InterKeyExServer.
This interface is implemented by classes for the server portion of an interactive key-exchange protocol.
InterProtocolClient - interface org.logi.crypto.protocols.InterProtocolClient.
This interface is implemented by classes for the client portion of an interactive protocol.
InterProtocolServer - interface org.logi.crypto.protocols.InterProtocolServer.
This interface is implemented by classes for the server portion of an interactive protocol.
InvalidCDSException - exception org.logi.crypto.InvalidCDSException.
This exception is thrown whenever a malformed CDS is encountered.
InvalidCDSException() - Constructor for class org.logi.crypto.InvalidCDSException
Create a new InvalidCDSException with no message.
InvalidCDSException(String) - Constructor for class org.logi.crypto.InvalidCDSException
Create a new InvalidCDSException with the message msg.
isPrivate() - Method in interface org.logi.crypto.keys.Key
Returns true iff this is a private key.
isPrivate() - Method in class org.logi.crypto.keys.RSAKey
Return true iff this is a private key.
isPrivate() - Method in class org.logi.crypto.keys.DHKey
Returns true iff this is a private key.
isPrivate() - Method in class org.logi.crypto.keys.SymmetricKey
Returns true iff this is a private key.

K

K - class org.logi.crypto.keys.K.
This abstract class implements some of the methods from the Key interface.
K() - Constructor for class org.logi.crypto.keys.K
 
Key - interface org.logi.crypto.keys.Key.
This interface is implemented by cryptographic keys of any type.
KeyException - exception org.logi.crypto.keys.KeyException.
This exception is thrown when there is a problem with a key object.
KeyException() - Constructor for class org.logi.crypto.keys.KeyException
Create a new KeyException with no message.
KeyException(String) - Constructor for class org.logi.crypto.keys.KeyException
Create a new KeyException with the message msg.
KeyPair - class org.logi.crypto.keys.KeyPair.
This class is a simple holder for a pair of public/private keys.
KeyPair(Key, Key) - Constructor for class org.logi.crypto.keys.KeyPair
Create a new KeyPair holder.
KeyRecord - class org.logi.crypto.keys.KeyRecord.
This class holds a particular key, linking it to the owner's name and e-mail and annotation.
KeyRecord(Key, String, String, String) - Constructor for class org.logi.crypto.keys.KeyRecord
Create a new KeyRecord.
KeyRing - class org.logi.crypto.keys.KeyRing.
This implementation of the KeySource interface stores keys in a hash-table.
KeyRing() - Constructor for class org.logi.crypto.keys.KeyRing
Create empty key ring.
keySource - Static variable in class org.logi.crypto.Crypto
The object used to store and retrieve keys.
KeySource - interface org.logi.crypto.keys.KeySource.
This interface is implemente by classes used to retrieve keys from some source, such as a simple file, a database or a key server.
kill() - Method in class org.logi.crypto.Producer
Terminate the producer thread.

M

main(String[]) - Static method in class org.logi.crypto.random.Spinner
Call with optional parameter t.
main(String[]) - Static method in class org.logi.crypto.test.TestCliSer
 
main(String[]) - Static method in class org.logi.crypto.test.TestSign
 
main(String[]) - Static method in class org.logi.crypto.test.TestIterate
 
main(String[]) - Static method in class org.logi.crypto.test.TestMode
 
main(String[]) - Static method in class org.logi.crypto.test.TestKey
 
main(String[]) - Static method in class org.logi.crypto.test.TestCDS
The CDS on the command-line is parsed into an object and promptly written back to standard output.
main(String[]) - Static method in class org.logi.crypto.test.TestDrain
 
main(String[]) - Static method in class org.logi.crypto.test.TestRandom
 
main(String[]) - Static method in class org.logi.crypto.test.hash
 
makeClass(String) - Static method in class org.logi.crypto.Crypto
Create a Class object for the named class.
makeInt(byte[], int, int) - Static method in class org.logi.crypto.Crypto
Convert a byte array to an int.
makeLong(byte[], int, int) - Static method in class org.logi.crypto.Crypto
Convert a byte array to a long.
makeSessionKey(String, byte[]) - Static method in class org.logi.crypto.Crypto
Convert a byte array to a CipherKey.
markSupported() - Method in class org.logi.crypto.io.DecryptStream
Returns false.
markSupported() - Method in class org.logi.crypto.io.VerifyStream
Returns false.
markSupported() - Method in class org.logi.crypto.io.HashInputStream
Returns false.
matches(Key) - Method in interface org.logi.crypto.keys.Key
Check if a key mathces this.
matches(Key) - Method in class org.logi.crypto.keys.RSAKey
Check if a key mathces this.
matches(Key) - Method in class org.logi.crypto.keys.DHKey
Check if a key mathces this.
matches(Key) - Method in class org.logi.crypto.keys.SymmetricKey
Returns true if this and key are the same symmetric key.
matchFingerprint() - Method in interface org.logi.crypto.keys.Key
Returns the fingerprint of the matching key in the key-pair.
matchFingerprint() - Method in class org.logi.crypto.keys.K
Returns the default fingerprint of the matching key in the key-pair.
matchFingerprint(String) - Method in interface org.logi.crypto.keys.Key
Returns the fingerprint of the matching key in the key-pair.
matchFingerprint(String) - Method in class org.logi.crypto.keys.K
Returns the default fingerprint of the matching key in the key-pair.
maxMessageSize() - Method in interface org.logi.crypto.protocols.InterProtocolServer
Returns the maximum expected size of a message for this protocol.
maxMessageSize() - Method in class org.logi.crypto.protocols.EncryptedKeyEx
Returns the maximum expected size of a message for this protocol.
maxMessageSize() - Method in class org.logi.crypto.protocols.QRAuth
Returns the maximum expected size of a message for this protocol.
maxMessageSize() - Method in class org.logi.crypto.protocols.SendHashKeyEx
Returns the maximum expected size of a message for this protocol.
maxMessageSize() - Method in class org.logi.crypto.protocols.DHKeyEx
Returns the maximum expected size of a message for this protocol.
maxMessageSize() - Method in interface org.logi.crypto.protocols.InterProtocolClient
Returns the maximum expected size of a message for this protocol.
MD5State - class org.logi.crypto.hash.MD5State.
An object of this class holds the state of an MD5 fingerprint still being calculated.
MD5State.SubState - class org.logi.crypto.hash.MD5State.SubState.
 
MD5State.SubState() - Constructor for class org.logi.crypto.hash.MD5State.SubState
Create a new empty instance
MD5State.SubState(MD5State.SubState) - Constructor for class org.logi.crypto.hash.MD5State.SubState
Create a copy of s
MD5State() - Constructor for class org.logi.crypto.hash.MD5State
Create a new clear MD5State.
message(byte[]) - Method in interface org.logi.crypto.protocols.InterProtocolServer
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.SendHashKeyExClient
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.QRAuthClient
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.DHKeyExClient
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.QRAuthServer
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.DHKeyExNoninter
Expects and sends null, since no messages are needed for this protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.DHEKEKeyExClient
If the key has not been decided upon and received is the last message received from the other end, message(received) returns the message to send the other end as the next step in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.DHKeyExServer
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.EncryptedKeyExServer
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.DHEKEKeyExServer
If the key has not been decided upon and received is the last message received from the other end, message(received) returns the message to send the other end as the next step in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.EncryptedKeyExClient
Get the next message in the protocol.
message(byte[]) - Method in interface org.logi.crypto.protocols.InterProtocolClient
Get the next message in the protocol.
message(byte[]) - Method in class org.logi.crypto.protocols.SendHashKeyExServer
Get the next message in the protocol.
metricString(double, int) - Static method in class org.logi.crypto.test.TestIterate
 

N

nextBuffer() - Method in class org.logi.crypto.Producer
Return the next array of bytes calculated by the producer.
nextBytes(byte[]) - Method in class org.logi.crypto.random.RandomMD5
Generates a user specified number of random bytes.
nextBytes(byte[]) - Method in class org.logi.crypto.random.PureSpinner
Generates a user specified number of random bytes.
nextBytes(byte[]) - Method in class org.logi.crypto.random.RandomFromStream
Generates a user specified number of random bytes.
NIBBLE - Static variable in class org.logi.crypto.Crypto
The hexadecimal digits "0" through "f".
NoninterKeyExClient - interface org.logi.crypto.protocols.NoninterKeyExClient.
This interface is implemented by classes for the client portion of a non-interactive key-exchange protocol.
NoninterKeyExServer - interface org.logi.crypto.protocols.NoninterKeyExServer.
This interface is implemented by classes for the server portion of a non-interactive key-exchange protocol.
NoninterProtocolClient - interface org.logi.crypto.protocols.NoninterProtocolClient.
This interface is implemented by classes for the client portion of a non-interactive protocol.
NoninterProtocolServer - interface org.logi.crypto.protocols.NoninterProtocolServer.
This interface is implemented by classes for the server portion of a non-interactive protocol.

O

OFBProducer - class org.logi.crypto.modes.OFBProducer.
This class is used by EncryptOFB and DecryptOFB to precalculate the keystream.
OFBProducer(CipherKey, int) - Constructor for class org.logi.crypto.modes.OFBProducer
Create new OFB thread with the given key and buffer size, but random IV.
ONE - Static variable in class org.logi.crypto.Crypto
The constant one.
org.logi.crypto - package org.logi.crypto
 
org.logi.crypto.hash - package org.logi.crypto.hash
 
org.logi.crypto.io - package org.logi.crypto.io
 
org.logi.crypto.keys - package org.logi.crypto.keys
 
org.logi.crypto.modes - package org.logi.crypto.modes
 
org.logi.crypto.protocols - package org.logi.crypto.protocols
 
org.logi.crypto.random - package org.logi.crypto.random
 
org.logi.crypto.sign - package org.logi.crypto.sign
 
org.logi.crypto.test - package org.logi.crypto.test
 

P

parseCDS(String) - Static method in class org.logi.crypto.hash.Fingerprint
If "Fingerprint( key )" is a valid CDS for a Fingerprint, then Fingerprint.parseCDS(key) will return the described Fingerprint object.
parseCDS(String) - Static method in class org.logi.crypto.keys.KeyRecord
If "KeyRecord( key )" is a valid CDS for a KeyRecord, then KeyRecord.parseCDS(key) will return the described KeyRecord object.
parseCDS(String) - Static method in class org.logi.crypto.keys.RSAKey
If "RSAKey( key )" is a valid CDS for an RSAKey, then RSAKey.parseCDS(key) will return the described RSAKey object.
parseCDS(String) - Static method in class org.logi.crypto.keys.DHKey
If "DHKey( key )" is a valid CDS for a DHKey, then DHKey.parseCDS(key) will return the described DHKey object.
parseCDS(String) - Static method in class org.logi.crypto.keys.BlowfishKey
If "BlowfishKey( key )" is a valid CDS for a BlowfishKey, then BlowfishKey.parseCDS(key) will return the described BlowfishKey object.
parseCDS(String) - Static method in class org.logi.crypto.keys.CaesarKey
If "CaesarKey( key )" is a valid CDS for a CaesarKey, then CaesarKey.parseCDS(key) will return the described CaesarKey object.
parseCDS(String) - Static method in class org.logi.crypto.keys.DESKey
If "DESKey( key )" is a valid CDS for a DESKey, then DESKey.parseCDS(key) will return the described DESKey object.
parseCDS(String) - Static method in class org.logi.crypto.keys.KeyRing
If "KeyRing( key )" is a valid CDS for a KeyRing, then KeyRing.parseCDS(key) will return the described KeyRing object.
parseCDS(String) - Static method in class org.logi.crypto.keys.TriDESKey
If "TriDESKey( key )" is a valid CDS for a TriDESKey, then TriDESKey.parseCDS(key) will return the described TriDESKey object.
parseCDS(String) - Static method in class org.logi.crypto.keys.ElGamalKey
Deprecated. If "ElGamalKey( key )" is a valid CDS for a ElGamalKey, then ElGamalKey.parseCDS(key) will return the described DHKey object.
parseCDS(String) - Static method in class org.logi.crypto.sign.Signature
If "Signature( key )" is a valid CDS for a Signature, then Signature.parseCDS(key) will return the described Signature object.
pastSpace(Reader) - Static method in class org.logi.crypto.Crypto
Read characters from a Reader until a non-space character is reached and return that character.
pickBits(int, byte[]) - Static method in class org.logi.crypto.Crypto
Construct an int by picking bits from another int.
pickBits(long, byte[]) - Static method in class org.logi.crypto.Crypto
Construct an long by picking bits from another long.
plainBlockSize() - Method in class org.logi.crypto.keys.RSAKey
Returns the size of the blocks that can be encrypted in one call to encrypt().
plainBlockSize() - Method in class org.logi.crypto.keys.DHKey
Returns the size of the blocks that can be encrypted in one call to encrypt().
plainBlockSize() - Method in class org.logi.crypto.keys.BlowfishKey
The block-size for the Blowfish cipher is 8 bytes.
plainBlockSize() - Method in class org.logi.crypto.keys.CaesarKey
The block-size for the Caesar cipher is one byte.
plainBlockSize() - Method in class org.logi.crypto.keys.DESKey
The block-size for the DES cipher is 8 bytes.
plainBlockSize() - Method in class org.logi.crypto.keys.TriDESKey
The block-size for the triple-DES cipher is 8 bytes.
plainBlockSize() - Method in interface org.logi.crypto.keys.CipherKey
Returns the size of the blocks that can be encrypted in one call to encrypt().
plainBlockSize() - Method in class org.logi.crypto.modes.EncryptMode
Return the size of the blocks of plaintext encrypted by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.EncryptECB
Return the size of the blocks of plaintext encrypted by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.DecryptMode
Return the size of the blocks of plaintext output by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.DecryptECB
Return the size of the blocks of plaintext output by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.DecryptOFB
Return the size of the blocks of plaintext output by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.EncryptCFB
Return the size of the blocks of plaintext encrypted by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.EncryptCBC
Return the size of the blocks of plaintext encrypted by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.DecryptCFB
Return the size of the blocks of plaintext output by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.DecryptCBC
Return the size of the blocks of plaintext output by this object.
plainBlockSize() - Method in class org.logi.crypto.modes.EncryptOFB
Return the size of the blocks of plaintext encrypted by this object.
primeCertainty - Static variable in class org.logi.crypto.Crypto
We allow a chance of 0.5**primeCertainty chance that given a composite number, the primaility check will say it is a prime.
Producer - class org.logi.crypto.Producer.
Subclasses of Producer can run in their own thread producing bytes which can be used by a consumer thread.
PureSpinner - class org.logi.crypto.random.PureSpinner.
This class uses the scheduler to gather entropy.
PureSpinner() - Constructor for class org.logi.crypto.random.PureSpinner
 

Q

QRAuth - class org.logi.crypto.protocols.QRAuth.
Ancestor of QRAuth classes.
QRAuth(CipherKey) - Constructor for class org.logi.crypto.protocols.QRAuth
Creates a new QRAuth object with the specified secret key.
QRAuthClient - class org.logi.crypto.protocols.QRAuthClient.
Query-response authenticaton client.
QRAuthClient(CipherKey) - Constructor for class org.logi.crypto.protocols.QRAuthClient
Creates a new QRAuthClient object with the specified secret key.
QRAuthServer - class org.logi.crypto.protocols.QRAuthServer.
Query-response authenticaton server.
QRAuthServer(CipherKey) - Constructor for class org.logi.crypto.protocols.QRAuthServer
Creates a new QRAuthServer object with the specified secret key.

R

random - Static variable in class org.logi.crypto.Crypto
This is the default random generator used by various Crypto classes.
RandomFromStream - class org.logi.crypto.random.RandomFromStream.
This class reads bits from an InputStream object and returns them as random values.
RandomFromStream(InputStream) - Constructor for class org.logi.crypto.random.RandomFromStream
Create a new RandomFromStream obejct.
RandomMD5 - class org.logi.crypto.random.RandomMD5.
This class implements an MD5-based PRNG and must be seeded from another RNG such as PureSpinner.
RandomMD5() - Constructor for class org.logi.crypto.random.RandomMD5
Create a new instance of the RandomMD5 class.
RandomMD5(Random, int, int) - Constructor for class org.logi.crypto.random.RandomMD5
Creates a new instance of the RandomMD5 class.
read() - Method in class org.logi.crypto.io.DecryptStream
Reads the next byte of data from this input stream.
read() - Method in class org.logi.crypto.io.VerifyStream
Reads the next byte of data from this input stream.
read() - Method in class org.logi.crypto.io.HashInputStream
Reads the next byte of data from this input stream.
read(byte[], int, int) - Method in class org.logi.crypto.io.DecryptStream
Reads up to len bytes of data from this input stream into an array of bytes.
read(byte[], int, int) - Method in class org.logi.crypto.io.VerifyStream
Reads up to len bytes of data from this input stream into an array of bytes.
read(byte[], int, int) - Method in class org.logi.crypto.io.HashInputStream
Reads up to len bytes of data from this input stream into an array of bytes.
readBlock(InputStream, byte[], int, int) - Static method in class org.logi.crypto.Crypto
Reads a number of bytes, blocking until they are all available.
readInt(InputStream) - Static method in class org.logi.crypto.Crypto
Read an int from an InputStream in bigendian order.
reset() - Method in class org.logi.crypto.hash.HashState
Reset the state.
reset() - Method in class org.logi.crypto.hash.SHA1State
Reset the internal state of the object.
reset() - Method in class org.logi.crypto.hash.MD5State
Reset the object.
reset() - Method in class org.logi.crypto.hash.MD5State.SubState
Reset the internal state
rotateLeft(int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
RSAKey - class org.logi.crypto.keys.RSAKey.
An instance of this class handles a single RSA key.
RSAKey(BigInteger, BigInteger, boolean) - Constructor for class org.logi.crypto.keys.RSAKey
Create a new RSA key (r,n).
run() - Method in class org.logi.crypto.Producer
Repeatedly call calculate(byte[]) on each of the sub-buffers, respecting the locking semantics of nextBuffer().
run() - Method in class org.logi.crypto.random.Spinner
Sleep for the specified amount and then die.

S

Seedable - interface org.logi.crypto.random.Seedable.
This interface will mostly be implemented by random number generators which can inject entropy into an entropy pool.
SendHashKeyEx - class org.logi.crypto.protocols.SendHashKeyEx.
Ancestor of SendHashKeyEx classes.
SendHashKeyExClient - class org.logi.crypto.protocols.SendHashKeyExClient.
This class implements the client portion of the key-exchange protocol whereby the client sends the server the hash of the key that should be used for decryption.
SendHashKeyExClient(Key) - Constructor for class org.logi.crypto.protocols.SendHashKeyExClient
Create a new SendHashKeyEx object.
SendHashKeyExServer - class org.logi.crypto.protocols.SendHashKeyExServer.
This class implements the server portion of the key-exchange protocol whereby the client sends the server the hash of the key that should be used for decryption.
SendHashKeyExServer() - Constructor for class org.logi.crypto.protocols.SendHashKeyExServer
Create a new SendHashKeyExServer.
sessionKey() - Method in class org.logi.crypto.protocols.EncryptedKeyEx
Returns the key if it has been decided upon, or null otherwise.
sessionKey() - Method in class org.logi.crypto.protocols.SendHashKeyEx
Returns the key if it has been decided upon, or null otherwise.
sessionKey() - Method in class org.logi.crypto.protocols.DHKeyEx
Returns the key if it has been decided upon, or null otherwise.
sessionKey() - Method in interface org.logi.crypto.protocols.InterKeyExClient
Returns the key if it has been decided upon, or null otherwise.
sessionKey() - Method in interface org.logi.crypto.protocols.InterKeyExServer
Returns the key if it has been decided upon, or null otherwise.
setDefaultHashFunction(String) - Static method in class org.logi.crypto.hash.HashState
Sets the default hash-function.
setKey(CipherKey) - Method in class org.logi.crypto.modes.EncryptMode
Set the key to use for encryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.EncryptECB
Set the key to use for encryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.DecryptMode
Set the key to use for decryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.DecryptECB
Set the key to use for decryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.DecryptOFB
Set the key to use for encryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.EncryptCFB
Set the key to use for encryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.EncryptCBC
Set the key to use for encryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.DecryptCFB
Set the key to use for decryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.DecryptCBC
Set the key to use for decryption.
setKey(CipherKey) - Method in class org.logi.crypto.modes.EncryptOFB
Set the key to use for encryption.
setSeed(byte[], int, int) - Method in class org.logi.crypto.random.RandomMD5
Add the bytes from seed[off..off+len-1] to the entropy pool.
setSeed(byte[], int, int) - Method in interface org.logi.crypto.random.Seedable
Add the bytes from seed[off..off+len-1] to the entropy pool.
setSeed(long) - Method in class org.logi.crypto.random.RandomMD5
Add the number seed to the entropy pool.
setSeed(long) - Method in interface org.logi.crypto.random.Seedable
Add the number seed to the entropy pool.
SHA1State - class org.logi.crypto.hash.SHA1State.
An object of this class holds the state of a SHA-1 fingerprint still being calculated.
SHA1State() - Constructor for class org.logi.crypto.hash.SHA1State
Create a new clear SHA1State.
sign(Fingerprint) - Method in class org.logi.crypto.keys.RSAKey
Create a signature for a Fingerprint fith a private key.
sign(Fingerprint) - Method in class org.logi.crypto.keys.DHKey
Create a signature for a Fingerprint fith a private key.
sign(Fingerprint) - Method in interface org.logi.crypto.keys.SignatureKey
Create a signature for a Fingerprint with a private key.
Signature - class org.logi.crypto.sign.Signature.
This class stores a digital signature.
Signature(byte[], String, Fingerprint) - Constructor for class org.logi.crypto.sign.Signature
Create a new Signature object.
SignatureKey - interface org.logi.crypto.keys.SignatureKey.
This interface is implemented by keys that can be used to create and validate signatures on fingerprints of data.
signatureSize() - Method in class org.logi.crypto.keys.RSAKey
Returns the length of the signature in bytes.
signatureSize() - Method in class org.logi.crypto.keys.DHKey
Returns the length of a signature in bytes.
signatureSize() - Method in interface org.logi.crypto.keys.SignatureKey
Returns the length of a signature in bytes.
signBlockSize() - Method in class org.logi.crypto.keys.RSAKey
Returns the maximum size in bytes of the fingerprint that can be signed.
signBlockSize() - Method in class org.logi.crypto.keys.DHKey
Returns the maximum size in bytes of the fingerprints that can be signed.
signBlockSize() - Method in interface org.logi.crypto.keys.SignatureKey
Returns the maximum size in bytes of the fingerprints that can be signed.
SignStream - class org.logi.crypto.io.SignStream.
This OutputStream signs everything written to it using the specified HashState and SignatureKey.
SignStream(OutputStream, int, SignatureKey, HashState) - Constructor for class org.logi.crypto.io.SignStream
Creates a new SignStream.
skip(long) - Method in class org.logi.crypto.io.DecryptStream
Does nothing and returns 0.
skip(long) - Method in class org.logi.crypto.io.VerifyStream
Does nothing and returns 0.
skip(long) - Method in class org.logi.crypto.io.HashInputStream
Skips over and discards n bytes of data from the input stream.
spin(long) - Static method in class org.logi.crypto.random.Spinner
Return the number of spins performed in t milliseconds.
Spinner - class org.logi.crypto.random.Spinner.
Helper class for the PureSpinner class.
SymmetricKey - class org.logi.crypto.keys.SymmetricKey.
This abstract class implements some (more) of the methods from the Key interface.
SymmetricKey() - Constructor for class org.logi.crypto.keys.SymmetricKey
 

T

test(String, PrintWriter, PrintWriter) - Static method in class org.logi.crypto.test.TestKey
 
test(String, String, PrintWriter, PrintWriter) - Static method in class org.logi.crypto.test.TestMode
 
TestCDS - class org.logi.crypto.test.TestCDS.
Parse the CDS from the command line and print out the object it represents or an error mesage.
TestCliSer - class org.logi.crypto.test.TestCliSer.
This application tests multiple client threads connecting to a server thread, using key-exchange and encryption in OFB mode.
TestDrain - class org.logi.crypto.test.TestDrain.
Tests the DecryptStream.drain() method.
TestDrain() - Constructor for class org.logi.crypto.test.TestDrain
 
TestIterate - class org.logi.crypto.test.TestIterate.
This application runs all the different tests.
TestKey - class org.logi.crypto.test.TestKey.
This application tests the various Key classes.
TestMode - class org.logi.crypto.test.TestMode.
This application tests the various encryption-mode classes.
TestRandom - class org.logi.crypto.test.TestRandom.
This application tests the various random number generation classes.
TestSign - class org.logi.crypto.test.TestSign.
This application passes everything on standard input to a SignStream and then on through a VerifyStream and onto standard output.
toString() - Method in class org.logi.crypto.hash.Fingerprint
Return a CDS for this fingerprint.
toString() - Method in class org.logi.crypto.keys.KeyRecord
Return a CDS for this KeyRecord.
toString() - Method in class org.logi.crypto.keys.RSAKey
Return a CDS for this key.
toString() - Method in class org.logi.crypto.keys.DHKey
Return a CDS for this key.
toString() - Method in class org.logi.crypto.keys.BlowfishKey
Return a CDS for this key.
toString() - Method in class org.logi.crypto.keys.KeyPair
Return a CDS for this key-pair.
toString() - Method in class org.logi.crypto.keys.CaesarKey
Return a CDS for this key.
toString() - Method in class org.logi.crypto.keys.DESKey
Return a CDS for this key.
toString() - Method in class org.logi.crypto.keys.KeyRing
Return a CDS for this KeyRing.
toString() - Method in class org.logi.crypto.keys.TriDESKey
Return a CDS for this key.
toString() - Method in class org.logi.crypto.sign.Signature
Return a CDS for this object.
transform(byte[], int) - Method in class org.logi.crypto.hash.MD5State.SubState
 
TriDESKey - class org.logi.crypto.keys.TriDESKey.
This is the class for triple-DES keys used in an EDE3 configuration.
TriDESKey() - Constructor for class org.logi.crypto.keys.TriDESKey
Create a new random triple-DES key.
TriDESKey(byte[]) - Constructor for class org.logi.crypto.keys.TriDESKey
Create a new triple-DES key with the key bits from key[0..23].
trimArrayLength(byte[], int) - Static method in class org.logi.crypto.test.TestMode
Either returns a or a new array contianing the first i bytes from a.
TWO - Static variable in class org.logi.crypto.Crypto
The constant two.

U

uadd(int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
uadd(int, int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
uadd(int, int, int, int) - Static method in class org.logi.crypto.hash.MD5State.SubState
 
update(byte[]) - Method in class org.logi.crypto.hash.HashState
Update the hash state with the bytes from buf.
update(byte[], int, int) - Method in class org.logi.crypto.hash.HashState
Update the hash state with the bytes from buf[offset, offset+length-1].
update(byte[], int, int) - Method in class org.logi.crypto.hash.SHA1State
Update the hash state with the bytes from buf[offset, offset+length-1].
update(byte[], int, int) - Method in class org.logi.crypto.hash.MD5State
Update the fingerprint state with the bytes from buf[offset, offset+length-1].
update(String) - Method in class org.logi.crypto.hash.HashState
Update the hash state with the characters from s.

V

ValidationException - exception org.logi.crypto.protocols.ValidationException.
This exception is thrown if data can't be validated, f.ex in VerifyStream.
ValidationException() - Constructor for class org.logi.crypto.protocols.ValidationException
Create a new ValidationException with no message.
ValidationException(String) - Constructor for class org.logi.crypto.protocols.ValidationException
Create a new ValidationException with the message msg.
verify(Signature, Fingerprint) - Method in class org.logi.crypto.keys.RSAKey
Verify a Signature on a Fingerprint with a public key.
verify(Signature, Fingerprint) - Method in class org.logi.crypto.keys.DHKey
Verify a Signature on a Fingerprint with a public key.
verify(Signature, Fingerprint) - Method in interface org.logi.crypto.keys.SignatureKey
Verify a Signature on a Fingerprint.
VerifyStream - class org.logi.crypto.io.VerifyStream.
This InputStream reads the stream generated by a SignStream and verifies the embedded signatures or hashes.
VerifyStream(InputStream, int, SignatureKey, HashState) - Constructor for class org.logi.crypto.io.VerifyStream
Create a new VerifyStream object.

W

write(byte[]) - Method in class org.logi.crypto.test.BitBucket
 
write(byte[], int, int) - Method in class org.logi.crypto.io.HashOutputStream
Writes len bytes from the specified byte array starting at offset off to this output stream.
write(byte[], int, int) - Method in class org.logi.crypto.io.SignStream
Writes len bytes from the specified byte array starting at offset off to this output stream.
write(byte[], int, int) - Method in class org.logi.crypto.io.EncryptStream
Writes len bytes from the specified byte array starting at offset off to this output stream.
write(byte[], int, int) - Method in class org.logi.crypto.test.BitBucket
 
write(int) - Method in class org.logi.crypto.io.HashOutputStream
Writes the specified byte to this output stream.
write(int) - Method in class org.logi.crypto.io.SignStream
Writes the specified byte to this output stream.
write(int) - Method in class org.logi.crypto.io.EncryptStream
Writes the specified byte to this output stream.
write(int) - Method in class org.logi.crypto.test.BitBucket
 
writeBytes(int, byte[], int, int) - Static method in class org.logi.crypto.Crypto
Write an int to a byte array.
writeBytes(long, byte[], int, int) - Static method in class org.logi.crypto.Crypto
Write a long to a byte array.
writeInt(OutputStream, int) - Static method in class org.logi.crypto.Crypto
Write an int to an OutputStream in bigendian order.

Z

ZERO - Static variable in class org.logi.crypto.Crypto
The constant zero.

A B C D E F G H I K M N O P Q R S T U V W Z

Copyright 1997-2000 Logi Ragnarsson