https://mailarchive.ietf.org/arch/msg/cfrg/qLTveWOdTJcLn4HP3ev-vrj05Vg/
Text reproduced below.Phillip Rogaway >[email protected]< Sat, 27 February 2021 02:46 UTCShow header I can confirm that I have abandoned all OCB patents and placed into the public domain all OCB-related IP of mine. While I have been telling people this for quite some time, I don't think I ever made a proper announcement to the CFRG or on the OCB webpage. Consider that done.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private byte[] | |
| private boolean | |
| private byte[] | |
| private long | |
| private int | |
| private BlockCipher | |
| private byte[] | |
| private byte[] | |
| private Vector | |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| private int | |
| private byte[] | |
| private long | |
| private int | |
| private BlockCipher | |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| private byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public int | doFinal(byte[]
space for any resulting output data. output, int offset into out to start copying the data at. outOff)Implements org. |
| public String | getAlgorithmName()
Implements org. |
| protected byte[] | |
| public byte[] | getMac()
Implements org. |
| public int | getOutputSize(int
the length of the input. len)Implements org. |
| public BlockCipher | getUnderlyingCipher()
Implements org. BlockCipher this object wraps.
|
| public int | getUpdateOutputSize(int
the length of the input. len)Implements org. |
| public void | init(boolean
true if we are setting up for encryption, false otherwise. forEncryption, CipherParameters the necessary parameters for the underlying cipher to be initialised. parameters)Implements org. |
| protected static byte[] | |
| protected static void | |
| protected static int | |
| public void | processAADByte(byte
the byte to be processed. input)Implements org. |
| public void | processAADBytes(byte[]
the input byte array. input, int the offset into the in array where the data to be processed starts. off, int the number of bytes to be processed. len)Implements org. |
| public int | processByte(byte
the byte to be processed. input, byte[] the output buffer the processed byte goes into. output, int the offset into the output byte array the processed data starts at. outOff)Implements org. |
| public int | processBytes(byte[]
the input byte array. input, int the offset into the in array where the data to be processed starts. inOff, int the number of bytes to be processed. len, byte[] the output buffer the processed bytes go into. output, int the offset into the output byte array the processed data starts at. outOff)Implements org. |
| protected void | |
| protected void | |
| protected int | |
| public void | |
| protected void | |
| protected static int | |
| protected void | |
| protected static void |
| BLOCK_SIZE | back to summary |
|---|---|
| private static final int BLOCK_SIZE | |
| Checksum | back to summary |
|---|---|
| private byte[] Checksum | |
| forEncryption | back to summary |
|---|---|
| private boolean forEncryption | |
| hashBlock | back to summary |
|---|---|
| private byte[] hashBlock | |
| hashBlockCount | back to summary |
|---|---|
| private long hashBlockCount | |
| hashBlockPos | back to summary |
|---|---|
| private int hashBlockPos | |
| hashCipher | back to summary |
|---|---|
| private BlockCipher hashCipher | |
| initialAssociatedText | back to summary |
|---|---|
| private byte[] initialAssociatedText | |
| KtopInput | back to summary |
|---|---|
| private byte[] KtopInput | |
| L | back to summary |
|---|---|
| private Vector<E> L | |
| L_Asterisk | back to summary |
|---|---|
| private byte[] L_Asterisk | |
| L_Dollar | back to summary |
|---|---|
| private byte[] L_Dollar | |
| macBlock | back to summary |
|---|---|
| private byte[] macBlock | |
| macSize | back to summary |
|---|---|
| private int macSize | |
| mainBlock | back to summary |
|---|---|
| private byte[] mainBlock | |
| mainBlockCount | back to summary |
|---|---|
| private long mainBlockCount | |
| mainBlockPos | back to summary |
|---|---|
| private int mainBlockPos | |
| mainCipher | back to summary |
|---|---|
| private BlockCipher mainCipher | |
| OffsetHASH | back to summary |
|---|---|
| private byte[] OffsetHASH | |
| OffsetMAIN | back to summary |
|---|---|
| private byte[] OffsetMAIN | |
| OffsetMAIN_0 | back to summary |
|---|---|
| private byte[] OffsetMAIN_0 | |
| Stretch | back to summary |
|---|---|
| private byte[] Stretch | |
| Sum | back to summary |
|---|---|
| private byte[] Sum | |
| OCBBlockCipher | back to summary |
|---|---|
| public OCBBlockCipher(BlockCipher hashCipher, BlockCipher mainCipher) | |
| clear | back to summary |
|---|---|
| protected void clear(byte[] bs) | |
| doFinal | back to summary |
|---|---|
| public int doFinal(byte[] output, int outOff) throws IllegalStateException, InvalidCipherTextException Implements org. Doc from org. Finish the operation either appending or verifying the MAC at the end of the data.
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName() Implements org. Doc from org. Return the name of the algorithm.
| |
| getLSub | back to summary |
|---|---|
| protected byte[] getLSub(int n) | |
| getMac | back to summary |
|---|---|
| public byte[] getMac() Implements org. Doc from org. Return the value of the MAC associated with the last stream processed.
| |
| getOutputSize | back to summary |
|---|---|
| public int getOutputSize(int len) Implements org. Doc from org. return the size of the output buffer required for a processBytes plus a doFinal with an input of len bytes.
The returned size may be dependent on the initialisation of this cipher
and may not be accurate once subsequent input data is processed - this method
should be invoked immediately prior to a call to final processing of input data
and a call to
| |
| getUnderlyingCipher | back to summary |
|---|---|
| public BlockCipher getUnderlyingCipher() Implements org. Doc from org. return the
| |
| getUpdateOutputSize | back to summary |
|---|---|
| public int getUpdateOutputSize(int len) Implements org. Doc from org. return the size of the output buffer required for a processBytes an input of len bytes. The returned size may be dependent on the initialisation of this cipher and may not be accurate once subsequent input data is processed - this method should be invoked immediately prior to input data being processed.
| |
| init | back to summary |
|---|---|
| public void init(boolean forEncryption, CipherParameters parameters) throws IllegalArgumentException Implements org. Doc from org. initialise the underlying cipher. Parameter can either be an AEADParameters or a ParametersWithIV object.
| |
| OCB_double | back to summary |
|---|---|
| protected static byte[] OCB_double(byte[] block) | |
| OCB_extend | back to summary |
|---|---|
| protected static void OCB_extend(byte[] block, int pos) | |
| OCB_ntz | back to summary |
|---|---|
| protected static int OCB_ntz(long x) | |
| processAADByte | back to summary |
|---|---|
| public void processAADByte(byte input) Implements org. Doc from org. Add a single byte to the associated data check.
| |
| processAADBytes | back to summary |
|---|---|
| public void processAADBytes(byte[] input, int off, int len) Implements org. Doc from org. Add a sequence of bytes to the associated data check.
| |
| processByte | back to summary |
|---|---|
| public int processByte(byte input, byte[] output, int outOff) throws DataLengthException Implements org. Doc from org. encrypt/decrypt a single byte.
| |
| processBytes | back to summary |
|---|---|
| public int processBytes(byte[] input, int inOff, int len, byte[] output, int outOff) throws DataLengthException Implements org. Doc from org. process a block of bytes from in putting the result into out.
| |
| processHashBlock | back to summary |
|---|---|
| protected void processHashBlock() | |
| processMainBlock | back to summary |
|---|---|
| protected void processMainBlock(byte[] output, int outOff) | |
| processNonce | back to summary |
|---|---|
| protected int processNonce(byte[] N) | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the cipher. After resetting the cipher is in the same state as it was after the last init (if there was one). | |
| reset | back to summary |
|---|---|
| protected void reset(boolean clearMac) | |
| shiftLeft | back to summary |
|---|---|
| protected static int shiftLeft(byte[] block, byte[] output) | |
| updateHASH | back to summary |
|---|---|
| protected void updateHASH(byte[] LSub) | |
| xor | back to summary |
|---|---|
| protected static void xor(byte[] block, byte[] val) | |