Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272411AbTHKIgi (ORCPT ); Mon, 11 Aug 2003 04:36:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272343AbTHKIgi (ORCPT ); Mon, 11 Aug 2003 04:36:38 -0400 Received: from smtp3.wanadoo.fr ([193.252.22.25]:7920 "EHLO mwinf0601.wanadoo.fr") by vger.kernel.org with ESMTP id S272411AbTHKIgh (ORCPT ); Mon, 11 Aug 2003 04:36:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 11 Aug 2003 10:38:15 +0200 From: Pascal Brisset To: James Morris Cc: Fruhwirth Clemens , , , , Subject: Re: [PATCH] loop: fixing cryptoloop troubles. In-Reply-To: References: <20030810160706.5D083400211@mwinf0501.wanadoo.fr> Message-Id: <20030811083634.B5817340013E@mwinf0601.wanadoo.fr> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 739 Lines: 18 James Morris writes: > Ok, please take into account the case where src == dst. OK, looks like there is a tricky interplay between algorithms and transforms. Cipher implementors will need documentation here, e.g. "cia_encrypt and cia_decrypt are always called with src==dst UNLESS we are running in CBC mode AND cia_ivsize!=0" (Please confirm...) Anybody who tries to bypass the scatterlist-based api by exporting and calling crypto_alg_lookup() (as I did) will get bitten badly. -- Pascal - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/