| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Prepare for assembly gcm_gf_mul_8.
|
| |
|
| |
|
| |
|
|
|
|
| |
pointer arguments.
|
|
|
|
| |
Rev: nettle/gcm.c:1.15
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GCM_AUTH): ...old name.
* gcm-aes.c (gcm_aes_update): Renamed, from...
(gcm_aes_auth): ...old name.
* gcm.c (gcm_update): Renamed, and fixed an assert. From...
(gcm_auth): ...old name.
Rev: nettle/ChangeLog:1.150
Rev: nettle/gcm-aes.c:1.3
Rev: nettle/gcm.c:1.14
Rev: nettle/gcm.h:1.11
|
|
|
|
|
|
|
|
|
| |
(gcm_set_iv): Added support for IVs of arbitrary size. Needed
another argument, for the hash subkey.
(gcm_digest): Use gcm_hash_sizes.
Rev: nettle/gcm.c:1.13
Rev: nettle/gcm.h:1.8
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gcm_key *.
(gcm_hash): Replaced context argument by a struct gcm_key * and a
pointer to the hashing state block.
(gcm_auth): Added struct gcm_key * argument.
(gcm_encrypt): Likewise.
(gcm_decrypt): Likewise.
(gcm_digest): Likewise.
* gcm.h (struct gcm_key): Moved the key-dependent and
message-independent state to its own struct.
(struct gcm_ctx): ... and removed it here.
(GCM_CTX): New macro.
(GCM_SET_KEY): Likewise.
(GCM_AUTH): Likewise.
(GCM_ENCRYPT): Likewise.
(GCM_DECRYPT): Likewise.
(GCM_DIGEST): Likewise.
(struct gcm_aes_ctx): New struct.
Rev: nettle/ChangeLog:1.142
Rev: nettle/gcm.c:1.12
Rev: nettle/gcm.h:1.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(gcm_gf_mul): Compile bitwise version only when GCM_TABLE_BITS ==
0. Simplified interface with just two arguments pointing to
complete blocks.
(gcm_gf_shift_4, gcm_gf_shift_8): Renamed table-based functions, from...
(gcm_gf_shift_chunk): ... old name.
(gcm_gf_mul): Renamed both table-based versions and made the
argument types compatible with the bitwise gcm_gf_mul.
(gcm_gf_mul_chunk): ... the old name.
(gcm_set_key): Initialize the table using adds and shifts only.
When GCM_TABLE_BITS > 0, this eliminates the only use of the
bitwise multiplication.
(gcm_hash): Simplified, now that we have the same interface for
gcm_gf_mul, regardless of table size.
Rev: nettle/ChangeLog:1.140
Rev: nettle/gcm.c:1.11
|
|
|
|
|
|
|
|
| |
(gcm_gf_shift_chunk): Fixed bugs for the big endian 64-bit case,
e.g., sparc64. For both 4-bit and 8-bit tables.
Rev: nettle/ChangeLog:1.139
Rev: nettle/gcm.c:1.10
|
|
|
|
|
|
|
|
| |
* gcm.h (union gcm_block): New union, used to enforce alignment.
Rev: nettle/ChangeLog:1.138
Rev: nettle/gcm.c:1.9
Rev: nettle/gcm.h:1.5
|
|
|
|
|
|
|
| |
tables.
Rev: nettle/ChangeLog:1.137
Rev: nettle/gcm.c:1.8
|
|
|
|
|
|
|
|
|
| |
(gcm_gf_add): New function, a special case of memxor. Use it for
all memxor calls with word-aligned 16 byte blocks. Improves
performance to 152 cycles/byte with no tables, 28 cycles per byte
with 4-bit tables and 10.5 cycles per byte with 8-bit tables.
Rev: nettle/gcm.c:1.7
|
|
|
|
|
|
|
| |
(gcm_gf_mul_chunk): Likewise.
(gcm_set_key): Generate 8-bit tables.
Rev: nettle/gcm.c:1.6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
byte (still on intel x86_64).
* gcm.c (gcm_gf_shift): Renamed. Tweaked little-endian masks.
(gcm_rightshift): ... old name.
(gcm_gf_mul): New argument for the output. Added length argument
for one of the inputs (implicitly padding with zeros).
(shift_table): New table (in 4-bit and 8-bit versions), generated
by gcmdata.
(gcm_gf_shift_chunk): New function shifting 4 bits at
a time.
(gcm_gf_mul_chunk): New function processing 4 bits at a time.
(gcm_set_key): Generation of 4-bit key table.
(gcm_hash): Use tables, when available.
Rev: nettle/gcm.c:1.5
|
|
|
|
|
|
|
|
| |
bit here.
(gcm_gf_mul): Updated for gcm_rightshift change. Improves gmac
performance to 181 cycles/byte.
Rev: nettle/gcm.c:1.4
|
|
|
|
|
|
|
| |
specification, but with separate byte and bit loops. Improves gmac
performance a bit further, to 227 cycles/byte.
Rev: nettle/gcm.c:1.3
|
|
|
|
|
|
|
| |
than byte operations. Improves gmac performance from 830 cycles /
byte to (still poor) 268 cycles per byte on intel x86_64.
Rev: nettle/gcm.c:1.2
|
|
* gcm.h: New file.
Rev: nettle/gcm.c:1.1
Rev: nettle/gcm.h:1.1
|