X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/141c12847a1c2f8cc8db03d420551584e689fb87..HEAD:/symm/ocb3-def.h diff --git a/symm/ocb3-def.h b/symm/ocb3-def.h index 31293cb4..a5ee46e9 100644 --- a/symm/ocb3-def.h +++ b/symm/ocb3-def.h @@ -768,11 +768,14 @@ static gaead_key *gckey(const void *k, size_t ksz) \ return (&key->k); \ } \ \ +static int gcszok(size_t nsz, size_t hsz, size_t msz, size_t tsz) \ + { return (gaead_szokcommon(&pre##_ocb3, nsz, hsz, msz, tsz)); } \ + \ const gcaead pre##_ocb3 = { \ name "-ocb3", \ pre##_keysz, pre##_ocb3noncesz, pre##_ocb3tagsz, \ PRE##_BLKSZ, PRE##_BLKSZ - 1, 0, AEADF_PCTSZ, \ - gckey \ + gckey, gcszok \ }; \ \ OCB3_TESTX(PRE, pre, name, fname)