This function is used in the implementation of GCM mode.
Modifier and Type | Field and Description |
---|---|
private byte[] | |
private static final int |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
private long | |
private void | |
public int | doFinal(byte[] in, int inOfs, int inLen, byte[] out, int outOfs)
Implements com. |
public int | doFinal(ByteBuffer src, ByteBuffer dst)
Implements com. |
pack-priv String | getFeedback()
Gets the name of the feedback mechanism
|
public int | update(byte[] in, int inOfs, int inLen, byte[] out, int outOfs)
Implements com. |
public int | update(byte[] in, int inOfs, int inLen, ByteBuffer dst)
Implements com. |
public int | update(ByteBuffer src, ByteBuffer dst)
Implements com. |
block | back to summary |
---|---|
private byte[] block |
MAX_LEN | back to summary |
---|---|
private static final int MAX_LEN |
GCTR | back to summary |
---|---|
pack-priv GCTR(SymmetricCipher cipher, byte[] initialCounterBlk) |
blocksUntilRollover | back to summary |
---|---|
private long blocksUntilRollover() |
checkBlock | back to summary |
---|---|
private void checkBlock() |
doFinal | back to summary |
---|---|
public int doFinal(byte[] in, int inOfs, int inLen, byte[] out, int outOfs) Implements com. doFinal operation by using update() for any full block operations needed, then operating on the final bytes in the input buffer. This method will not write any block padding to the output buffer |
doFinal | back to summary |
---|---|
public int doFinal(ByteBuffer src, ByteBuffer dst) Implements com. doFinal operation by using update() for any full block operations needed, then operating on the final bytes in the input buffer. If src and dst are array-backed bytebuffers, call doFinal(byte[]...) for less memory usage. |
getFeedback | back to summary |
---|---|
pack-priv String getFeedback() Overrides com. Doc from com. Gets the name of the feedback mechanism |
update | back to summary |
---|---|
public int update(byte[] in, int inOfs, int inLen, byte[] out, int outOfs) Implements com. Using the given inLen, this operates only on blockSize data, leaving the remainder in 'in'. The return value will be (inLen - (inLen % blockSize)) |
update | back to summary |
---|---|
public int update(byte[] in, int inOfs, int inLen, ByteBuffer dst) Implements com. Operate on only blocksize data leaving the remainder in 'in' . |
update | back to summary |
---|---|
public int update(ByteBuffer src, ByteBuffer dst) Implements com. Operate on only blocksize data leaving the remainder in the src buffer. |