From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6843 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Daniel_Cegie=C5=82ka?= Newsgroups: gmane.linux.lib.musl.general Subject: Re: crypto visibility Date: Thu, 15 Jan 2015 22:17:48 +0100 Message-ID: References: <20150114222259.GM4574@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1421356709 21709 80.91.229.3 (15 Jan 2015 21:18:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Jan 2015 21:18:29 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6856-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jan 15 22:18:28 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 1YBro9-0008JO-5e for gllmg-musl@m.gmane.org; Thu, 15 Jan 2015 22:18:25 +0100 Original-Received: (qmail 23975 invoked by uid 550); 15 Jan 2015 21:18:22 -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 23959 invoked from network); 15 Jan 2015 21:18:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=ssygPaddqtYYA15Whhmm6GZSKpc3EszqItb4rZCDiaI=; b=jMwAeFKApjY56UHXagTI2I52CS/QG/Lxvwvf9OjFCXwbCnt6rBTq3qh4R68p43wM9/ Cue2TndDZ5D3SIpFbLk19o1UzLA0u+woaU6YgeJ+Wmd4YSNDTuU5B+bMyy4tz0mSI8Z3 3KRh1b634EisF6aePFOCRPZwmMwXHT3sbHAbL+NBuvDwfmKGuwOg/u/KwZ9xetiGMhoj cysJtDaSpE7kEYsf8WnHtWhVjqto/04XdiseDtIiEI+dBNg41UID2LXBexTA+6ccvhlC 1eEwxDdkpRWqbloRoSwWaLQsOJVNWdhxjy0UsS74lQgzRzfeSqZj6axyWYGp+bEjKFdT /kRA== X-Received: by 10.43.52.197 with SMTP id vn5mr11494491icb.64.1421356689874; Thu, 15 Jan 2015 13:18:09 -0800 (PST) In-Reply-To: <20150114222259.GM4574@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:6843 Archived-At: 2015-01-14 23:22 GMT+01:00 Rich Felker : > On Wed, Jan 14, 2015 at 09:51:37AM +0100, Daniel Cegie=C5=82ka wrote: >> Hi, >> Can we make these functions visible? They are very useful. >> > > In short, no, at least not without a lot of other things happening. To > do so would be to recreating one of the big things musl was designed > to get away from: random nonstandard interfaces with no documented > interface contract and behavior determined by whatever the existing > implementation(s) happened to do. Note that making these interfaces > public would also involve making the size and possibly representation > of the state structure a public API/ABI too. ok, I understand the reasons. Func's crypto API is totally different per implementation and it is terrible, eg three times is added SHA512's code to OpenSSH: crypt(), libc SHA512 and.. from libressl/openssl. btw. I have had some success in porting ssh code from OpenBSD CVS repo to musl... but _without_ openssl :) # file scp/scp sftp/sftp sftp-server/sftp-server ssh/ssh ssh-agent/ssh-agen= t s> scp/scp: ELF 64-bit LSB executable, x86-64, version 1, statically linked, stripped sftp/sftp: ELF 64-bit LSB executable, x86-64, version 1, statically linked, stripped sftp-server/sftp-server: ELF 64-bit LSB executable, x86-64, version 1, statically linked, stripped ssh/ssh: ELF 64-bit LSB executable, x86-64, version 1, statically linked, stripped ssh-agent/ssh-agent: ELF 64-bit LSB executable, x86-64, version 1, statically linked, stripped ssh-keyscan/ssh-keyscan: ELF 64-bit LSB executable, x86-64, version 1, statically linked, stripped # ls -lh scp/scp sftp/sftp sftp-server/sftp-server ssh/ssh ssh-agent/ssh-ag= ent> -rwxr-xr-x 1 root root 89.8k Jan 14 19:07 scp/scp -rwxr-xr-x 1 root root 131.2k Jan 14 19:07 sftp-server/sftp-se= rver -rwxr-xr-x 1 root root 146.7k Jan 14 19:07 sftp/sftp -rwxr-xr-x 1 root root 336.9k Jan 14 19:07 ssh-agent/ssh-agent -rwxr-xr-x 1 root root 482.1k Jan 14 19:07 ssh-keyscan/ssh-key= scan -rwxr-xr-x 1 root root 616.8k Jan 14 19:07 ssh/ssh tiring work... I think it is better to write ssh client for tinyssh from scratch. Daniel > Rich