X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/141c12847a1c2f8cc8db03d420551584e689fb87..HEAD:/symm/ocb1-def.h diff --git a/symm/ocb1-def.h b/symm/ocb1-def.h index 2820aae1..09b3824d 100644 --- a/symm/ocb1-def.h +++ b/symm/ocb1-def.h @@ -495,11 +495,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##_ocb1, nsz, hsz, msz, tsz)); } \ + \ const gcaead pre##_ocb1 = { \ name "-ocb1", \ pre##_keysz, pre##_ocb1noncesz, pre##_ocb1tagsz, \ PRE##_BLKSZ, PRE##_BLKSZ, 0, 0, \ - gckey \ + gckey, gcszok \ }; \ \ OCB1_TESTX(PRE, pre, name, fname)