From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6831 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: crypto visibility Date: Wed, 14 Jan 2015 18:58:48 +0100 Message-ID: <20150114175848.GG446@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1421258348 26228 80.91.229.3 (14 Jan 2015 17:59:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2015 17:59:08 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6844-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 14 18:59:04 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YBSDe-0001mG-Qs for gllmg-musl@m.gmane.org; Wed, 14 Jan 2015 18:59:02 +0100 Original-Received: (qmail 20074 invoked by uid 550); 14 Jan 2015 17:58:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 20066 invoked from network); 14 Jan 2015 17:58:56 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:6831 Archived-At: * Daniel Cegie??ka [2015-01-14 09:51:37 +0100]: > Can we make these functions visible? They are very useful. > it makes sense if you can convince other libc vendors to provide them with the same api (otherwise it would cause portability problems) note that the current implementation in musl is optimized for size and maintainability (the performance does not really matter for crypt unless it is used for bruteforcing passwds but an attacker would use a custom implementation anyway) performance may matter more for other applications > src/crypt/crypt_md5.c: > void md5_init() > void md5_sum() > void md5_update() > > src/crypt/crypt_sha256.c: > void sha256_init() > void sha256_sum() > void sha256_update() > > src/crypt/crypt_sha512.c: > void sha512_init() > void sha512_sum() > void sha512_update() > > Daniel