X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcrypto%2FAES.java;h=62ae4081440acff1fee206b966d83b41c65cb6e3;hb=12d1ca620364f4f8f478f0006f21b8c982f697fe;hp=3f6ea69abfe4b0f987e8df2bdd5985c99cddcbb3;hpb=1daa8b9192fe7ba0c1512d77b939459be8bda898;p=org.ibex.crypto.git diff --git a/src/org/ibex/crypto/AES.java b/src/org/ibex/crypto/AES.java index 3f6ea69..62ae408 100644 --- a/src/org/ibex/crypto/AES.java +++ b/src/org/ibex/crypto/AES.java @@ -38,6 +38,8 @@ public class AES implements Cipher { } } + // everything below if from BouncyCastle + /** * an implementation of the AES (Rijndael), from FIPS-197. *

@@ -97,7 +99,7 @@ public class AES implements Cipher { (byte)225, (byte)248, (byte)152, (byte)17, (byte)105, (byte)217, (byte)142, (byte)148, (byte)155, (byte)30, (byte)135, (byte)233, (byte)206, (byte)85, (byte)40, (byte)223, (byte)140, (byte)161, (byte)137, (byte)13, (byte)191, (byte)230, (byte)66, (byte)104, - (byte)65, (byte)153, (byte)45, (byte)15, (byte)176, (byte)84, (byte)187, (byte)22, + (byte)65, (byte)153, (byte)45, (byte)15, (byte)176, (byte)84, (byte)187, (byte)22 }; // The inverse S-box @@ -133,7 +135,7 @@ public class AES implements Cipher { (byte)160, (byte)224, (byte)59, (byte)77, (byte)174, (byte)42, (byte)245, (byte)176, (byte)200, (byte)235, (byte)187, (byte)60, (byte)131, (byte)83, (byte)153, (byte)97, (byte)23, (byte)43, (byte)4, (byte)126, (byte)186, (byte)119, (byte)214, (byte)38, - (byte)225, (byte)105, (byte)20, (byte)99, (byte)85, (byte)33, (byte)12, (byte)125, + (byte)225, (byte)105, (byte)20, (byte)99, (byte)85, (byte)33, (byte)12, (byte)125 }; // vector used in calculating key schedule (powers of x in GF(256))