@Deprecated
public class OCBBlockCipher_v149
extends java.lang.Object
implements org.bouncycastle.crypto.modes.AEADBlockCipher
License for Open-Source Software Implementations of OCB (Jan 9, 2013) — “License 1”
Under this license, you are authorized to make, use, and distribute open-source software implementations of OCB. This license terminates for you if you sue someone over their open-source software implementation of OCB claiming that you have a patent covering their implementation. This is a non-binding summary of a legal document (the link above). The parameters of the license are specified in the license document and that document is controlling.
Constructor and Description |
---|
OCBBlockCipher_v149(org.bouncycastle.crypto.BlockCipher hashCipher,
org.bouncycastle.crypto.BlockCipher mainCipher)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
clear(byte[] bs)
Deprecated.
|
int |
doFinal(byte[] output,
int outOff)
Deprecated.
|
java.lang.String |
getAlgorithmName()
Deprecated.
|
protected byte[] |
getLSub(int n)
Deprecated.
|
byte[] |
getMac()
Deprecated.
|
int |
getOutputSize(int len)
Deprecated.
|
org.bouncycastle.crypto.BlockCipher |
getUnderlyingCipher()
Deprecated.
|
int |
getUpdateOutputSize(int len)
Deprecated.
|
void |
init(boolean forEncryption,
org.bouncycastle.crypto.CipherParameters parameters)
Deprecated.
|
protected static byte[] |
OCB_double(byte[] block)
Deprecated.
|
protected static void |
OCB_extend(byte[] block,
int pos)
Deprecated.
|
protected static int |
OCB_ntz(long x)
Deprecated.
|
void |
processAADByte(byte input)
Deprecated.
|
void |
processAADBytes(byte[] input,
int off,
int len)
Deprecated.
|
int |
processByte(byte input,
byte[] output,
int outOff)
Deprecated.
|
int |
processBytes(byte[] input,
int inOff,
int len,
byte[] output,
int outOff)
Deprecated.
|
protected void |
processHashBlock()
Deprecated.
|
protected void |
processMainBlock(byte[] output,
int outOff)
Deprecated.
|
void |
reset()
Deprecated.
|
protected void |
reset(boolean clearMac)
Deprecated.
|
protected static int |
shiftLeft(byte[] block,
byte[] output)
Deprecated.
|
protected void |
updateHASH(byte[] LSub)
Deprecated.
|
protected static void |
xor(byte[] block,
byte[] val)
Deprecated.
|
public OCBBlockCipher_v149(org.bouncycastle.crypto.BlockCipher hashCipher, org.bouncycastle.crypto.BlockCipher mainCipher)
public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher()
getUnderlyingCipher
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public java.lang.String getAlgorithmName()
getAlgorithmName
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public void init(boolean forEncryption, org.bouncycastle.crypto.CipherParameters parameters) throws java.lang.IllegalArgumentException
init
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
java.lang.IllegalArgumentException
public byte[] getMac()
getMac
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public int getOutputSize(int len)
getOutputSize
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public int getUpdateOutputSize(int len)
getUpdateOutputSize
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public void processAADByte(byte input)
processAADByte
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public void processAADBytes(byte[] input, int off, int len)
processAADBytes
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
public int processByte(byte input, byte[] output, int outOff) throws org.bouncycastle.crypto.DataLengthException
processByte
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
org.bouncycastle.crypto.DataLengthException
public int processBytes(byte[] input, int inOff, int len, byte[] output, int outOff) throws org.bouncycastle.crypto.DataLengthException
processBytes
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
org.bouncycastle.crypto.DataLengthException
public int doFinal(byte[] output, int outOff) throws java.lang.IllegalStateException, org.bouncycastle.crypto.InvalidCipherTextException
doFinal
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
java.lang.IllegalStateException
org.bouncycastle.crypto.InvalidCipherTextException
public void reset()
reset
in interface org.bouncycastle.crypto.modes.AEADBlockCipher
protected void clear(byte[] bs)
protected byte[] getLSub(int n)
protected void processHashBlock()
protected void processMainBlock(byte[] output, int outOff)
protected void reset(boolean clearMac)
protected void updateHASH(byte[] LSub)
protected static byte[] OCB_double(byte[] block)
protected static void OCB_extend(byte[] block, int pos)
protected static int OCB_ntz(long x)
protected static int shiftLeft(byte[] block, byte[] output)
protected static void xor(byte[] block, byte[] val)