From owner-freebsd-hackers Thu Dec 23 8: 0:40 1999 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id 4849D14BFA; Thu, 23 Dec 1999 08:00:38 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 0746E1CD81E; Thu, 23 Dec 1999 08:00:37 -0800 (PST) (envelope-from kris@hub.freebsd.org) Date: Thu, 23 Dec 1999 08:00:37 -0800 (PST) From: Kris Kennaway To: Ptacek Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: DES routines? In-Reply-To: <001501bf4aa5$45e29640$502124d8@Ptacek> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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-hackers" in the body of the message