X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=crypto%2Fblkcipher.c;h=90d26c91f4e9e183b2a41363318344e3d646c20a;hb=79f920fbff566ffc9de44111eb1456a3cef310f0;hp=4a7e65c4df4dc3ac6af007efa1d136e1232be053;hpb=5be5e667a9a5d8d5553e009e67bc692d95e5916a;p=safe%2Fjmp%2Flinux-2.6 diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index 4a7e65c..90d26c9 100644 --- a/crypto/blkcipher.c +++ b/crypto/blkcipher.c @@ -124,6 +124,7 @@ int blkcipher_walk_done(struct blkcipher_desc *desc, scatterwalk_done(&walk->in, 0, nbytes); scatterwalk_done(&walk->out, 1, nbytes); +err: walk->total = nbytes; walk->nbytes = nbytes; @@ -132,7 +133,6 @@ int blkcipher_walk_done(struct blkcipher_desc *desc, return blkcipher_walk_next(desc, walk); } -err: if (walk->iv != desc->info) memcpy(desc->info, walk->iv, crypto_blkcipher_ivsize(tfm)); if (walk->buffer != walk->page) @@ -521,7 +521,7 @@ static int crypto_grab_nivcipher(struct crypto_skcipher_spawn *spawn, int err; type = crypto_skcipher_type(type); - mask = crypto_skcipher_mask(mask) | CRYPTO_ALG_GENIV; + mask = crypto_skcipher_mask(mask)| CRYPTO_ALG_GENIV; alg = crypto_alg_mod_lookup(name, type, mask); if (IS_ERR(alg))