MD5 usage in the kernel.

2000-04-20 Thread David Gilbert

I'm working on an l2tp netgraph node.  I need md5.  Specifically, the
RFC says:

  The Response is a 16 octet value reflecting the CHAP-style
  [RFC1994] response to the challenge.

I've had a look at md5.c, but there is no documentation on the usage
md5.  In this specific case, how do I call it?

If CHAP uses MD5, how does ng_ppp or kernel ppp handle this (or does
it)?

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://www.velocet.net/~dgilbert |   are precisely opposite.  |
=GLO


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: MD5 usage in the kernel.

2000-04-20 Thread Mike Bristow

On Thu, Apr 20, 2000 at 04:02:28PM -0400, David Gilbert wrote:
 I'm working on an l2tp netgraph node.  I need md5.  Specifically, the
 RFC says:
 
   The Response is a 16 octet value reflecting the CHAP-style
   [RFC1994] response to the challenge.
 
 I've had a look at md5.c, but there is no documentation on the usage
 md5.  In this specific case, how do I call it?
 
 If CHAP uses MD5, how does ng_ppp or kernel ppp handle this (or does
 it)?

guess hands all the LCP of to userland /guess

Is a similar approach approprate here?  Is the MD5ing time critical,
or does it only appear in the moral equivilent of LCP?

-- 
Mike Bristow, seebitwopie  


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: MD5 usage in the kernel.

2000-04-20 Thread David Gilbert

 "Mike" == Mike Bristow [EMAIL PROTECTED] writes:

Mike guess hands all the LCP of to userland /guess

Mike Is a similar approach approprate here?  Is the MD5ing time
Mike critical, or does it only appear in the moral equivilent of LCP?

Could be done, I suppose.  It is the "moral" equivalent to LCP.  It
just seems to be such a simple function that md5 in the kernel is
perfect for it.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://www.velocet.net/~dgilbert |   are precisely opposite.  |
=GLO


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message