From owner-freebsd-questions Thu Dec 23 9:41:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from guppy.pond.net (guppy.pond.net [205.240.25.2]) by hub.freebsd.org (Postfix) with ESMTP id 6E35214F4E; Thu, 23 Dec 1999 09:41:34 -0800 (PST) (envelope-from ptacek@dashmail.net) Received: from Ptacek (rc1s7p8.dashmail.net [216.36.33.80]) by guppy.pond.net (8.9.3/8.9.3) with SMTP id JAA13600; Thu, 23 Dec 1999 09:33:58 -0800 (PST) Message-ID: <037901bf4d6c$b5db0620$502124d8@Ptacek> From: "Ptacek" To: "Kris Kennaway" Cc: , References: Subject: Re: DES routines? Date: Thu, 23 Dec 1999 09:39:48 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yes. I have to interface to an existing system that is encrypting its data using the ECB format. Thanks for the info, by the way I found the ecb_crypt by doing a man des_crypt. Thanks, Chris ----- Original Message ----- From: Kris Kennaway To: Ptacek Cc: ; Sent: Thursday, December 23, 1999 8:00 AM Subject: Re: DES routines? > On Sun, 19 Dec 1999, Ptacek wrote: > > > I am looking for some routines to perform DES encryption in electronic code > > book mode. > > I assume you have some reason for wanting ECB, and not the usual (more > secure) CBC mode.. > > > I have found the ecb_cyrpt function, however when I try and use it the > > buffer is not encrypted. > > Am I missing something, do these functions not work, and is there a better > > way of doing this? > > Hmm..I can't find any documentation (manpages) on ecb_crypt, which > suggests it's a deprecated interface. You should use the des_ecb_encrypt > function and related calls as described in that manpage, as these are the > "standard FreeBSD API". Note the different calling syntax. > > Kris > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message