forked from wolfSSL/wolfssl
move Coldfire SEC specific DES/3DES header sections into define
This commit is contained in:
@ -63,18 +63,22 @@ enum {
|
|||||||
typedef struct Des {
|
typedef struct Des {
|
||||||
word32 reg[DES_BLOCK_SIZE / sizeof(word32)]; /* for CBC mode */
|
word32 reg[DES_BLOCK_SIZE / sizeof(word32)]; /* for CBC mode */
|
||||||
word32 tmp[DES_BLOCK_SIZE / sizeof(word32)]; /* same */
|
word32 tmp[DES_BLOCK_SIZE / sizeof(word32)]; /* same */
|
||||||
|
#ifdef HAVE_COLDFIRE_SEC
|
||||||
byte keylen ; /* for Coldfire SEC */
|
byte keylen ; /* for Coldfire SEC */
|
||||||
byte ivlen ; /* for Coldfire SEC */
|
byte ivlen ; /* for Coldfire SEC */
|
||||||
byte iv[DES3_IVLEN]; /* for Coldfire SEC */
|
byte iv[DES3_IVLEN]; /* for Coldfire SEC */
|
||||||
|
#endif
|
||||||
word32 key[DES_KS_SIZE];
|
word32 key[DES_KS_SIZE];
|
||||||
} Des;
|
} Des;
|
||||||
|
|
||||||
|
|
||||||
/* DES3 encryption and decryption */
|
/* DES3 encryption and decryption */
|
||||||
typedef struct Des3 {
|
typedef struct Des3 {
|
||||||
|
#ifdef HAVE_COLDFIRE_SEC
|
||||||
byte keylen ; /* for Coldfire SEC */
|
byte keylen ; /* for Coldfire SEC */
|
||||||
byte ivlen ; /* for Coldfire SEC */
|
byte ivlen ; /* for Coldfire SEC */
|
||||||
byte iv[DES3_IVLEN]; /* for Coldfire SEC */
|
byte iv[DES3_IVLEN]; /* for Coldfire SEC */
|
||||||
|
#endif
|
||||||
word32 key[3][DES_KS_SIZE];
|
word32 key[3][DES_KS_SIZE];
|
||||||
word32 reg[DES_BLOCK_SIZE / sizeof(word32)]; /* for CBC mode */
|
word32 reg[DES_BLOCK_SIZE / sizeof(word32)]; /* for CBC mode */
|
||||||
word32 tmp[DES_BLOCK_SIZE / sizeof(word32)]; /* same */
|
word32 tmp[DES_BLOCK_SIZE / sizeof(word32)]; /* same */
|
||||||
|
Reference in New Issue
Block a user