Re: [PATCH] crypto: sha - split sha.h into sha1.h and sha2.h

2020-11-19 Thread Herbert Xu
, or both. > > This avoids making the SHA-1 declarations visible to files that don't > want anything to do with SHA-1. It also prepares for potentially moving > sha1.h into a new insecure/ or dangerous/ directory. > > Signed-off-by: Eric Biggers > --- > > This is

Re: [PATCH] crypto: sha - split sha.h into sha1.h and sha2.h

2020-11-13 Thread Jason A. Donenfeld
Thanks for doing this. Acked-by: Jason A. Donenfeld

Re: [PATCH] crypto: sha - split sha.h into sha1.h and sha2.h

2020-11-12 Thread Ard Biesheuvel
> the declarations for SHA-1, SHA-2, or both. > > This avoids making the SHA-1 declarations visible to files that don't > want anything to do with SHA-1. It also prepares for potentially moving > sha1.h into a new insecure/ or dangerous/ directory. > > Signed-off-by: Eric Bigge

[PATCH] crypto: sha - split sha.h into sha1.h and sha2.h

2020-11-12 Thread Eric Biggers
x27;t want anything to do with SHA-1. It also prepares for potentially moving sha1.h into a new insecure/ or dangerous/ directory. Signed-off-by: Eric Biggers --- This is a follow-up from https://lkml.kernel.org/linux-crypto/20200503164539.GA938@sol.localdomain. This could be split into multiple

[PATCH 00/25] crypto: convert h/w accelerator driver to skcipher API

2019-10-14 Thread Ard Biesheuvel
This series converts all drivers for h/w accelerators that produce the ablkcipher API to the skcipher API, so that we can finally retire the long deprecated blkcipher code. Patches #1, #2 are fixes for the virtio driver, which need to be applied first so that they can be backported Patches #3

Re: [PATCH 0/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h

2019-09-04 Thread Herbert Xu
local functions / > arrays to avoid conflicts with the new include/crypto/sha256.h, followed > by a patch merging include/crypto/sha256.h into include/crypto/sha.h. > > The last patch makes use of this merging to remove a bit more code > duplication, making sha256_generic use sha

Re: [PATCH 0/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h

2019-09-04 Thread Ard Biesheuvel
ions / > arrays to avoid conflicts with the new include/crypto/sha256.h, followed > by a patch merging include/crypto/sha256.h into include/crypto/sha.h. > > The last patch makes use of this merging to remove a bit more code > duplication, making sha256_generic use sha256_ini

Re: [PATCH 5/9] crypto: ccree - Rename arrays to avoid conflict with crypto/sha256.h

2019-09-03 Thread Gilad Ben-Yossef
gt;> with the functions declared in crypto/sha256.h. > >> > >> This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. > > > > I'm fine with the renaming. > > > > Signed-off-by: Gilad Ben-Yossef > > Your Signed-off-by is only use

Re: [PATCH 5/9] crypto: ccree - Rename arrays to avoid conflict with crypto/sha256.h

2019-09-03 Thread Hans de Goede
Hi, On 03-09-19 09:45, Gilad Ben-Yossef wrote: On Sun, Sep 1, 2019 at 11:36 PM Hans de Goede wrote: Rename the algo_init arrays to cc_algo_init so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto

Re: [PATCH 5/9] crypto: ccree - Rename arrays to avoid conflict with crypto/sha256.h

2019-09-03 Thread Gilad Ben-Yossef
On Sun, Sep 1, 2019 at 11:36 PM Hans de Goede wrote: > > Rename the algo_init arrays to cc_algo_init so that they do not conflict > with the functions declared in crypto/sha256.h. > > This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. I'm fine with t

[PATCH 7/9] crypto: n2 - Rename arrays to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename the sha*_init arrays to n2_sha*_init so that they do not conflict with the functions declared in crypto/sha256.h. Also rename md5_init to n2_md5_init for consistency. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- drivers

[PATCH 8/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h

2019-09-01 Thread Hans de Goede
| 1 - include/crypto/sha.h| 21 include/crypto/sha256.h | 34 - lib/crypto/sha256.c | 2 +- 6 files changed, 24 insertions(+), 38 deletions(-) delete mode 100644 include/crypto/sha256.h diff --git a/arch/s390

[PATCH 6/9] crypto: chelsio - Rename arrays to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename the sha*_init arrays to chcr_sha*_init so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- drivers/crypto/chelsio/chcr_algo.h | 20 ++-- 1

[PATCH 5/9] crypto: ccree - Rename arrays to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename the algo_init arrays to cc_algo_init so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- drivers/crypto/ccree/cc_hash.c | 153

[PATCH 4/9] crypto: x86 - Rename functions to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename static / file-local functions so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- arch/x86/crypto/sha256_ssse3_glue.c | 12 ++-- 1 file changed, 6

[PATCH 2/9] crypto: arm64 - Rename functions to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename static / file-local functions so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- arch/arm64/crypto/sha256-glue.c | 24 1 file

[PATCH 1/9] crypto: arm - Rename functions to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename static / file-local functions so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- arch/arm/crypto/sha256_glue.c | 8 arch/arm/crypto

[PATCH 3/9] crypto: s390 - Rename functions to avoid conflict with crypto/sha256.h

2019-09-01 Thread Hans de Goede
Rename static / file-local functions so that they do not conflict with the functions declared in crypto/sha256.h. This is a preparation patch for folding crypto/sha256.h into crypto/sha.h. Signed-off-by: Hans de Goede --- arch/s390/crypto/sha256_s390.c | 8 1 file changed, 4

[PATCH 0/9] crypto: sha256 - Merge crypto/sha256.h into crypto/sha.h

2019-09-01 Thread Hans de Goede
editors search - replace function so things should be fine... (and FWIW I did do a Kconfig hack to compile test the ccree change). The first patch in this series rename various file local functions / arrays to avoid conflicts with the new include/crypto/sha256.h, followed by a patch merging include

[PATCH v2 08/13] crypto: caam/qi - remove unused header sg_sw_sec4.h

2017-07-09 Thread Horia Geantă
sg_sw_sec4.h header is not used by caam/qi, thus remove its inclusion. Signed-off-by: Horia Geantă --- drivers/crypto/caam/caamalg_qi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/caam/caamalg_qi.c b/drivers/crypto/caam/caamalg_qi.c index 82e9f93f5071..2a6114572304 100644

[PATCH 08/13] crypto: caam/qi - remove unused header sg_sw_sec4.h

2017-07-07 Thread Horia Geantă
sg_sw_sec4.h header is not used by caam/qi, thus remove its inclusion. Signed-off-by: Horia Geantă --- drivers/crypto/caam/caamalg_qi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/caam/caamalg_qi.c b/drivers/crypto/caam/caamalg_qi.c index e84c1949d9a4..0d439e85ef20 100644

[PATCH 12/14] crypto: caam - move sec4_sg_entry to sg_sw_sec4.h

2016-11-09 Thread Horia Geantă
sec4_sg_entry structure is used only by helper functions in sg_sw_sec4.h. Since SEC HW S/G entries are to be manipulated only indirectly, via these functions, move sec4_sg_entry to the corresponding header. Signed-off-by: Horia Geantă --- drivers/crypto/caam/desc.h | 6 -- drivers

[PATCH v2 3/3] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-11-16 Thread rsahu
From: Rameshwar Prasad Sahu This patch implements support for APM X-Gene SoC CRC32C h/w accelerator. DMA engine in APM X-Gene SoC is capable of doing CRC32C computations. Signed-off-by: Rameshwar Prasad Sahu --- drivers/crypto/Kconfig|8 ++ drivers/crypto/Makefile |1

[PATCH v2 3/3] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-11-07 Thread Rameshwar Prasad Sahu
This patch implements support for APM X-Gene SoC CRC32C h/w accelerator. DMA engine in APM X-Gene SoC is capable of doing CRC32C computations. Signed-off-by: Rameshwar Prasad Sahu --- drivers/crypto/Kconfig|8 ++ drivers/crypto/Makefile |1 + drivers/crypto/xgene-crc32c.c

Re: [PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-08-20 Thread Vinod Koul
On Thu, Aug 20, 2015 at 12:31:44PM +0530, Rameshwar Sahu wrote: > Hi Vinod, > > On Thu, Aug 20, 2015 at 11:18 AM, Vinod Koul wrote: > > On Thu, Jul 30, 2015 at 05:41:07PM +0530, Rameshwar Prasad Sahu wrote: > >> + nents = sg_nents(req->src); > >> + sg_count = dma_map_sg(dev, req->src, nen

Re: [PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-08-20 Thread Rameshwar Sahu
Hi Vinod, On Thu, Aug 20, 2015 at 11:18 AM, Vinod Koul wrote: > On Thu, Jul 30, 2015 at 05:41:07PM +0530, Rameshwar Prasad Sahu wrote: >> + nents = sg_nents(req->src); >> + sg_count = dma_map_sg(dev, req->src, nents, DMA_TO_DEVICE); >> + if (!sg_count) { >> + dev_err(dev,

Re: [PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-08-19 Thread Vinod Koul
On Thu, Jul 30, 2015 at 05:41:07PM +0530, Rameshwar Prasad Sahu wrote: > + nents = sg_nents(req->src); > + sg_count = dma_map_sg(dev, req->src, nents, DMA_TO_DEVICE); > + if (!sg_count) { > + dev_err(dev, "Failed to map src sg"); > + return -ENOMEM; mapping error

Re: [PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-07-31 Thread Rameshwar Sahu
On Fri, Jul 31, 2015 at 12:43 PM, Herbert Xu wrote: > On Thu, Jul 30, 2015 at 05:41:07PM +0530, Rameshwar Prasad Sahu wrote: >> >> + .cra_name = "xgene(crc32c)", >> + .cra_driver_name= "crc32c-xgene", > > This looks wrong. If you're implementing crc32

Re: [PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-07-31 Thread Herbert Xu
On Thu, Jul 30, 2015 at 05:41:07PM +0530, Rameshwar Prasad Sahu wrote: > > + .cra_name = "xgene(crc32c)", > + .cra_driver_name= "crc32c-xgene", This looks wrong. If you're implementing crc32c then cra_name should be just crc32c, i.e., the name of the

[PATCH v1 3/4] Crypto: Add support for APM X-Gene SoC CRC32C h/w accelerator driver

2015-07-30 Thread Rameshwar Prasad Sahu
This patch implements support for APM X-Gene SoC CRC32C h/w accelerator. DMA engine in APM X-Gene SoC is capable of doing CRC32C calculations. Signed-off-by: Rameshwar Prasad Sahu --- drivers/crypto/Kconfig| 8 ++ drivers/crypto/Makefile | 1 + drivers/crypto/xgene-crc32c.c

Re: [PATCH 0/2] remove nx842.h from include/linux

2015-06-15 Thread Herbert Xu
On Fri, Jun 12, 2015 at 10:58:45AM -0400, Dan Streetman wrote: > Now that the crypto/842.c driver does only software 842 comp/decomp, > and the hardware crypto compressor for 842-nx is located in > drivers/crypto/nx with the NX 842 hw driver, there's no reason for > the nx8

[PATCH 1/2] crypto: move include/linux/nx842.h into drivers/crypto/nx/nx-842.h

2015-06-12 Thread Dan Streetman
Move the contents of the include/linux/nx842.h header file into the drivers/crypto/nx/nx-842.h header file. Remove the nx842.h header file and its entry in the MAINTAINERS file. The include/linux/nx842.h header originally was there because the crypto/842.c driver needed it to communicate with

[PATCH 0/2] remove nx842.h from include/linux

2015-06-12 Thread Dan Streetman
Now that the crypto/842.c driver does only software 842 comp/decomp, and the hardware crypto compressor for 842-nx is located in drivers/crypto/nx with the NX 842 hw driver, there's no reason for the nx842.h header to be located in include/linux/ anymore; nobody should use the NX 842 hw d

[PATCH v2 09/17] crypto: talitos - Move reset/init helpers into talitos2.h

2015-03-06 Thread Christophe Leroy
Move reset/init helpers init talitos2.h as they are specific to SEC2 Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 19 --- drivers/crypto/talitos2.h | 20 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/crypto

[PATCH v2 10/17] crypto: talitos - Move interrupt related macros in talitos2.h

2015-03-06 Thread Christophe Leroy
Move interrupt related macros in talitos2.h as they are specific to SEC2 Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 58 - drivers/crypto/talitos2.h | 60 +++ 2 files changed, 60

[PATCH v2 11/17] crypto: talitos - Move hash chain handling into talitos2.h

2015-03-06 Thread Christophe Leroy
Move hash chain handling into talitos2.h as only SEC2 has sg chaining capatibility Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 34 -- drivers/crypto/talitos2.h | 34 ++ 2 files changed, 34 insertions(+), 34

[PATCH v2 12/17] crypto: talitos - Define compatible in talitos2.h instead of talitos.c

2015-03-06 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 4 +--- drivers/crypto/talitos2.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 8b627d0..0262e75 100644 --- a/drivers/crypto/talitos.c +++ b/drivers

[PATCH 12/17] crypto: talitos - Define compatible in talitos2.h instead of talitos.c

2015-03-05 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 4 +--- drivers/crypto/talitos2.h | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index 6c1f6f1..9f75ec9 100644 --- a/drivers/crypto/talitos.c +++ b/drivers

[PATCH 10/17] crypto: talitos - Move interrupt related macros in talitos2.h

2015-03-05 Thread Christophe Leroy
Move interrupt related macros in talitos2.h as they are specific to SEC2 Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 58 - drivers/crypto/talitos2.h | 60 +++ 2 files changed, 60

[PATCH 11/17] crypto: talitos - Move hash chain handling into talitos2.h

2015-03-05 Thread Christophe Leroy
Move hash chain handling into talitos2.h as only SEC2 has sg chaining capatibility Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 34 -- drivers/crypto/talitos2.h | 34 ++ 2 files changed, 34 insertions(+), 34

[PATCH 09/17] crypto: talitos - Move reset/init helpers into talitos2.h

2015-03-05 Thread Christophe Leroy
Move reset/init helpers init talitos2.h as they are specific to SEC2 Signed-off-by: Christophe Leroy --- drivers/crypto/talitos.c | 19 --- drivers/crypto/talitos2.h | 20 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/drivers/crypto

H

2014-09-15 Thread Diana
Please Revert back, your assistance is needed. --- The Exhibitor at innoTrans, Berlin 2014 Hall : 15.1 / Stand no : 109 http://www.virtualmarket.innotrans.de/?Action=showCompany&id=346242 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto"

[PATCH v2 04/12] crypto: caam - move sec4_sg_entry to sg_sw_sec4.h

2014-08-14 Thread Horia Geanta
sec4_sg_entry structure is used only by helper functions in sg_sw_sec4.h. Since SEC HW S/G entries are to be manipulated only indirectly, via these functions, move sec4_sg_entry to the corresponding header. Signed-off-by: Horia Geanta --- drivers/crypto/caam/desc.h | 10

[PATCH 4/9] crypto: caam - move sec4_sg_entry to sg_sw_sec4.h

2014-07-18 Thread Horia Geanta
sec4_sg_entry structure is used only by helper functions in sg_sw_sec4.h. Since SEC HW S/G entries are to be manipulated only indirectly, via these functions, move sec4_sg_entry to the corresponding header. Signed-off-by: Horia Geanta --- drivers/crypto/caam/desc.h | 10

[PATCH V2 03/21] staging: crypto: skein: remove brg_*.h includes

2014-03-23 Thread Jason Cooper
x27;uint\1_t') - can be used to convert the types used here to the C99 standard types. -*/ - -#ifndef BRG_TYPES_H -#define BRG_TYPES_H - -#if defined(__cplusplus) -extern "C" { -#endif - -#ifndef BRG_UI8 -# define BRG_UI8 - typedef unsigned char uint_8t; -#endif - -#ifndef BRG

[RFC PATCH 04/22] staging: crypto: skein: remove brg_*.h includes

2014-03-11 Thread Jason Cooper
x27;uint\1_t') - can be used to convert the types used here to the C99 standard types. -*/ - -#ifndef BRG_TYPES_H -#define BRG_TYPES_H - -#if defined(__cplusplus) -extern "C" { -#endif - -#ifndef BRG_UI8 -# define BRG_UI8 - typedef unsigned char uint_8t; -#endif - -#ifndef BRG

[PATCH 03/14] workqueue: drop 'H' from kworker names of unbound worker pools

2013-03-27 Thread Tejun Heo
Currently, all workqueue workers which have negative nice value has 'H' postfixed to their names. This is necessary for per-cpu workers as they use the CPU number instead of pool->id to identify the pool and the 'H' postfix is the only thing distinguishing normal and highp

[PATCH 02/10] workqueue: drop 'H' from kworker names of unbound worker pools

2013-03-19 Thread Tejun Heo
Currently, all workqueue workers which have negative nice value has 'H' postfixed to their names. This is necessary for per-cpu workers as they use the CPU number instead of pool->id to identify the pool and the 'H' postfix is the only thing distinguishing normal and highp

[PATCH 18/20] crypto: caam - only query h/w in job ring dequeue path

2012-06-22 Thread Kim Phillips
Code was needlessly checking the s/w job ring when there would be nothing to process if the h/w's output completion ring were empty anyway. Signed-off-by: Kim Phillips --- drivers/crypto/caam/jr.c | 17 + 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/dr

[PATCH 10/11] crypto: move arch/x86/include/asm/serpent-{sse2|avx}.h to arch/x86/include/asm/crypto/

2012-06-18 Thread Jussi Kivilinna
/crypto/serpent-sse2.h | 63 arch/x86/include/asm/serpent-avx.h | 32 -- arch/x86/include/asm/serpent-sse2.h| 63 6 files changed, 97 insertions(+), 97 deletions(-) create mode 100644 arch/x86/include/asm/crypto

Re: [PATCH 0/7] crypto: talitos/caam: SEC h/w v2.0 fix and cleanups

2011-12-19 Thread Herbert Xu
On Mon, Dec 12, 2011 at 02:59:09PM -0600, Kim Phillips wrote: > The first patch in the series fixes a boottime oops on SEC h/w v.2.0. > The rest are minor cleanups. > > The fourth - "crypto: caam - desc.h - convert spaces to tabs" - > is the result of running unexpand -a

[PATCH 0/7] crypto: talitos/caam: SEC h/w v2.0 fix and cleanups

2011-12-12 Thread Kim Phillips
The first patch in the series fixes a boottime oops on SEC h/w v.2.0. The rest are minor cleanups. The fourth - "crypto: caam - desc.h - convert spaces to tabs" - is the result of running unexpand -a on desc.h, and may exceed list message quota limits. If this is the case, plea

authenc_verify_ahash_done and H/W accelerator

2011-11-17 Thread satpal parmar
ap_and_copy was a failure or struct crypto_async_request *areq received is corrupted. Since this API is not involved when I use s/w crypto I do not have any working example to follow. Just wondering if anyone come across any such problem or issue while developing H/W crypto driver. I am using Lin

Cryptoapi: H/W accelerator/ IPsec interfaces

2011-10-20 Thread satpal parmar
Hi All I am trying to work Openswan IPsec(2.6.33)  (NETKEY) with NSS H/W cryptodrivers  for ARM cortex based SoC running linux 2.6.37. I am facing this weird problem where when I ping I see (wireshark) ESP packets going  both side but I am not receiving anything on either side. See the log below.I

[PATCH -v3] x86: Move kernel_fpu_using to irq_fpu_usable in asm/i387.h

2009-08-30 Thread Huang Ying
PCLMULQDQ accelerated GHASH implementation. v3: - Renamed to irq_fpu_usable to reflect the purpose of the function. v2: - Renamed to irq_is_fpu_using to reflect the real situation. Signed-off-by: Huang Ying CC: H. Peter Anvin --- arch/x86/crypto/aesni-intel_glue.c | 17 + arch/x86

Re: [PATCH -v2 4/5] x86: Move kernel_fpu_using to irq_is_fpu_using in asm/i387.h

2009-08-06 Thread Herbert Xu
On Wed, Aug 05, 2009 at 11:27:02PM -0700, H. Peter Anvin wrote: > Herbert Xu wrote: >> >> Peter, do you want to apply this patch in your tree or would >> you prefer for it to go through my tree along with the rest of >> the series? >> > > I'll take it to

Re: [PATCH -v2 4/5] x86: Move kernel_fpu_using to irq_is_fpu_using in asm/i387.h

2009-08-05 Thread H. Peter Anvin
Herbert Xu wrote: Peter, do you want to apply this patch in your tree or would you prefer for it to go through my tree along with the rest of the series? I'll take it tomorrow... want to double-check that we don't have any real issues w.r.t. corruption there. -hpa -- To unsubscribe

Re: [PATCH -v2 4/5] x86: Move kernel_fpu_using to irq_is_fpu_using in asm/i387.h

2009-08-05 Thread Herbert Xu
On Mon, Aug 03, 2009 at 03:45:30PM +0800, Huang Ying wrote: > This is used by AES-NI accelerated AES implementation and PCLMULQDQ > accelerated GHASH implementation. > > v2: > - Renamed to irq_is_fpu_using to reflect the real situation. > > Signed-off-by: Huang Ying

[PATCH -v2 4/5] x86: Move kernel_fpu_using to irq_is_fpu_using in asm/i387.h

2009-08-03 Thread Huang Ying
This is used by AES-NI accelerated AES implementation and PCLMULQDQ accelerated GHASH implementation. v2: - Renamed to irq_is_fpu_using to reflect the real situation. Signed-off-by: Huang Ying CC: H. Peter Anvin --- arch/x86/crypto/aesni-intel_glue.c | 17 + arch/x86

Re: [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-17 Thread H. Peter Anvin
rq_fpu_using(void) > { > return in_interrupt() && fpu_using(); > } > Yes, looks good. I'll pull in the patch as soon as I get it. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. -- To unsu

Re: [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-17 Thread H. Peter Anvin
Herbert Xu wrote: > On Wed, Jun 17, 2009 at 10:06:44AM -0700, H. Peter Anvin wrote: > >> Huang: if I recall correctly, these functions were originally designed >> to deal with the fact that VIA processors generate spurious #TS faults >> due to broken design of the Padloc

Re: [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-17 Thread Huang Ying
On Thu, 2009-06-18 at 01:06 +0800, H. Peter Anvin wrote: > Ingo Molnar wrote: > >> > >> +static inline int kernel_fpu_using(void) > >> +{ > >> + if (in_interrupt() && !(read_cr0() & X86_CR0_TS)) > >> + return 1; > >&g

Re: [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-17 Thread Herbert Xu
On Wed, Jun 17, 2009 at 10:06:44AM -0700, H. Peter Anvin wrote: > Ingo Molnar wrote: > >> > >> +static inline int kernel_fpu_using(void) > >> +{ > >> + if (in_interrupt() && !(read_cr0() & X86_CR0_TS)) > >> + return 1; > &g

Re: [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-17 Thread H. Peter Anvin
recall correctly, these functions were originally designed to deal with the fact that VIA processors generate spurious #TS faults due to broken design of the Padlock instructions. The AES and PCLMUL instructions actually use SSE registers and so will require different structure. -hpa --

Re: [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-17 Thread Ingo Molnar
* Huang Ying wrote: > This is used by AES-NI accelerated AES implementation and PCLMULQDQ > accelerated GHASH implementation. > > Signed-off-by: Huang Ying > > --- > arch/x86/crypto/aesni-intel_glue.c |7 --- > arch/x86/include/asm/i387.h|7 +

[RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h

2009-06-11 Thread Huang Ying
This is used by AES-NI accelerated AES implementation and PCLMULQDQ accelerated GHASH implementation. Signed-off-by: Huang Ying --- arch/x86/crypto/aesni-intel_glue.c |7 --- arch/x86/include/asm/i387.h|7 +++ 2 files changed, 7 insertions(+), 7 deletions(-) --- a/arch

[PATCH 3/3] crypto: talitos - perform auth check in h/w if on sec 2.1 and above

2008-10-06 Thread Lee Nipper
From: Kim Phillips <[EMAIL PROTECTED]> SEC version 2.1 and above adds the capability to do the IPSec ICV memcmp in h/w. Results of the cmp are written back in the descriptor header, along with the done status. A new callback is added that checks these ICCR bits instead of performing the

[PATCH 2/4] crypto/talitos: unmap h/w generated IV

2008-06-16 Thread Kim Phillips
Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- drivers/crypto/talitos.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index f301e95..ce4787e 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c @@ -