From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 25 10:59:17 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C184D1065741 for ; Fri, 25 Feb 2011 10:59:17 +0000 (UTC) (envelope-from putrycydestengier@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7B5FF8FC08 for ; Fri, 25 Feb 2011 10:59:17 +0000 (UTC) Received: by vws16 with SMTP id 16so1457118vws.13 for ; Fri, 25 Feb 2011 02:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=6QN2zThjEAunRrFmuamF+lqI5HNdOg/okbu2mMvyeuo=; b=vqzHZoYGU9Rc9fGUbO0ibmKjfe2A6hSJzYPd2iTCwy75u0wrWV7erlaP4/9ifbyVTF e5AB2EUdHec7CTmGvTUVQzvXWtm1YUEyEIAgfkh7m077nGhFQ2Ul9hZ6Rijk1gZ/4HXA vbuUf/nSqEBxBRqvW56zNymUulScDTsNQ5QrQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZACTz6BKIVGvfLZkGAZw7J9vAcefqXt1dqAMEBRNOefH4ZddPbYdHWpAxH1XxOrk/f OznFOO8SRCcFD/gxiejTfy2y6XFJFzvfe6T+nXsDhHCuZbKoarCENVMPzuLUfsmXIKnM 3Js+0MH+PfjByfOAFtDKzEtHNrPUJ/898Yy9g= MIME-Version: 1.0 Received: by 10.52.155.1 with SMTP id vs1mr3344309vdb.44.1298629871550; Fri, 25 Feb 2011 02:31:11 -0800 (PST) Received: by 10.220.187.9 with HTTP; Fri, 25 Feb 2011 02:31:11 -0800 (PST) Date: Fri, 25 Feb 2011 11:31:11 +0100 Message-ID: From: Putrycy To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: linking part of openssl into a kernel ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Feb 2011 10:59:17 -0000 Hi! I am working on a piece of kernel software, that needs to use publc key cryptography, especially RSA. As far as i know, no RSA related in-kernel functionality is currently implemented. Writing a new implementation of key management, and the algorithm itself, and making it stable and efficent is rather long and slippery road, so i started to look shy on openssl. Porting just RSA and key-related stuff is again, a tiresome work. I am rather lazy, and i thought, that maybe I could force linker to to the job for me, i.e. link kernel against openssl library to get just some function that i am interested in. My question is: how to achieve this ? Second: Any better idea ? Is it totally stupid idea ? regards,