|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
interface AbstractAES
This interface specifies the Advanced Encryption Standard (AES) cipher. AES is documented in Federal Information Processing Standards Publication (FIPS PUB) 197. Implementations should include a constructor of the form
AES(byte[] z) that constructs an AES
cipher using a specific 128-, 192- or 256-bit (i.e. 16-, 24- or 32-byte)
secret key z. The constructor should throw
IllegalArgumentException if the length of z is not 128,
192 or 256 bits (i.e. 16, 24 or 32 bytes); otherwise, it should generate the
key schedule w expanded from z.
| Method Summary | |
|---|---|
byte[] |
decrypt(byte[] y)
Decrypts a 128-bit (16-byte) ciphertext block using this AES cipher |
byte[] |
encrypt(byte[] x)
Encrypts a 128-bit (16-byte) plaintext block using this AES cipher |
| Method Detail |
|---|
byte[] encrypt(byte[] x)
x - The 128-bit (16-byte) plaintext block to be encrypted.
java.lang.IllegalArgumentException - if the plaintext block is not 128 bits (i.e. 16 bytes)byte[] decrypt(byte[] y)
y - The 128-bit (16-byte) ciphertext block to be decrypted.
java.lang.IllegalArgumentException - if the ciphertext block is not 128 bits (i.e. 16 bytes)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||