mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 05:42:36 +00:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Merge crypto-2.6 to resolve caam conflict with skcipher conversion.
This commit is contained in:
commit
910e3ca10b
6 changed files with 2 additions and 7 deletions
|
@ -379,7 +379,6 @@ static int __init crypto_aegis128_aesni_module_init(void)
|
||||||
{
|
{
|
||||||
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
||||||
!boot_cpu_has(X86_FEATURE_AES) ||
|
!boot_cpu_has(X86_FEATURE_AES) ||
|
||||||
!boot_cpu_has(X86_FEATURE_OSXSAVE) ||
|
|
||||||
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
@ -379,7 +379,6 @@ static int __init crypto_aegis128l_aesni_module_init(void)
|
||||||
{
|
{
|
||||||
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
||||||
!boot_cpu_has(X86_FEATURE_AES) ||
|
!boot_cpu_has(X86_FEATURE_AES) ||
|
||||||
!boot_cpu_has(X86_FEATURE_OSXSAVE) ||
|
|
||||||
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
@ -379,7 +379,6 @@ static int __init crypto_aegis256_aesni_module_init(void)
|
||||||
{
|
{
|
||||||
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
||||||
!boot_cpu_has(X86_FEATURE_AES) ||
|
!boot_cpu_has(X86_FEATURE_AES) ||
|
||||||
!boot_cpu_has(X86_FEATURE_OSXSAVE) ||
|
|
||||||
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ MORUS1280_DECLARE_ALGS(sse2, "morus1280-sse2", 350);
|
||||||
static int __init crypto_morus1280_sse2_module_init(void)
|
static int __init crypto_morus1280_sse2_module_init(void)
|
||||||
{
|
{
|
||||||
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
||||||
!boot_cpu_has(X86_FEATURE_OSXSAVE) ||
|
|
||||||
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ MORUS640_DECLARE_ALGS(sse2, "morus640-sse2", 400);
|
||||||
static int __init crypto_morus640_sse2_module_init(void)
|
static int __init crypto_morus640_sse2_module_init(void)
|
||||||
{
|
{
|
||||||
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
if (!boot_cpu_has(X86_FEATURE_XMM2) ||
|
||||||
!boot_cpu_has(X86_FEATURE_OSXSAVE) ||
|
|
||||||
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
!cpu_has_xfeatures(XFEATURE_MASK_SSE, NULL))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|
|
@ -1493,8 +1493,8 @@ static struct skcipher_edesc *skcipher_edesc_alloc(struct skcipher_request *req,
|
||||||
edesc->src_nents = src_nents;
|
edesc->src_nents = src_nents;
|
||||||
edesc->dst_nents = dst_nents;
|
edesc->dst_nents = dst_nents;
|
||||||
edesc->sec4_sg_bytes = sec4_sg_bytes;
|
edesc->sec4_sg_bytes = sec4_sg_bytes;
|
||||||
edesc->sec4_sg = (void *)edesc + sizeof(struct skcipher_edesc) +
|
edesc->sec4_sg = (struct sec4_sg_entry *)((u8 *)edesc->hw_desc +
|
||||||
desc_bytes;
|
desc_bytes);
|
||||||
|
|
||||||
/* Make sure IV is located in a DMAable area */
|
/* Make sure IV is located in a DMAable area */
|
||||||
iv = (u8 *)edesc->hw_desc + desc_bytes + sec4_sg_bytes;
|
iv = (u8 *)edesc->hw_desc + desc_bytes + sec4_sg_bytes;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue