Re: hifn mac issue

Jed Davis <[email protected]>
Newsgroups gmane.os.netbsd.devel.crypto
Message-ID <[email protected]>
Karl Knutsson <[email protected]> writes:

> I traced the problem to the hifn device driver's interrupt routine
> (hifn_intr). The problem seems to be here:
>
>                         if (cmd->base_masks & HIFN_BASE_CMD_MAC) {
>                                 macbuf = dma->result_bufs[i];
>                                 macbuf += 12;
>                         }

This appears to be have been fixed in NetBSD-current:

revision 1.28
date: 2005/10/16 20:26:47;  author: tls;  state: Exp;  lines: +4 -17
branches:  1.28.6;
From Gilles Roy <[email protected]>: don't increment buffer pointer twice
(once before callback, once *in* callback) for MAC transforms.  How did
this driver ever work at all without this?

-- 
(let ((C call-with-current-continuation)) (apply (lambda (x y) (x y)) (map
((lambda (r) ((C C) (lambda (s) (r (lambda l (apply (s s) l))))))  (lambda
(f) (lambda (l) (if (null? l) C (lambda (k) (display (car l)) ((f (cdr l))
(C k)))))))    '((#\J #\d #\D #\v #\s) (#\e #\space #\a #\i #\newline)))))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.