From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 8 07:20:04 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 937171065677 for ; Sun, 8 Aug 2010 07:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5173C8FC18 for ; Sun, 8 Aug 2010 07:20:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o787K4uV037712 for ; Sun, 8 Aug 2010 07:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o787K44i037711; Sun, 8 Aug 2010 07:20:04 GMT (envelope-from gnats) Resent-Date: Sun, 8 Aug 2010 07:20:04 GMT Resent-Message-Id: <201008080720.o787K44i037711@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Hughes Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5376106566B for ; Sun, 8 Aug 2010 07:17:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id D469B8FC12 for ; Sun, 8 Aug 2010 07:17:44 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o787Hikk020301 for ; Sun, 8 Aug 2010 07:17:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o787Hi62020300; Sun, 8 Aug 2010 07:17:44 GMT (envelope-from nobody) Message-Id: <201008080717.o787Hi62020300@www.freebsd.org> Date: Sun, 8 Aug 2010 07:17:44 GMT From: Alan Hughes To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/149412: bdes in CFB/OFB modes can't decrypt own output X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2010 07:20:04 -0000 >Number: 149412 >Category: bin >Synopsis: bdes in CFB/OFB modes can't decrypt own output >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 08 07:20:04 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Alan Hughes >Release: 8.1 amd64/i386 >Organization: n/a >Environment: multiple, including release 8.1 amd64 CD in fixit environment also tested several stable amd64 and i386 with same results >Description: encrypted output from bdes on CFB or OFB modes does not decrypt with bdes. For some combinations of plaintext/key/mode/length decryption dumps core, all others merely fail 'nicely'. CBC(default) and ECB modes are unaffected. labeled non-critical/low-priority as these would be rarely used modes. >How-To-Repeat: opt='-f 64 -k $key' ;key=0x$(md5 -qs "testpass") ;echo "plaintext for testing bdes" |bdes $opt |bdes -d $opt replacing "-f 64" with -F or -o and other suitable length >Fix: don't use CFB or OFB modes. >Release-Note: >Audit-Trail: >Unformatted: