summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2019-07-08 22:25:39 +0200
committerNiels Möller <nisse@lysator.liu.se>2019-07-08 22:25:39 +0200
commite3cfe987b4f9687411bb055d4f09090418831139 (patch)
tree7839612072e525e22fc211d005b4d70ab97addd3
parent24ec254e441d02fba9cab6459a52a4cd32da0de2 (diff)
downloadnettle-block16-refactor.tar.gz
Mark w member of union nettle_block16 as deprecated.block16-refactor
-rw-r--r--ChangeLog1
-rw-r--r--nettle-types.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d13c5072..c385ac06 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2019-07-08 Niels Möller <nisse@lysator.liu.se>
+ * nettle-types.h (union nettle_block16): Mark w member as deprecated.
* eax.c (block16_xor): Use uint64_t member of nettle_block16.
* gcm.c (gcm_gf_add, gcm_gf_shift, gcm_gf_shift_8): Likewise.
diff --git a/nettle-types.h b/nettle-types.h
index 87292ac6..4fc0ae5e 100644
--- a/nettle-types.h
+++ b/nettle-types.h
@@ -61,7 +61,7 @@ extern "C" {
union nettle_block16
{
uint8_t b[16];
- unsigned long w[16 / sizeof(unsigned long)];
+ unsigned long w[16 / sizeof(unsigned long)] _NETTLE_ATTRIBUTE_DEPRECATED;
uint64_t u64[2];
};