|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.openpgp.operator.PGPAEADUtil
| Constructor Summary | |
protected |
PGPAEADUtil()
|
| Method Summary | |
protected static long |
getChunkLength(int chunkSize)
Calculate an actual chunk length from the encoded chunk size. |
protected static byte[] |
getNonce(byte[] iv,
long chunkIndex)
Generate a nonce by xor-ing the given iv with the chunk index. |
protected static void |
xorChunkId(byte[] nonce,
long chunkIndex)
XOR the byte array with the chunk index in-place. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected PGPAEADUtil()
| Method Detail |
protected static byte[] getNonce(byte[] iv,
long chunkIndex)
iv - initialization vectorchunkIndex - chunk index
protected static void xorChunkId(byte[] nonce,
long chunkIndex)
nonce - byte arraychunkIndex - chunk indexprotected static long getChunkLength(int chunkSize)
chunkSize - encoded chunk size
|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||