]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
New constant OCB_MAX_NONCE_SIZE.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 25 Mar 2023 16:24:43 +0000 (17:24 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 25 Mar 2023 16:24:43 +0000 (17:24 +0100)
ChangeLog
ocb.h

index c48b823dcb3c22124d6765e8031a026e2b2aa23b..07f7bb84542e0722092b14cf4c6bb69d6f2643e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2023-03-25  Niels Möller  <nisse@lysator.liu.se>
+
+       * ocb.h (OCB_MAX_NONCE_SIZE): New constant.
+
 2023-02-16  Niels Möller  <nisse@lysator.liu.se>
 
        * x86_64/sha256-compress-n.asm: Fix incorrect w64 setup. Report
diff --git a/ocb.h b/ocb.h
index 8d79cdf683f38e99a431dc46626c53c1375c3f3e..dbcf4c8aaceb4373d9d6607fce543c8ddf44a3fb 100644 (file)
--- a/ocb.h
+++ b/ocb.h
@@ -62,6 +62,7 @@ extern "C" {
 
 #define OCB_BLOCK_SIZE 16
 #define OCB_DIGEST_SIZE 16
+#define OCB_MAX_NONCE_SIZE 15
 
 struct ocb_key {
   /* L_*, L_$ and L_0, and one reserved entry */