[Bug 166508] [glxsb] AES 256 encryption does not work with glxsb driver

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Mar 25 10:12:08 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=166508

longwitz at incore.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |longwitz at incore.de

--- Comment #3 from longwitz at incore.de ---
Hello,

the following patch eliminates the CAVEAT of glxsb(4) for me, so I can run AES
with mixed length on soekris boxes using glxsb:

--- crypto.c.orig       2015-03-13 12:01:21.000000000 +0100
+++ crypto.c    2016-03-25 11:04:57.670215000 +0100
@@ -362,6 +362,14 @@
                    (cap->cc_flags & match) == 0)
                        continue;

+               /*
+                * workaround for CAVEAT in glxsb(4)
+                */
+               if (strncmp(device_get_nameunit(cap->cc_dev), "glxsb", 5) == 0
&&
+                   cri->cri_alg == CRYPTO_AES_CBC &&
+                   cri->cri_klen != 128)
+                       continue;
+
                /* verify all the algorithms are supported. */
                if (driver_suitable(cap, cri)) {
                        if (best == NULL |

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list