Commit 6d7406b3 authored by Niels Möller's avatar Niels Möller
Browse files

* asm.m4: Use eval to compute values.

* asm.m4: Added constants for individual rows of the aes table.

* asm.m4: Define various aes struct offsets.

Rev: src/nettle/asm.m4:1.4
parent 6857a913
dnl FIXME: Add some struct macros similar to the once used in Amiga assemblers
dnl Offsets in aes_ctx and aes_table
define(AES_KEYS, 0)dnl
define(AES_NROUNDS, 240)dnl
define(AES_KEYS, 0)dnl
define(AES_NROUNDS, 240)dnl
define(AES_SBOX, 0)dnl
define(AES_IDX1, 256)dnl
define(AES_IDX2, 272)dnl
define(AES_IDX3, 288)dnl
define(AES_TABLE0, 304)dnl
define(AES_TABLE1, 1328)dnl
define(AES_TABLE2, 2352)dnl
define(AES_TABLE3, 3376)dnl
define(AES_SBOX_SIZE, 256)dnl
define(AES_IDX_SIZE, 16)dnl
define(AES_TABLE_SIZE, 1024)dnl
define(AES_SBOX, 0)dnl
define(AES_IDX1, AES_SBOX_SIZE)dnl
define(AES_IDX2, eval(AES_IDX1 + AES_IDX_SIZE))dnl
define(AES_IDX3, eval(AES_IDX2 + AES_IDX_SIZE))dnl
define(AES_TABLE0, eval(AES_IDX3 + AES_IDX_SIZE))dnl
define(AES_TABLE1, eval(AES_TABLE0 + AES_TABLE_SIZE))dnl
define(AES_TABLE2, eval(AES_TABLE1 + AES_TABLE_SIZE))dnl
define(AES_TABLE3, eval(AES_TABLE2 + AES_TABLE_SIZE))dnl
dnl define(AES_SIDX1, 304)dnl
dnl define(AES_SIDX2, 320)dnl
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment