From 0fbafd06bdde938884f7326548d3df812b267c3c Mon Sep 17 00:00:00 2001 From: Tadeusz Struk Date: Sat, 27 Jun 2015 15:56:38 +0900 Subject: [PATCH] crypto: aesni - fix failing setkey for rfc4106-gcm-aesni rfc4106(gcm(aes)) uses ctr(aes) to generate hash key. ctr(aes) needs chainiv, but the chainiv gets initialized after aesni_intel when both are statically linked so the setkey fails. This patch forces aesni_intel to be initialized after chainiv. Signed-off-by: Tadeusz Struk Tested-by: Linus Torvalds Signed-off-by: Herbert Xu --- Reading git-format-patch failed