Select Git revision
Forked from
Nettle / nettle
4056 commits behind the upstream repository.
-
Niels Möller authored
to sparc_idx, as it will be tweaked to improve the sparc code. Also reduced its size to [2][4]. (IDX_FACTOR): Deleted constant. * aes-encrypt-table.c (_aes_encrypt_table): Adapted initializer of sparc_idx. * aes-decrypt-table.c (_aes_decrypt_table): Likewise. * asm.m4: Deleted AES_SIDX2, to match struct aes_table. Rev: src/nettle/aes-decrypt-table.c:1.2 Rev: src/nettle/aes-encrypt-table.c:1.2 Rev: src/nettle/aes-internal.h:1.7 Rev: src/nettle/asm.m4:1.9
Niels Möller authoredto sparc_idx, as it will be tweaked to improve the sparc code. Also reduced its size to [2][4]. (IDX_FACTOR): Deleted constant. * aes-encrypt-table.c (_aes_encrypt_table): Adapted initializer of sparc_idx. * aes-decrypt-table.c (_aes_decrypt_table): Likewise. * asm.m4: Deleted AES_SIDX2, to match struct aes_table. Rev: src/nettle/aes-decrypt-table.c:1.2 Rev: src/nettle/aes-encrypt-table.c:1.2 Rev: src/nettle/aes-internal.h:1.7 Rev: src/nettle/asm.m4:1.9
asm.m4 1.07 KiB
changequote(<,>)dnl
dnl (progn (modify-syntax-entry ?< "(>") (modify-syntax-entry ?> ")<") )
dnl FORTRAN style comment character
define(<C>, <
dnl>)dnl
dnl changecom(!,<
dnl >)dnl
dnl including files from the srcdir
define(<include_src>, <include(srcdir/$1)>)dnl
dnl Struct defining macros
dnl STRUCTURE(prefix)
define(<STRUCTURE>, <define(<SOFFSET>, 0)define(<SPREFIX>, <$1>)>)dnl
dnl STRUCT(name, size)
define(<STRUCT>,
<define(SPREFIX<_>$1, SOFFSET)dnl
define(<SOFFSET>, eval(SOFFSET + ($2)))>)dnl
dnl UNSIGNED(name)
define(<UNSIGNED>, <STRUCT(<$1>, 4)>)dnl
dnl Offsets in aes_ctx and aes_table
STRUCTURE(AES)
STRUCT(KEYS, 4*60)
UNSIGNED(NROUNDS)
define(AES_SBOX_SIZE, 256)dnl
define(AES_IDX_SIZE, 16)dnl
define(AES_TABLE_SIZE, 1024)dnl
STRUCTURE(AES)
STRUCT(SBOX, AES_SBOX_SIZE)
STRUCT(IDX1, AES_IDX_SIZE)
STRUCT(IDX2, AES_IDX_SIZE)
STRUCT(IDX3, AES_IDX_SIZE)
STRUCT(SIDX1, AES_IDX_SIZE)
STRUCT(SIDX3, AES_IDX_SIZE)
STRUCT(TABLE0, AES_TABLE_SIZE)
STRUCT(TABLE1, AES_TABLE_SIZE)
STRUCT(TABLE2, AES_TABLE_SIZE)
STRUCT(TABLE3, AES_TABLE_SIZE)