Merge branch '2.5.x'
[catacomb] / symm / latinpoly.c
index de73025..29ba71a 100644 (file)
@@ -48,12 +48,15 @@ const octet
 
 /* AAD handling. */
 
-void latinpoly_aadhash(gaead_aad *a, const void *h, size_t hsz)
+void latinpoly_aadhash_poly1305(gaead_aad *a, const void *h, size_t hsz)
 {
   latinpoly_aad *aad = (latinpoly_aad *)a;
   poly1305_hash(&aad->poly, h, hsz);
 }
 
+void latinpoly_aadhash_naclbox(gaead_aad *a, const void *h, size_t hsz)
+  { assert(!hsz); }
+
 void latinpoly_aaddestroy(gaead_aad *a) { ; }
 
 /* --- @latinpoly_tag@ --- *