Package | Description |
---|---|
com.tinfoilsms.crypto | |
com.tinfoilsms.csprng | |
org.spongycastle.crypto |
Base classes for the lightweight API.
|
org.spongycastle.crypto.agreement.kdf | |
org.spongycastle.crypto.engines |
Basic cipher classes.
|
org.spongycastle.crypto.generators |
Generators for keys, key pairs and password based encryption algorithms.
|
org.spongycastle.crypto.macs |
Classes for creating MACs and HMACs.
|
org.spongycastle.crypto.modes |
Modes for symmetric ciphers.
|
org.spongycastle.crypto.paddings |
Paddings for symmetric ciphers.
|
org.spongycastle.crypto.params |
Classes for parameter objects for ciphers and generators.
|
org.spongycastle.crypto.signers |
Basic signers.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
ECGKeyExchange.signPubKey(Digest digest,
byte[] encodedPubKey,
APrioriInfo sharedInfo,
boolean isInitiator) |
static boolean |
ECGKeyExchange.verifyPubKey(Digest digest,
byte[] signedPubKey,
APrioriInfo sharedInfo,
boolean isInitiator) |
Constructor and Description |
---|
APrioriInfo(java.lang.String S1,
java.lang.String S2)
Defines the two parameters for constructor which are the a priori
shared information S1 & S2, the values cannot be empty
|
Modifier and Type | Method and Description |
---|---|
void |
ISAACRandomGenerator.addSeedMaterial(byte[] seed) |
void |
ISAACRandomGenerator.addSeedMaterial(long seed) |
int |
SDFGenerator.generateBytes(byte[] out,
int outOff,
int len)
Fill the length bytes specified of the output buffer with bytes generated from
the seed derivation function (SDF).
|
void |
ISAACRandomGenerator.init(byte[] seed)
Initialize the ISAAC random generator with an initial seed value.
|
Constructor and Description |
---|
SDFParameters(java.lang.String S1,
java.lang.String S2)
Defines the two parameters for the SDF which are the shared
information S1 & S2, the values cannot be empty
|
Modifier and Type | Method and Description |
---|---|
int |
BufferedBlockCipher.doFinal(byte[] out,
int outOff)
Process the last block in the buffer.
|
int |
Mac.doFinal(byte[] out,
int outOff)
Compute the final stage of the MAC writing the output to the out
parameter.
|
int |
DerivationFunction.generateBytes(byte[] out,
int outOff,
int len) |
byte[] |
Signer.generateSignature()
generate a signature for the message we've been loaded with using
the key we were initialised with.
|
int |
BlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
BufferedBlockCipher.processByte(byte in,
byte[] out,
int outOff)
process a single byte, producing an output block if neccessary.
|
void |
StreamBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
process a block of bytes from in putting the result into out.
|
int |
BufferedBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
process an array of bytes, producing output if necessary.
|
void |
StreamCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
process a block of bytes from in putting the result into out.
|
void |
Mac.update(byte[] in,
int inOff,
int len) |
Modifier and Type | Method and Description |
---|---|
int |
DHKEKGenerator.generateBytes(byte[] out,
int outOff,
int len) |
int |
ECDHKEKGenerator.generateBytes(byte[] out,
int outOff,
int len) |
Modifier and Type | Method and Description |
---|---|
int |
SEEDEngine.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
int |
NullEngine.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
int |
CamelliaEngine.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
void |
HC256Engine.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
void |
HC128Engine.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
void |
Grainv1Engine.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
void |
Grain128Engine.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
Modifier and Type | Method and Description |
---|---|
int |
MGF1BytesGenerator.generateBytes(byte[] out,
int outOff,
int len)
fill len bytes of the output buffer with bytes generated from
the derivation function.
|
int |
BaseKDFBytesGenerator.generateBytes(byte[] out,
int outOff,
int len)
fill len bytes of the output buffer with bytes generated from
the derivation function.
|
Modifier and Type | Method and Description |
---|---|
int |
VMPCMac.doFinal(byte[] out,
int outOff) |
int |
GOST28147Mac.doFinal(byte[] out,
int outOff) |
int |
MacCFBBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
void |
VMPCMac.update(byte[] in,
int inOff,
int len) |
void |
GOST28147Mac.update(byte[] in,
int inOff,
int len) |
Modifier and Type | Method and Description |
---|---|
private int |
CBCBlockCipher.decryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate chaining step for CBC mode decryption.
|
private int |
OpenPGPCFBBlockCipher.decryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB IV mode decryption.
|
int |
CFBBlockCipher.decryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB mode decryption.
|
private int |
PGPCFBBlockCipher.decryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB mode decryption.
|
private int |
PGPCFBBlockCipher.decryptBlockWithIV(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB IV mode decryption.
|
int |
PaddedBlockCipher.doFinal(byte[] out,
int outOff)
Deprecated.
Process the last block in the buffer.
|
int |
CTSBlockCipher.doFinal(byte[] out,
int outOff)
Process the last block in the buffer.
|
private int |
CBCBlockCipher.encryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate chaining step for CBC mode encryption.
|
private int |
OpenPGPCFBBlockCipher.encryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB IV mode encryption.
|
int |
CFBBlockCipher.encryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB mode encryption.
|
private int |
PGPCFBBlockCipher.encryptBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB mode encryption.
|
private int |
PGPCFBBlockCipher.encryptBlockWithIV(byte[] in,
int inOff,
byte[] out,
int outOff)
Do the appropriate processing for CFB IV mode encryption.
|
private int |
GCMBlockCipher.process(byte in,
byte[] out,
int outOff) |
int |
GOFBBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
SICBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
int |
CBCBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
OFBBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
OpenPGPCFBBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
CFBBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
PGPCFBBlockCipher.processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
Process one block of input from the array in and write it to
the out array.
|
int |
PaddedBlockCipher.processByte(byte in,
byte[] out,
int outOff)
Deprecated.
process a single byte, producing an output block if neccessary.
|
int |
CTSBlockCipher.processByte(byte in,
byte[] out,
int outOff)
process a single byte, producing an output block if neccessary.
|
int |
AEADBlockCipher.processByte(byte in,
byte[] out,
int outOff)
encrypt/decrypt a single byte.
|
int |
CCMBlockCipher.processByte(byte in,
byte[] out,
int outOff) |
int |
GCMBlockCipher.processByte(byte in,
byte[] out,
int outOff) |
int |
EAXBlockCipher.processByte(byte in,
byte[] out,
int outOff) |
int |
PaddedBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
Deprecated.
process an array of bytes, producing output if necessary.
|
int |
CTSBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
process an array of bytes, producing output if necessary.
|
int |
AEADBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
process a block of bytes from in putting the result into out.
|
int |
CCMBlockCipher.processBytes(byte[] in,
int inOff,
int inLen,
byte[] out,
int outOff) |
int |
GCMBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
int |
EAXBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff) |
Modifier and Type | Method and Description |
---|---|
int |
PaddedBufferedBlockCipher.doFinal(byte[] out,
int outOff)
Process the last block in the buffer.
|
int |
PaddedBufferedBlockCipher.processByte(byte in,
byte[] out,
int outOff)
process a single byte, producing an output block if neccessary.
|
int |
PaddedBufferedBlockCipher.processBytes(byte[] in,
int inOff,
int len,
byte[] out,
int outOff)
process an array of bytes, producing output if necessary.
|
Modifier and Type | Method and Description |
---|---|
void |
Nonce.init(byte[] seed,
int nonceLen)
Initialize the CSPRNG used by the nonce with the seed value provided so
that it is deterministic in generating random data.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
GenericSigner.generateSignature()
Generate a signature for the message we've been loaded with using the key
we were initialised with.
|
byte[] |
PSSSigner.generateSignature()
generate a signature for the message we've been loaded with using
the key we were initialised with.
|
byte[] |
RSADigestSigner.generateSignature()
Generate a signature for the message we've been loaded with using the key
we were initialised with.
|