From derby-dev-return-776-apmail-db-derby-dev-archive=db.apache.org@db.apache.org Tue Oct 19 20:03:34 2004 Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 10742 invoked from network); 19 Oct 2004 20:03:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Oct 2004 20:03:34 -0000 Received: (qmail 56753 invoked by uid 500); 19 Oct 2004 20:03:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 56689 invoked by uid 500); 19 Oct 2004 20:03:23 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 56610 invoked by uid 99); 19 Oct 2004 20:03:22 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [66.163.170.82] (HELO smtp812.mail.sc5.yahoo.com) (66.163.170.82) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 19 Oct 2004 13:03:20 -0700 Received: from unknown (HELO debrunners.com) (ddebrunner@sbcglobal.net@66.125.228.84 with plain) by smtp812.mail.sc5.yahoo.com with SMTP; 19 Oct 2004 19:42:58 -0000 Message-ID: <41756E08.9070703@debrunners.com> Date: Tue, 19 Oct 2004 12:42:00 -0700 From: Daniel John Debrunner User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: Regarding Derby42 : Do not store the encryption key length and the encryption block size in service.properties: References: <41744550.7010902@Yngvi.Org> <41754C1C.1010707@debrunners.com> <41756035.5070607@Yngvi.Org> In-Reply-To: <41756035.5070607@Yngvi.Org> X-Enigmail-Version: 0.76.8.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sunitha Kambhampati wrote: >> 2) Since default block size is provider specific (from Javadoc for >> Cipher), what does the Derby code do with the block size when an >> encrypted database is booted? Does it request an algorithm with that >> block size? Sorry, I was wrong on the provider specific block size, I was confusing the block size with the processing size in bits talked about in the overview of the Javadoc for Cipher. According to this thread, block size is an inherent value of the algorithm, thus if that is true, Derby does not need to store the block size at all. Just fetch it each time from the Cipher.getBlockSize() method. http://forum.java.sun.com/thread.jsp?forum=9&thread=281987 Dan. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBdW4IIv0S4qsbfuQRAnlBAJ9b/nDabeE4c5omRGeClPUZ0oIwiQCfRQBt aK+EI34War6DTd4jWVd+8k4= =dDd7 -----END PGP SIGNATURE-----