![]() |
Quadcap Embeddable Database |
Inheritance diagram for com.quadcap.crypto.Rijndael:

Rijndael was designed by Vincent Rijmen and Joan Daemen.
Paulo S. L. M. Barreto (pbarreto@cryptix.org)
Jeroen C. van Gelderen (gelderen@cryptix.org)
Edwin Woudt (edwin@cryptix.org)
Definition at line 74 of file Rijndael.java.
Public Member Functions | |
| Rijndael () | |
| Default constructor. | |
| void | init (String s) throws Exception |
| Initialize key from serialized representation. | |
| void | init (Random r) |
| Initialize: Create a random key. | |
| String | toString () |
| Return the serialized form of the key. | |
| void | encrypt (ByteBuffer m, ByteBuffer c) |
| Encrypt a buffer (must be multiple of 8 bytes). | |
| void | decrypt (ByteBuffer c, ByteBuffer m) |
| Decrypt a buffer (must be a multiple of 8 bytes). | |
| int | getBlockSize () |
| The key's block size. | |
Protected Member Functions | |
| void | coreInit (byte[] userKey, boolean decrypt) throws Exception |
Package Functions | |
| final void | init (byte[] k) |
| Initialize from key bytes. | |
Static Package Functions | |
| [static initializer] | |
Package Attributes | |
| byte[] | keyBytes = null |
Static Package Attributes | |
| final int | KEYSIZE = 16 |
Private Member Functions | |
| void | blockEncrypt (ByteBuffer in, ByteBuffer out) |
| Encrypt exactly one block of plaintext. | |
| void | blockDecrypt (ByteBuffer in, ByteBuffer out) |
| Decrypt exactly one block of plaintext. | |
Static Private Member Functions | |
| int[] | makeKey (byte[] keyBytes, boolean decrypt) throws Exception |
| Expand a user-supplied key material into a session key. | |
| void | invertKey (int[] K) |
| final int | getRounds (int keySize) |
| Return The number of rounds for a given Rijndael keysize. | |
Private Attributes | |
| boolean | ROUNDS_12 |
| boolean | ROUNDS_14 |
| boolean | decrypt |
| True if in decrypt mode. | |
| int[] | K |
| Subkeys. | |
| int | limit |
| (ROUNDS-1) * 4 | |
Static Private Attributes | |
| final int | BLOCK_SIZE = 16 |
| final String | SS |
| final byte[] | S |
| final int[] | T1 |
| final int[] | U1 |
| final byte[] | rcon = new byte[30] |
|
|
Default constructor.
Definition at line 80 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.init(). |
|
|
|
|
||||||||||||
|
Decrypt exactly one block of plaintext.
Definition at line 356 of file Rijndael.java. References com.quadcap.crypto.Rijndael.blockDecrypt(), com.quadcap.crypto.Rijndael.K, com.quadcap.crypto.Rijndael.ROUNDS_12, and com.quadcap.crypto.Rijndael.ROUNDS_14. Referenced by com.quadcap.crypto.Rijndael.blockDecrypt(), and com.quadcap.crypto.Rijndael.decrypt(). |
|
||||||||||||
|
Encrypt exactly one block of plaintext.
Definition at line 287 of file Rijndael.java. References com.quadcap.crypto.Rijndael.blockEncrypt(), com.quadcap.crypto.Rijndael.K, com.quadcap.crypto.Rijndael.limit, com.quadcap.crypto.Rijndael.S, and com.quadcap.crypto.Rijndael.T1. Referenced by com.quadcap.crypto.Rijndael.blockEncrypt(), and com.quadcap.crypto.Rijndael.encrypt(). |
|
||||||||||||
|
||||||||||||
|
Decrypt a buffer (must be a multiple of 8 bytes).
Implements com.quadcap.crypto.AbstractSymmetricKey. Definition at line 134 of file Rijndael.java. References com.quadcap.crypto.Rijndael.blockDecrypt(), and com.quadcap.crypto.Rijndael.decrypt. |
|
||||||||||||
|
Encrypt a buffer (must be multiple of 8 bytes).
Implements com.quadcap.crypto.AbstractSymmetricKey. Definition at line 125 of file Rijndael.java. References com.quadcap.crypto.Rijndael.blockEncrypt(), and com.quadcap.crypto.Rijndael.encrypt(). Referenced by com.quadcap.crypto.Rijndael.encrypt(). |
|
|
The key's block size.
Implements com.quadcap.crypto.AbstractSymmetricKey. Definition at line 176 of file Rijndael.java. References com.quadcap.crypto.Rijndael.BLOCK_SIZE. |
|
|
Return The number of rounds for a given Rijndael keysize.
Definition at line 614 of file Rijndael.java. References com.quadcap.crypto.Rijndael.getRounds(). Referenced by com.quadcap.crypto.Rijndael.coreInit(), com.quadcap.crypto.Rijndael.getRounds(), and com.quadcap.crypto.Rijndael.makeKey(). |
|
|
Initialize: Create a random key.
Implements com.quadcap.crypto.AbstractSymmetricKey. Definition at line 109 of file Rijndael.java. References com.quadcap.crypto.Rijndael.KEYSIZE. |
|
|
Initialize from key bytes.
Definition at line 94 of file Rijndael.java. References com.quadcap.crypto.Rijndael.coreInit(), and com.quadcap.crypto.Rijndael.Rijndael(). |
|
|
Initialize key from serialized representation.
Implements com.quadcap.crypto.AbstractSymmetricKey. Definition at line 85 of file Rijndael.java. References com.quadcap.crypto.Rijndael.init(). Referenced by com.quadcap.crypto.KeyFactory.createSymmetricKey(), and com.quadcap.crypto.Rijndael.init(). |
|
|
Definition at line 570 of file Rijndael.java. References com.quadcap.crypto.Rijndael.invertKey(), and com.quadcap.crypto.Rijndael.U1. Referenced by com.quadcap.crypto.Rijndael.coreInit(), and com.quadcap.crypto.Rijndael.invertKey(). |
|
||||||||||||
|
Expand a user-supplied key material into a session key.
Definition at line 516 of file Rijndael.java. References com.quadcap.crypto.Rijndael.getRounds(), com.quadcap.crypto.Rijndael.keyBytes, com.quadcap.crypto.Rijndael.makeKey(), com.quadcap.crypto.Rijndael.rcon, and com.quadcap.crypto.Rijndael.S. Referenced by com.quadcap.crypto.Rijndael.coreInit(), and com.quadcap.crypto.Rijndael.makeKey(). |
|
|
Return the serialized form of the key.
Implements com.quadcap.crypto.SymmetricKey. Definition at line 118 of file Rijndael.java. References com.quadcap.crypto.Rijndael.keyBytes. |
|
|
Definition at line 178 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.getBlockSize(). |
|
|
True if in decrypt mode.
Definition at line 147 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.decrypt(). |
|
|
Subkeys.
Definition at line 150 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.blockDecrypt(), com.quadcap.crypto.Rijndael.blockEncrypt(), and com.quadcap.crypto.Rijndael.coreInit(). |
|
|
Definition at line 75 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.makeKey(), and com.quadcap.crypto.Rijndael.toString(). |
|
|
Definition at line 140 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.init(). |
|
|
(ROUNDS-1) * 4
Definition at line 153 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.blockEncrypt(). |
|
|
Definition at line 218 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.makeKey(). |
|
|
Definition at line 143 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.blockDecrypt(), and com.quadcap.crypto.Rijndael.coreInit(). |
|
|
Definition at line 143 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.blockDecrypt(), and com.quadcap.crypto.Rijndael.coreInit(). |
|
|
Initial value:
Definition at line 199 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.blockEncrypt(), and com.quadcap.crypto.Rijndael.makeKey(). |
|
|
Initial value:
Definition at line 180 of file Rijndael.java. |
|
|
Initial value:
Definition at line 203 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.blockEncrypt(). |
|
|
Initial value:
Definition at line 213 of file Rijndael.java. Referenced by com.quadcap.crypto.Rijndael.invertKey(). |