A B C D E F G H I K M N O P Q R S T U V W X 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
 
blind(Fingerprint, BlindingFactor) - Method in class org.logi.crypto.keys.RSAPublicKey
Blind a fingerprint with a public key and the given blinding factor in preparation for blindly signing the fingerprint with the private key.
blind(Fingerprint, BlindingFactor) - Method in interface org.logi.crypto.keys.BlindingKey
Blind a fingerprint with a public key and the given blinding factor in preparation for blindly signing the fingerprint with the private key.
BlindFingerprint - class org.logi.crypto.sign.BlindFingerprint.
This class is used to hold a blinded fingerprint of a particular data buffer.
BlindFingerprint(String, String, byte[]) - Constructor for class org.logi.crypto.sign.BlindFingerprint
 
BlindFingerprint(String, String, byte[], int, int) - Constructor for class org.logi.crypto.sign.BlindFingerprint
 
BlindingFactor - class org.logi.crypto.sign.BlindingFactor.
Information used for blinding a fingerprint and unblinding a signature for a particular keypair.
BlindingFactor() - Constructor for class org.logi.crypto.sign.BlindingFactor
 
BlindingKey - interface org.logi.crypto.keys.BlindingKey.
This interface is implemented by keys that can be used to create and validate blind signatures on fingerprints of data.
BlindSignature - class org.logi.crypto.sign.BlindSignature.
This class stores a blinded digital signature.
BlindSignature(String, String, byte[]) - Constructor for class org.logi.crypto.sign.BlindSignature
Create a new BlindSignature object.
BlindSigningKey - interface org.logi.crypto.keys.BlindSigningKey.
This interface is implemented by keys that can be used to create and validate blind signatures on fingerprints of data.
blockSize() - Method in class org.logi.crypto.sign.HashState
Return the size of input-blocks for this hash function in bytes.
blockSize() - Method in class org.logi.crypto.sign.MD5State
Return the size of input-blocks for this hash function in bytes.
blockSize() - Method in class org.logi.crypto.sign.SHA1State
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.sign.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
Retrieve the key with the given fingerprint.
byFingerprint(Fingerprint) - Method in class org.logi.crypto.keys.KeyRing
Retrieve 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.sign.HashState
Return a fingerprint for the curret state, without destroying the state.
calculate() - Method in class org.logi.crypto.sign.MD5State
Return a Fingerprint for the curret state, without destroying the state.
calculate() - Method in class org.logi.crypto.sign.SHA1State
Return a Fingerprint for the curret state, without destroying the state.
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.RSAPublicKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
cipherBlockSize() - Method in class org.logi.crypto.keys.RSAPrivateKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
cipherBlockSize() - Method in class org.logi.crypto.keys.DHPrivateKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
cipherBlockSize() - Method in class org.logi.crypto.keys.DHPublicKey
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 interface org.logi.crypto.keys.EncryptionKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
cipherBlockSize() - Method in interface org.logi.crypto.keys.DecryptionKey
Returns the size of the blocks that can be decrypted in one call to decrypt().
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.
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, EncryptSession, DecryptSession) - 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, EncryptSession, DecryptSession) - Constructor for class org.logi.crypto.io.CipherStreamServer
Create a new CipherStreamServer object and ecxhange keys.
ClientServer - class org.logi.crypto.demo.ClientServer.
This application launches multiple client threads connecting to a server thread, using key-exchange and encryption in OFB mode.
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.CipherStream
Closes all streams and releases their resources.
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.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.EncryptedKeyExServer
Returns true iff this end of the protocol i completed.
completed() - Method in class org.logi.crypto.protocols.EncryptedKeyExClient
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.sign.MD5State.SubState
Holds the number of bits added to this object.
create() - Static method in class org.logi.crypto.sign.HashState
Create a HashState object for the default hash function.
create(byte[], int, int, String) - Static method in class org.logi.crypto.sign.Fingerprint
Create a Fingerprint object.
create(byte[], String) - Static method in class org.logi.crypto.sign.Fingerprint
Create a Fingerprint object.
create(String) - Static method in class org.logi.crypto.sign.HashState
Create a HashState object for the named hash function.
create(String, String) - Static method in class org.logi.crypto.sign.Fingerprint
Create a Fingerprint object.
createBlindingFactor() - Method in class org.logi.crypto.keys.RSAPublicKey
Create a new blinding factor suitable for blinding a fingerprint before being signed with the private key in the pair.
createBlindingFactor() - Method in interface org.logi.crypto.keys.BlindingKey
Create a new blinding factor suitable for blinding a fingerprint before being signed with the private key in the pais.
createDecrypt(String, EncryptionKey, DecryptionKey, PrintWriter, PrintWriter) - Static method in class org.logi.crypto.test.TestKey
 
createEncrypt(String, EncryptionKey, DecryptionKey, PrintWriter, PrintWriter) - Static method in class org.logi.crypto.test.TestKey
 
createKeys(BigInteger, BigInteger, BigInteger) - Static method in class org.logi.crypto.keys.RSAPrivateKey
Create a KeyPair object holding objects for the public RSA key (e,n) and the private RSA key (d,n).
createKeys(int) - Static method in class org.logi.crypto.keys.RSAPrivateKey
Create a pair of public/private keys.
createKeys(int) - Static method in class org.logi.crypto.keys.DHPrivateKey
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.RSAPrivateKey
Create a pair of public/private keys from a username/password pair.
createKeys(String, String, String, int) - Static method in class org.logi.crypto.keys.DHPrivateKey
Create a pair of public/private keys in a group with an n bit modulo.
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 - class org.logi.crypto.demo.decrypt.
Decrypt standard input with the key given on the command-line and write to standard output.
decrypt() - Constructor for class org.logi.crypto.demo.decrypt
 
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.RSAPrivateKey
Decrypt one block of data.
decrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.DHPrivateKey
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 interface org.logi.crypto.keys.DecryptionKey
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, 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.
decrypt(byte[], int, int) - Method in interface org.logi.crypto.modes.DecryptSession
Send bytes to the DecryptMode 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 and default padding.
DecryptCBC(DecryptionKey) - Constructor for class org.logi.crypto.modes.DecryptCBC
Create a new CBC-mode decrypt session with default padding.
DecryptCBC(DecryptionKey, Padding) - Constructor for class org.logi.crypto.modes.DecryptCBC
Create a new CBC-mode decrypt session.
DecryptCBC(Padding) - Constructor for class org.logi.crypto.modes.DecryptCBC
Create a new CBC-mode decrypt session with no 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(DecryptionKey) - 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 and default padding.
DecryptECB(DecryptionKey) - Constructor for class org.logi.crypto.modes.DecryptECB
Create a new ECB-mode decrypt session with default padding.
DecryptECB(DecryptionKey, Padding) - Constructor for class org.logi.crypto.modes.DecryptECB
Create a new ECB-mode decrypt session.
DecryptECB(Padding) - Constructor for class org.logi.crypto.modes.DecryptECB
Create a new ECB-mode decrypt session with no key.
DecryptionKey - interface org.logi.crypto.keys.DecryptionKey.
This interface is implemented by keys which handle decryption of single blocks of data.
DecryptOFB - class org.logi.crypto.modes.DecryptOFB.
Use this class to decrypt ciphertext generated by EncryptOFB.
DecryptOFB(DecryptionKey, 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.
DecryptSession - interface org.logi.crypto.modes.DecryptSession.
DecryptSessions objects are used to decrypt ciphertext generated with a correpsonding EncryptSession object.
DecryptStream - class org.logi.crypto.io.DecryptStream.
Decrypt a stream of data encrypted with a corresponding EncryptStream ojbect.
DecryptStream(InputStream, NoninterKeyExServer, DecryptSession) - 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.
DHKeyExClient - class org.logi.crypto.protocols.DHKeyExClient.
Diffie-Hellman key exchange client.
DHKeyExClient(DHPrivateKey, 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(DHPrivateKey, DHPublicKey, 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(DHPrivateKey, 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.
DHPrivateKey - class org.logi.crypto.keys.DHPrivateKey.
This object holds one Diffie-Hellman key.
DHPrivateKey(BigInteger, BigInteger, BigInteger) - Constructor for class org.logi.crypto.keys.DHPrivateKey
Create a new Diffie-Hellman private-key object.
DHPublicKey - class org.logi.crypto.keys.DHPublicKey.
This object holds one Diffie-Hellman key.
DHPublicKey(BigInteger, BigInteger, BigInteger) - Constructor for class org.logi.crypto.keys.DHPublicKey
Create a new Diffie-Hellman key 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

EMPTY_ARRAY - Static variable in class org.logi.crypto.Crypto
An empty byte array.
EMSA_PKCS1_v1_5(Fingerprint, int) - Static method in class org.logi.crypto.padding.PadPKCS1v15
Encoding Method for Signature with Appendix.
encrypt - class org.logi.crypto.demo.encrypt.
Encrypt standard input with the key given on the command-line and write to standard output.
encrypt() - Constructor for class org.logi.crypto.demo.encrypt
 
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.RSAPublicKey
Encrypt one block of data.
encrypt(byte[], int, byte[], int) - Method in class org.logi.crypto.keys.DHPublicKey
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 interface org.logi.crypto.keys.EncryptionKey
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, 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 interface org.logi.crypto.modes.EncryptSession
Send bytes to the EncryptMode 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 and PKCS#5 padding.
EncryptCBC(EncryptionKey) - Constructor for class org.logi.crypto.modes.EncryptCBC
Create a new CBC-mode encrypt session with the specified key and PKCS#5 padding.
EncryptCBC(EncryptionKey, Padding) - Constructor for class org.logi.crypto.modes.EncryptCBC
Create a new CBC-mode encrypt session with the specified key.
EncryptCBC(Padding) - Constructor for class org.logi.crypto.modes.EncryptCBC
Create a new CBC-mode encrypt session with no 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(EncryptionKey) - 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 and default padding.
EncryptECB(EncryptionKey) - Constructor for class org.logi.crypto.modes.EncryptECB
Create a new ECB-mode encrypt session with default padding.
EncryptECB(EncryptionKey, Padding) - Constructor for class org.logi.crypto.modes.EncryptECB
Create a new ECB-mode encrypt session.
EncryptECB(Padding) - Constructor for class org.logi.crypto.modes.EncryptECB
Create a new ECB-mode encrypt session with no key.
EncryptedKeyExClient - class org.logi.crypto.protocols.EncryptedKeyExClient.
Exchange keys by sending an encrypted key from this class to the corresponding EncryptedKeyExServer.
EncryptedKeyExClient(EncryptionKey, Key) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExClient
Create a new EncryptedKeyExClient object.
EncryptedKeyExClient(EncryptionKey, SigningKey, 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(DecryptionKey) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExServer
Creates a new EncryptedKeyExchangeServer object.
EncryptedKeyExServer(DecryptionKey, VerificationKey) - Constructor for class org.logi.crypto.protocols.EncryptedKeyExServer
Creates a new EncryptedKeyExchangeServer object.
EncryptionKey - interface org.logi.crypto.keys.EncryptionKey.
This interface is implemented by keys which handle encryption of single blocks of data.
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(EncryptionKey, 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.
EncryptSession - interface org.logi.crypto.modes.EncryptSession.
Descendants of EncryptSession encrypt arbtrarily large arrays of plaintext.
EncryptStream - class org.logi.crypto.io.EncryptStream.
This OutputStream encrypts everything written to it using the specified EncryptSession.
EncryptStream(OutputStream, NoninterKeyExClient, EncryptSession) - Constructor for class org.logi.crypto.io.EncryptStream
Create a new EncryptStream.
ensureArrayLength(byte[], int, int) - Static method in class org.logi.crypto.Crypto
Either returns a or a new array contianing the first i bytes from a.
ensureArrayLength(String[], int, int) - Static method in class org.logi.crypto.Crypto
Either returns a or a new array contianing the first i strings 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.keys.RSAPublicKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.RSAPrivateKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.DHPrivateKey
Return true iff the two keys are equivalent.
equals(Object) - Method in class org.logi.crypto.keys.DHPublicKey
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.
equals(Object) - Method in class org.logi.crypto.secretshare.XorSecretShare
 
equals(Object) - Method in class org.logi.crypto.secretshare.PolySecretShare
 
equals(Object) - Method in class org.logi.crypto.sign.Fingerprint
Test for equality with another object.
equals(Object) - Method in class org.logi.crypto.sign.BlindFingerprint
Test for equality with another object.
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, boolean) - Method in class org.logi.crypto.io.CipherStreamClient
Executes an interactive protocol.
execute(InterProtocolServer, boolean) - Method in class org.logi.crypto.io.CipherStreamServer
Executes an interactive protocol.
execute(NoninterProtocolClient, boolean) - Method in class org.logi.crypto.io.EncryptStream
Executes a non-interactive protocol.

F

FF(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.sign.MD5State.SubState
 
Fingerprint - class org.logi.crypto.sign.Fingerprint.
This class is used to hold a fingerprint of a particular data buffer.
Fingerprint(String, byte[]) - Constructor for class org.logi.crypto.sign.Fingerprint
Creates a new Fingerprint object.
Fingerprint(String, byte[], int, int) - Constructor for class org.logi.crypto.sign.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.EncryptECB
Pads the internal buffer, encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.modes.DecryptECB
 
flush() - Method in class org.logi.crypto.modes.DecryptOFB
 
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 acording to PKCS#5 (See RFC 1423, sec 1.1), encrypts it and returns the ciphertext.
flush() - Method in class org.logi.crypto.modes.DecryptCFB
 
flush() - Method in class org.logi.crypto.modes.DecryptCBC
 
flush() - Method in interface org.logi.crypto.modes.DecryptSession
Flush any buffers internal to the DecryptSession object and releases any and all resources.
flush() - Method in interface org.logi.crypto.modes.EncryptSession
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 interface org.logi.crypto.modes.DecryptSession
Decrypt the last part of ciphertext and return plaintext.
flush(byte[], int, int) - Method in interface org.logi.crypto.modes.EncryptSession
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 class org.logi.crypto.keys.RSAPublicKey
The name of the algorithm is "RSA".
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.RSAPrivateKey
The name of the algorithm is "RSA".
getAlgorithm() - Method in class org.logi.crypto.keys.DHPrivateKey
The name of the algorithm is "Diffie-Hellman".
getAlgorithm() - Method in class org.logi.crypto.keys.DHPublicKey
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".
getBlindFunc() - Method in class org.logi.crypto.sign.BlindSignature
Return the name of the function used to blind the fingerprint before signing.
getBlindFunc() - Method in class org.logi.crypto.sign.BlindFingerprint
Return the name of the function used to blind the fingerprint.
getBytes() - Method in class org.logi.crypto.sign.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.sign.HashState
Returns the default hash-function.
getEncryptKey() - Method in class org.logi.crypto.io.CipherStream
Get the key used for encryption.
getFactor() - Method in class org.logi.crypto.keys.RSABlindingFactor
 
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(String) - Method in interface org.logi.crypto.keys.Key
Return the key's fingerprint using the specified hash function.
getG() - Method in class org.logi.crypto.keys.DHPrivateKey
Return the generator for this key.
getG() - Method in class org.logi.crypto.keys.DHPublicKey
Return the generator for this key.
getGenerator(BigInteger) - Static method in class org.logi.crypto.keys.DHPrivateKey
Return a Generator for a modulus group.
getHashFunc() - Method in class org.logi.crypto.sign.Fingerprint
Return the name of the hash function used for this fingerprint.
getHashFunc() - Method in class org.logi.crypto.sign.Signature
Return the name of the hash function used to fingerprint the data before signing.
getInputStream() - Method in class org.logi.crypto.io.CipherStream
Get the encrypted input-stream.
getKey() - Method in class org.logi.crypto.io.DecryptStream
Return the key used for decrypting this stream, or null if one has not been specified.
getKey() - Method in class org.logi.crypto.io.EncryptStream
Return the key used for encrypting this stream, or null if one has not been specified.
getKey() - Method in class org.logi.crypto.keys.KeyRecord
Return the key from this record.
getKey() - Method in class org.logi.crypto.keys.DHPrivateKey
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.EncryptECB
Return the key used for encryption.
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 interface org.logi.crypto.modes.DecryptSession
Return the key used for decryption.
getKey() - Method in interface org.logi.crypto.modes.EncryptSession
Return the key used for encryption.
getKey() - Method in class org.logi.crypto.modes.EncryptOFB
Return the key used for encryption.
getM() - Method in class org.logi.crypto.keys.DHPrivateKey
Return the modulus for this key.
getM() - Method in class org.logi.crypto.keys.DHPublicKey
Return the modulus for this key.
getM() - Method in class org.logi.crypto.secretshare.SecretShare
Get the number of shares needed to retrieve the secret.
getModulus() - Method in class org.logi.crypto.keys.RSAPublicKey
Return the RSA modulus.
getModulus() - Method in class org.logi.crypto.keys.RSAPrivateKey
Return public modulus.
getModulus(int) - Static method in class org.logi.crypto.keys.DHPrivateKey
Return a Diffie-Hellman modulus.
getN() - Method in class org.logi.crypto.secretshare.SecretShare
Get the number of created shares.
getName() - Method in class org.logi.crypto.sign.HashState
Return the name of the algorithm used by this HashState object.
getName() - Method in class org.logi.crypto.sign.MD5State
The name of the algorithm is "MD5".
getName() - Method in class org.logi.crypto.sign.SHA1State
The name of the algorithm is "SHA1".
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.
getPrivateExponent() - Method in class org.logi.crypto.keys.RSAPrivateKey
Return private exponent.
getPublic() - Method in class org.logi.crypto.keys.DHPrivateKey
Return the public key from the pair.
getPublic() - Method in class org.logi.crypto.keys.KeyPair
Return the public key from the pair.
getPublicExponent() - Method in class org.logi.crypto.keys.RSAPublicKey
Return the RSA exponent.
getShare() - Method in class org.logi.crypto.secretshare.XorSecretShare
Get the actual bytes of the share.
getSize() - Method in class org.logi.crypto.keys.RSAPublicKey
Return the size of the key modulo in bits.
getSize() - Method in interface org.logi.crypto.keys.Key
Return the "size" of the key.
getSize() - Method in class org.logi.crypto.keys.RSAPrivateKey
Return the size of the key modulo in bits.
getSize() - Method in class org.logi.crypto.keys.DHPrivateKey
Return the "size" of the key.
getSize() - Method in class org.logi.crypto.keys.DHPublicKey
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.
getY() - Method in class org.logi.crypto.keys.DHPublicKey
Return y.
GG(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.sign.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.demo.hash.
Compute a hash of the data on standard in and write it to standard out.
hash - Variable in class org.logi.crypto.sign.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 interface org.logi.crypto.keys.Key
Return a hash-code based on the keys SHA1 fingerprint.
hashCode() - Method in class org.logi.crypto.secretshare.XorSecretShare
 
hashCode() - Method in class org.logi.crypto.secretshare.PolySecretShare
 
hashCode() - Method in class org.logi.crypto.sign.Fingerprint
Return a hash-code based on the bytes of the fingerprint and the hash function name.
hashCode() - Method in class org.logi.crypto.sign.BlindFingerprint
Return a hash-code based on the bytes of the fingerprint and the algorithm names.
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.demo.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.sign.HashState
Returns the size of a fingerprint in bytes.
hashSize() - Method in class org.logi.crypto.sign.MD5State
Returns the size of a fingerprint in bytes.
hashSize() - Method in class org.logi.crypto.sign.SHA1State
Returns the size of a fingerprint in bytes.
HashState - class org.logi.crypto.sign.HashState.
An subclasses of this object handle the status of a fingerprint still being calculated.
HashState() - Constructor for class org.logi.crypto.sign.HashState
 
help(Object) - Static method in class org.logi.crypto.demo.decrypt
 
help(Object) - Static method in class org.logi.crypto.demo.encrypt
 
help(Object) - Static method in class org.logi.crypto.test.TestRandom
 
help(String) - Static method in class org.logi.crypto.demo.hash
 
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.sign.MD5State.SubState
 

I

II(int, int, int, int, int, int, int) - Static method in class org.logi.crypto.sign.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 class org.logi.crypto.keys.DHPrivateKey
Returns true iff this is a private key.

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.

M

main(String[]) - Static method in class org.logi.crypto.demo.hash
 
main(String[]) - Static method in class org.logi.crypto.demo.decrypt
 
main(String[]) - Static method in class org.logi.crypto.demo.ShareSecret
 
main(String[]) - Static method in class org.logi.crypto.demo.encrypt
 
main(String[]) - Static method in class org.logi.crypto.demo.RetrieveSecret
 
main(String[]) - Static method in class org.logi.crypto.demo.ClientServer
 
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.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.TestSign
 
main(String[]) - Static method in class org.logi.crypto.test.TestSecretShare
 
main(String[]) - Static method in class org.logi.crypto.test.TestKey
 
main(String[]) - Static method in class org.logi.crypto.test.TestIterate
 
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 class org.logi.crypto.keys.RSAPublicKey
Check if a key mathces this.
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.RSAPrivateKey
Check if a key mathces this.
matches(Key) - Method in class org.logi.crypto.keys.DHPrivateKey
Check if a key mathces this.
matches(Key) - Method in class org.logi.crypto.keys.DHPublicKey
Check if a key mathces this.
matchFingerprint() - Method in interface org.logi.crypto.keys.Key
Returns the 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.
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.EncryptedKeyExServer
Returns the maximum expected size of a message for this protocol.
maxMessageSize() - Method in class org.logi.crypto.protocols.EncryptedKeyExClient
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.sign.MD5State.
An object of this class holds the state of an MD5 fingerprint still being calculated.
MD5State.SubState - class org.logi.crypto.sign.MD5State.SubState.
MD5 function without the padding.
MD5State.SubState() - Constructor for class org.logi.crypto.sign.MD5State.SubState
Create a new empty instance
MD5State.SubState(MD5State.SubState) - Constructor for class org.logi.crypto.sign.MD5State.SubState
Create a copy of s
MD5State() - Constructor for class org.logi.crypto.sign.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.DHKeyExServer
Get the next message in the 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.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 class org.logi.crypto.protocols.SendHashKeyExServer
Get the next message in the protocol.
message(byte[]) - Method in interface org.logi.crypto.protocols.InterProtocolClient
Get the next message in the protocol.
metricString(double, int) - Static method in class org.logi.crypto.test.TestIterate
 

N

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

ONE - Static variable in class org.logi.crypto.Crypto
The constant one.
org.logi.crypto - package org.logi.crypto
Basic control and exception classes.
org.logi.crypto.demo - package org.logi.crypto.demo
Demonstration programs.
org.logi.crypto.io - package org.logi.crypto.io
I/O classes, some of which can encrypt, decrypt, sign, hash or verify data as it passes through.
org.logi.crypto.keys - package org.logi.crypto.keys
Implementations of particular key-types and ciphers.
org.logi.crypto.modes - package org.logi.crypto.modes
Block-cipher modes such as ECB, CBC, OFB and CFB.
org.logi.crypto.padding - package org.logi.crypto.padding
Cipher padding schemes for ensuring that plaintext fits into a whole multiple of plaintext blocks.
org.logi.crypto.protocols - package org.logi.crypto.protocols
Cryptographic protocols such as authentication, key-exchange and key-agreement.
org.logi.crypto.random - package org.logi.crypto.random
Random number generation.
org.logi.crypto.secretshare - package org.logi.crypto.secretshare
Splitting secrets into a number of parts and re-combinging the parts to retrieve the secret.
org.logi.crypto.sign - package org.logi.crypto.sign
Hashing data and holding fingerprints, signatures and blind signatures.
org.logi.crypto.test - package org.logi.crypto.test
Tests of the implementations in the library.

P

pad(byte[], int, int, EncryptionKey) - Method in interface org.logi.crypto.padding.Padding
Pad the last, perhaps partial, block of plaintext.
pad(byte[], int, int, EncryptionKey) - Method in class org.logi.crypto.padding.PadZero
Pad the last, perhaps partial, block of plaintext by appending a string of zeroes.
pad(byte[], int, int, EncryptionKey) - Method in class org.logi.crypto.padding.PadPKCS5
Pad the last, perhaps partial, block of plaintext.
pad(byte[], int, int, EncryptionKey) - Method in class org.logi.crypto.padding.PadNone
Pass whole blocks of plaintext through, but throw exception on partial blocks.
pad(byte[], int, int, EncryptionKey) - Method in class org.logi.crypto.padding.PadPKCS1v15
Pad the last, perhaps partial, block of plaintext.
Padding - interface org.logi.crypto.padding.Padding.
Classes implementing this interface implement a padding scheme such as PKCS#5.
PaddingException - exception org.logi.crypto.padding.PaddingException.
This exception is thrown whenever a malformed CDS is encountered.
PaddingException() - Constructor for class org.logi.crypto.padding.PaddingException
Create a new PaddingException with no message.
PaddingException(String) - Constructor for class org.logi.crypto.padding.PaddingException
Create a new InvalidCDSException with the message msg.
PadNone - class org.logi.crypto.padding.PadNone.
This class implements non-padding.
PadNone() - Constructor for class org.logi.crypto.padding.PadNone
 
PadPKCS1v15 - class org.logi.crypto.padding.PadPKCS1v15.
This class implements PKCS#1 v1.5 padding.
PadPKCS1v15() - Constructor for class org.logi.crypto.padding.PadPKCS1v15
 
PadPKCS5 - class org.logi.crypto.padding.PadPKCS5.
This class implements PKCS#5 padding.
PadPKCS5() - Constructor for class org.logi.crypto.padding.PadPKCS5
 
PadZero - class org.logi.crypto.padding.PadZero.
This class implements padding with zero-bytes.
PadZero() - Constructor for class org.logi.crypto.padding.PadZero
 
parseCDS(String[]) - Static method in class org.logi.crypto.keys.RSAPublicKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.KeyRecord
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.RSAPrivateKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.DHPrivateKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.DHPublicKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.BlowfishKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.KeyPair
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.CaesarKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.DESKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.RSABlindingFactor
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.KeyRing
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.keys.TriDESKey
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.secretshare.XorSecretShare
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.secretshare.PolySecretShare
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.sign.Fingerprint
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.sign.Signature
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.sign.BlindSignature
Used by Crypto.fromString when parsing a CDS.
parseCDS(String[]) - Static method in class org.logi.crypto.sign.BlindFingerprint
Used by Crypto.fromString when parsing a CDS.
pastSpace(Reader) - Static method in class org.logi.crypto.Crypto
Read characters from a Reader until a non-space character is