From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 25 10:52:55 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 A472D106566C for ; Fri, 25 Feb 2011 10:52:55 +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 5EF9C8FC0A for ; Fri, 25 Feb 2011 10:52:55 +0000 (UTC) Received: by vws16 with SMTP id 16so1453503vws.13 for ; Fri, 25 Feb 2011 02:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=6QN2zThjEAunRrFmuamF+lqI5HNdOg/okbu2mMvyeuo=; b=V8NTiKaCtzu54SK72evKL0tD87jaSSlOdbT5R55XVDNDVndFNt6YH3G0ppu2cPn4iW oI2YEiTlwjoueJl+V+GIfDZRsB+F2gxC6fPztyvcuEi/PcQgFQRbpl+3B/+4szvWSqPI j7JkrANtA6USuhuikJJO/Xs5f1p8I3vmFducU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=F2XtI5+JmQ+a8WoP0ggYbi8cyrrAUGOrpncDvPlxJrtNbdaLzyc01fZP65oIgHfI0+ cKORGAYEBVb6WilMuNCbMAoLjH+xPb0BedYybL9L2Wr2n7bh17FDDFo8oQIyvq3keH7s l+y4MXHeM/4JSbJ5WllrKt32LUizcjYrUdF8Q= MIME-Version: 1.0 Received: by 10.220.164.73 with SMTP id d9mr505347vcy.276.1298629725397; Fri, 25 Feb 2011 02:28:45 -0800 (PST) Received: by 10.220.187.9 with HTTP; Fri, 25 Feb 2011 02:28:45 -0800 (PST) In-Reply-To: References: Date: Fri, 25 Feb 2011 11:28:45 +0100 Message-ID: From: Putrycy To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Fwd: 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:52:55 -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,