|
@@ -32,17 +32,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
32
|
32
|
*
|
33
|
33
|
*/
|
34
|
34
|
|
35
|
|
-/** Basic AES blocksize */
|
36
|
|
-#define AES_BLOCKSIZE 16
|
37
|
|
-
|
38
|
|
-/** AES context */
|
39
|
|
-struct aes_context {
|
40
|
|
- /** AES context for AXTLS */
|
41
|
|
- AES_CTX axtls_ctx;
|
42
|
|
- /** Cipher is being used for decrypting */
|
43
|
|
- int decrypting;
|
44
|
|
-};
|
45
|
|
-
|
46
|
35
|
/**
|
47
|
36
|
* Set key
|
48
|
37
|
*
|
|
@@ -154,7 +143,7 @@ static void aes_decrypt ( void *ctx, const void *src, void *dst,
|
154
|
143
|
}
|
155
|
144
|
|
156
|
145
|
/** Basic AES algorithm */
|
157
|
|
-static struct cipher_algorithm aes_algorithm = {
|
|
146
|
+struct cipher_algorithm aes_algorithm = {
|
158
|
147
|
.name = "aes",
|
159
|
148
|
.ctxsize = sizeof ( struct aes_context ),
|
160
|
149
|
.blocksize = AES_BLOCKSIZE,
|