From owner-freebsd-questions@FreeBSD.ORG Sun Jan 23 19:56:34 2011 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C4D1106566B for ; Sun, 23 Jan 2011 19:56:34 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout029.mac.com (asmtpout029.mac.com [17.148.16.104]) by mx1.freebsd.org (Postfix) with ESMTP id 8348F8FC08 for ; Sun, 23 Jan 2011 19:56:34 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from [10.1.2.24] ([173.200.178.70]) by asmtp029.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LFH00LYLRD9OC70@asmtp029.mac.com> for freebsd-questions@FreeBSD.org; Sun, 23 Jan 2011 11:55:58 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-01-23_07:2011-01-21, 2011-01-23, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1101230085 From: Chuck Swiger In-reply-to: Date: Sun, 23 Jan 2011 11:55:57 -0800 Message-id: <51A6B79C-A031-4077-8C8D-0416E978D7E8@mac.com> References: To: alireza imani X-Mailer: Apple Mail (2.1082) Cc: freebsd-questions@FreeBSD.org Subject: Re: how can i use 1)des.h 2)socket in kernel mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jan 2011 19:56:34 -0000 On Jan 23, 2011, at 4:44 AM, alireza imani wrote: > i have some question about freebsd. > how can i use des.h methods in kernel mode? > and how can i use socket in kernel mode? > > can you give me some source code about this or help me? "man 9 crypto" and "man 9 socket" describe kernel interfaces to crypto (including CRYPTO_DES_CBC & CRYPTO_3DES_CBC) and kernel-level sockets. However, if it's possible to do whatever it is that you want to do in userland rather than in the kernel, then you should avoid doing stuff inside the kernel unless you have compelling reasons. Regards, -- -Chuck