~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 2.4.1.
[catacomb]
/
symm
/
seal.c
diff --git
a/symm/seal.c
b/symm/seal.c
index
da9d084
..
0ba56c0
100644
(file)
--- 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;
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)
}
static void gdestroy(gcipher *c)
@@
-430,7
+430,7
@@
static const gcipher_ops gops = {
};
const gccipher seal = {
};
const gccipher seal = {
- "seal", seal_keysz,
0
,
+ "seal", seal_keysz,
4
,
ginit
};
ginit
};
@@
-529,7
+529,7
@@
static const grand_ops grops = {
"seal",
GRAND_CRYPTO, 0,
grmisc, grdestroy,
"seal",
GRAND_CRYPTO, 0,
grmisc, grdestroy,
- grword, grbyte, grword, grand_range, grfill
+ grword, grbyte, grword, grand_
default
range, grfill
};
/* --- @seal_rand@ --- *
};
/* --- @seal_rand@ --- *