MCPcopy Create free account
hub / github.com/TheAlgorithms/Java / AES

Class AES

src/main/java/com/thealgorithms/ciphers/AES.java:10–2781  ·  view source on GitHub ↗

This class is build to demonstrate the application of the AES-algorithm on a single 128-Bit block of data.

Source from the content-addressed store, hash-verified

8 * single 128-Bit block of data.
9 */
10public final class AES {
11 private AES() {
12 }
13
14 /**
15 * Precalculated values for x to the power of 2 in Rijndaels galois field.
16 * Used as 'RCON' during the key expansion.
17 */
18 private static final int[] RCON = {
19 0x8d,
20 0x01,
21 0x02,
22 0x04,
23 0x08,
24 0x10,
25 0x20,
26 0x40,
27 0x80,
28 0x1b,
29 0x36,
30 0x6c,
31 0xd8,
32 0xab,
33 0x4d,
34 0x9a,
35 0x2f,
36 0x5e,
37 0xbc,
38 0x63,
39 0xc6,
40 0x97,
41 0x35,
42 0x6a,
43 0xd4,
44 0xb3,
45 0x7d,
46 0xfa,
47 0xef,
48 0xc5,
49 0x91,
50 0x39,
51 0x72,
52 0xe4,
53 0xd3,
54 0xbd,
55 0x61,
56 0xc2,
57 0x9f,
58 0x25,
59 0x4a,
60 0x94,
61 0x33,
62 0x66,
63 0xcc,
64 0x83,
65 0x1d,
66 0x3a,
67 0x74,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected