X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/aa02ed367404c659ab7205ef9662ef92032d7786..3a5a9d7dc98929e8db17e3e2652ecfd06bef0c67:/symm/seal.c?ds=sidebyside diff --git a/symm/seal.c b/symm/seal.c index da9d0843..57cfc10f 100644 --- a/symm/seal.c +++ b/symm/seal.c @@ -413,8 +413,8 @@ static void gencrypt(gcipher *c, const void *s, void *t, size_t sz) static void gsetiv(gcipher *c, const void *iv) { gctx *g = (gctx *)c; - uint32 n = *(const uint32 *)iv; - seal_initctx(&g->cc, &g->k, n); + const octet *ivp = iv; + seal_initctx(&g->cc, &g->k, LOAD32(ivp)); } static void gdestroy(gcipher *c) @@ -430,7 +430,7 @@ static const gcipher_ops gops = { }; const gccipher seal = { - "seal", seal_keysz, 0, + "seal", seal_keysz, 4, ginit };