Subject: Re: hifn mac issue
To: None <tech-crypto@netbsd.org>
From: Jed Davis <jdev@panix.com>
List: tech-crypto
Date: 11/28/2006 05:24:54
Karl Knutsson <karl.knutsson@ericsson.com> 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 <groy@qnx.com>: 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)))))