Thread (8 messages) 8 messages, 2 authors, 2017-04-21

[PATCH v2 2/3] crypto: inside-secure: add SafeXcel EIP197 crypto engine driver

From: Antoine Tenart <hidden>
Date: 2017-04-21 12:05:55
Also in: linux-crypto

On Fri, Apr 21, 2017 at 01:36:45PM +0200, Corentin Labbe wrote:
quoted
quoted
quoted
+	memset(ipad + keylen, 0, blocksize - keylen);
+	memcpy(opad, ipad, blocksize);
+
+	for (i = 0; i < blocksize; i++) {
+		ipad[i] ^= 0x36;
+		opad[i] ^= 0x5c;
What are these constant ?
They are defined in the HMAC RFC, as ipad and opad values. See
https://www.ietf.org/rfc/rfc2104.txt.
Since many driver use them, I think defining them in include/ should be done (HMAC_IPAD/HMAC_OPAD)
I will send a patch for it.
OK, I'll send a following up patch on this driver when your series is
merged.

Antoine

-- 
Antoine T?nart, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170421/76266910/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help