Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75891
b: refs/heads/master
c: 89e1265
h: refs/heads/master
i:
  75889: 65689df
  75887: 27ac0ec
v: v3
  • Loading branch information
Sebastian Siewior authored and Herbert Xu committed Jan 10, 2008
1 parent baf6eaf commit f62e115
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1901f1fc710ec0fc482a7c98ee4552874139f39
refs/heads/master: 89e12654312dddbbdbf17b5adc95b22cb672f947
7 changes: 1 addition & 6 deletions trunk/arch/s390/crypto/aes_s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@
*
*/

#include <crypto/aes.h>
#include <crypto/algapi.h>
#include <linux/module.h>
#include <linux/init.h>
#include "crypt_s390.h"

#define AES_MIN_KEY_SIZE 16
#define AES_MAX_KEY_SIZE 32

/* data block size for all key lengths */
#define AES_BLOCK_SIZE 16

#define AES_KEYLEN_128 1
#define AES_KEYLEN_192 2
#define AES_KEYLEN_256 4
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/x86/crypto/aes_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
*/

#include <asm/byteorder.h>
#include <crypto/aes.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
Expand All @@ -48,9 +49,6 @@
asmlinkage void aes_enc_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
asmlinkage void aes_dec_blk(struct crypto_tfm *tfm, u8 *dst, const u8 *src);

#define AES_MIN_KEY_SIZE 16
#define AES_MAX_KEY_SIZE 32
#define AES_BLOCK_SIZE 16
#define AES_KS_LENGTH 4 * AES_BLOCK_SIZE
#define RC_LENGTH 29

Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/x86/crypto/aes_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,14 @@
*/

#include <asm/byteorder.h>
#include <crypto/aes.h>
#include <linux/bitops.h>
#include <linux/crypto.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>

#define AES_MIN_KEY_SIZE 16
#define AES_MAX_KEY_SIZE 32

#define AES_BLOCK_SIZE 16

/*
* #define byte(x, nr) ((unsigned char)((x) >> (nr*8)))
*/
Expand Down
6 changes: 1 addition & 5 deletions trunk/crypto/aes_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,14 @@
s/RIJNDAEL(d_key)/D_KEY/g
*/

#include <crypto/aes.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/crypto.h>
#include <asm/byteorder.h>

#define AES_MIN_KEY_SIZE 16
#define AES_MAX_KEY_SIZE 32

#define AES_BLOCK_SIZE 16

/*
* #define byte(x, nr) ((unsigned char)((x) >> (nr*8)))
*/
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/crypto/geode-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/crypto.h>
#include <linux/spinlock.h>
#include <crypto/algapi.h>
#include <crypto/aes.h>

#include <asm/io.h>
#include <asm/delay.h>
Expand Down
4 changes: 1 addition & 3 deletions trunk/drivers/crypto/padlock-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
*/

#include <crypto/algapi.h>
#include <crypto/aes.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
Expand All @@ -53,9 +54,6 @@
#include <asm/byteorder.h>
#include "padlock.h"

#define AES_MIN_KEY_SIZE 16 /* in uint8_t units */
#define AES_MAX_KEY_SIZE 32 /* ditto */
#define AES_BLOCK_SIZE 16 /* ditto */
#define AES_EXTENDED_KEY_SIZE 64 /* in uint32_t units */
#define AES_EXTENDED_KEY_SIZE_B (AES_EXTENDED_KEY_SIZE * sizeof(uint32_t))

Expand Down
15 changes: 15 additions & 0 deletions trunk/include/crypto/aes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Common values for AES algorithms
*/

#ifndef _CRYPTO_AES_H
#define _CRYPTO_AES_H

#define AES_MIN_KEY_SIZE 16
#define AES_MAX_KEY_SIZE 32
#define AES_KEYSIZE_128 16
#define AES_KEYSIZE_192 24
#define AES_KEYSIZE_256 32
#define AES_BLOCK_SIZE 16

#endif

0 comments on commit f62e115

Please sign in to comment.