Zbr's days.
October
Sun Mon Tue Wed Thu Fri Sat
 
10
     
2007
Months
Oct

About TODO Blog RSS Old blog Projects Gallery Notes

Wed, 10 Oct 2007

Misalignment access handling has been implemented in HIFN driver. New version has been released.

Although it contains some obscure for the reader comments, like

	/*
	 * Temporary of course...
	 * Kick author if you will catch this one.
	 */
	printk(KERN_ERR "%s: dlen: %u, nbytes: %u,"
		"slen: %u, offset: %u.\n",
		__func__, dlen, nbytes, slen, offset);
	printk(KERN_ERR "%s: please contact author to fix this "
		"issue, generally you should not catch "
		"this path under any condition but who "
		"knows how did you use crypto code.\n"
		"Thank you.\n",	__func__);
	BUG();
This should not happen in real life, but in theory it is probably possible condition, so I added a bug and above prints.
It uses quite tricky copyings over the source/destination buffers in case of misaligned access, but driver passed all tests in tcrypt.c, except DES weak test (hardware can not distinguish weak keys).

I've released new version, which you can find in archive.
Groovy!

/devel/acrypto/hifn :: Link / Comments (0)

Please solve this captcha to be allowed to post (need to reload in a minute): 73 - 77

Comments are closed for this story.