The current code only increments the upper 64 bits of the SHA-512 byte
counter when the number of bytes hashed happens to hit 2^64 exactly.
This patch increments the upper 64 bits whenever the lower 64 bits
overflows.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
crypto/sha512_generic.c
for the random number generator and the cryptographic
accelerators.
Please cc me on replies.
Thanks,
Kent
Kent Yoder (12):
powerpc: crypto: AES-CBC mode routines for nx encryption
powerpc: crypto: AES-CCM mode routines for nx encryption
powerpc: crypto: AES-CTR mode routines for nx encryption
From: Robert Jennings r...@linux.vnet.ibm.com
The Platform Facilities Option (PFO) adds several new h_calls and
more return codes.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 25
device drivers to
make synchronous hypervisor calls.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/vio.h | 46 +++
arch/powerpc/kernel/vio.c | 274 ++--
2 files
that is triggered by updates to ofdt properties.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/pSeries_reconfig.h | 12
arch/powerpc/platforms/pseries/reconfig.c |7 +++
2 files changed, 19
From: Michael Neuling mi...@neuling.org
Adds support for the Platform Facilities Option (PFO)-based hardware
random number generator for POWER hardware.
Signed-off-by: Michael Neuling mi...@neuling.org
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k
...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/kernel/prom_init.c | 13 -
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_init.c
index eca626e..6691077 100644
--- a/arch/powerpc/kernel
These routines add support for AES in CCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-aes-ccm.c | 466 +++
1 files changed, 466 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in CBC mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-aes-cbc.c | 135 +++
1 files changed, 135 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in GCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-aes-gcm.c | 352 +++
1 files changed, 352 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in XCBC mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-aes-xcbc.c | 230 ++
1 files changed, 230 insertions(+), 0 deletions(-)
create mode
These routines add support for SHA-256 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-sha256.c | 240
1 files changed, 240 insertions(+), 0 deletions(-)
create mode
These routines add the base device driver code supporting the Power7+
in-Nest encryption accelerator (nx) device.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx.c| 710
arch/powerpc/crypto/nx/nx.h| 190
These routines add sysfs files supporting the Power7+ in-Nest encryption
accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
Documentation/powerpc/pfo-nx-crypto.txt | 52
arch/powerpc/crypto/nx/nx_sysfs.c | 194 +++
2 files
These routines add support for SHA-512 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-sha512.c | 259
1 files changed, 259 insertions(+), 0 deletions(-)
create mode
These files support configuring and building the nx device driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/Makefile |1 +
arch/powerpc/crypto/nx/Makefile | 11 +++
drivers/crypto/Kconfig | 18 ++
3 files changed, 30
This patch adds the cas bits to advertise support for the Platform
Facilities Option (PFO) based encryption accelerator device. The nx
device driver provides support for this hardware feature.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/kernel/prom_init.c |8
These routines add support for AES in ECB mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-aes-ecb.c | 133 +++
1 files changed, 133 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in CTR mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/crypto/nx/nx-aes-ctr.c | 175 +++
1 files changed, 175 insertions(+), 0 deletions(-)
create mode
Hi Greg,
On Wed, 2012-03-21 at 15:11 -0700, Greg KH wrote:
On Wed, Mar 21, 2012 at 04:41:20PM -0500, Kent Yoder wrote:
These routines add sysfs files supporting the Power7+ in-Nest encryption
accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
Documentation
Hi Kumar,
Is there a reason this isn't in drivers/crypto/
Other arch-specific dirs have their crypto subdir as well such as
arch/s390. I was just matching that.
Kent
- k
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to
From what I can tell this isn't ISA level instructions and thus should NOT be
in arch/powerpc. This should be moved into drivers/crypto
That makes sense. I'll move them over in my next submission.
Kent
- k
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
Jennings)
- get rid of bitfields in nx_csbcpb.h (Rob Jennings)
- Compile against Ben Herrenschmidt's ppc device naming patch
- Rebase against latest upstream
Kent Yoder (12):
powerpc: crypto: AES-CBC mode routines for nx encryption
powerpc: crypto: AES-CCM mode routines for nx encryption
This patch adds the cas bits to advertise support for the Platform
Facilities Option (PFO) based random number generator accerator.
The pseries-rng driver provides support for this hardware feature.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k
These routines add support for AES in CCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ccm.c | 465
1 files changed, 465 insertions(+), 0 deletions(-)
create mode
Adds support for the Platform Facilities Option (PFO)-based hardware
random number generator for POWER hardware.
Signed-off-by: Michael Neuling mi...@neuling.org
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/char/hw_random
.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/vio.h | 46 +++
arch/powerpc/kernel/vio.c | 273 ++--
2 files changed, 280 insertions(+), 39 deletions(-)
diff
These routines add support for SHA-256 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-sha256.c | 244 +
1 files changed, 244 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in XCBC mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-xcbc.c | 234 +++
1 files changed, 234 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in CBC mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-cbc.c | 140
1 files changed, 140 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in ECB mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ecb.c | 138
1 files changed, 138 insertions(+), 0 deletions(-)
create mode
These files support configuring and building the nx device driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/Makefile |1 +
drivers/crypto/Kconfig | 17 +
drivers/crypto/nx/Makefile | 11 +++
3 files changed, 29 insertions(+), 0
These routines add support for AES in GCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-gcm.c | 353
1 files changed, 353 insertions(+), 0 deletions(-)
create mode
These routines add the base device driver code supporting the Power7+
in-Nest encryption accelerator (nx) device.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx.c| 711 +
drivers/crypto/nx/nx.h| 192
The Platform Facilities Option (PFO) adds several new h_calls and
more return codes.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 25 +++--
1 files changed, 23 insertions
-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/pSeries_reconfig.h | 12
arch/powerpc/platforms/pseries/reconfig.c |7 +++
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/arch
This patch adds the cas bits to advertise support for the Platform
Facilities Option (PFO) based encryption accelerator device. The nx
device driver provides support for this hardware feature.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/kernel/prom_init.c |3 ++-
1
Hi Dave,
On Tue, 2012-04-10 at 14:41 -0400, David Miller wrote:
From: Kent Yoder k...@linux.vnet.ibm.com
Date: Tue, 10 Apr 2012 10:10:57 -0500
These routines add the base device driver code supporting the Power7+
in-Nest encryption accelerator (nx) device.
Signed-off-by: Kent Yoder k
Kent Yoder (12):
powerpc: crypto: nx driver code supporting nx encryption
powerpc: crypto: AES-CBC mode routines for nx encryption
powerpc: crypto: AES-CCM mode routines for nx encryption
powerpc: crypto: AES-CTR mode routines for nx encryption
powerpc: crypto: AES-ECB mode routines
.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/vio.h | 46 +++
arch/powerpc/kernel/vio.c | 273 ++--
2 files changed, 280 insertions(+), 39 deletions(-)
diff
Adds support for the Platform Facilities Option (PFO)-based hardware
random number generator for POWER hardware.
Signed-off-by: Michael Neuling mi...@neuling.org
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/char/hw_random
This patch adds the cas bits to advertise support for the Platform
Facilities Option (PFO) based random number generator accerator.
The pseries-rng driver provides support for this hardware feature.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k
These routines add the base device driver code supporting the Power7+
in-Nest encryption accelerator (nx) device.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx.c| 711 +
drivers/crypto/nx/nx.h| 192
These routines add support for AES in CBC mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-cbc.c | 140
1 files changed, 140 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in CCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ccm.c | 465
1 files changed, 465 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in ECB mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ecb.c | 138
1 files changed, 138 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in GCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-gcm.c | 353
1 files changed, 353 insertions(+), 0 deletions(-)
create mode
These routines add support for SHA-512 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-sha512.c | 263 +
1 files changed, 263 insertions(+), 0 deletions(-)
create mode
These routines add debugfs files supporting the Power7+ in-Nest encryption
accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
Documentation/ABI/testing/debugfs-pfo-nx-crypto | 45 ++
drivers/crypto/nx/nx_debugfs.c | 103
These files support configuring and building the nx device driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/Makefile |1 +
drivers/crypto/Kconfig | 17 +
drivers/crypto/nx/Makefile | 11 +++
3 files changed, 29 insertions(+), 0
This patch adds the cas bits to advertise support for the Platform
Facilities Option (PFO) based encryption accelerator device. The nx
device driver provides support for this hardware feature.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/kernel/prom_init.c |3 ++-
1
These routines add support for AES in CTR mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ctr.c | 177
1 files changed, 177 insertions(+), 0 deletions(-)
create mode
The Platform Facilities Option (PFO) adds several new h_calls and
more return codes.
Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
arch/powerpc/include/asm/hvcall.h | 25 +++--
1 files changed, 23 insertions
These routines add support for SHA-256 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-sha256.c | 244 +
1 files changed, 244 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in CTR mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ctr.c | 178
1 files changed, 178 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in GCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-gcm.c | 353
1 files changed, 353 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in CCM mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-ccm.c | 468
1 files changed, 468 insertions(+), 0 deletions(-)
create mode
These routines add support for AES in XCBC mode on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-aes-xcbc.c | 236 +++
1 files changed, 236 insertions(+), 0 deletions(-)
create mode
These routines add support for SHA-512 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-sha512.c | 265 +
1 files changed, 265 insertions(+), 0 deletions(-)
create mode
These routines add support for SHA-256 hashing on the Power7+ CPU's
in-Nest accelerator driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
drivers/crypto/nx/nx-sha256.c | 246 +
1 files changed, 246 insertions(+), 0 deletions(-)
create mode
.
Acked-by: Kent Yoder k...@linux.vnet.ibm.com
Cc: Kent Yoder k...@linux.vnet.ibm.com
Signed-off-by: Seth Jennings sjenn...@linux.vnet.ibm.com
---
arch/powerpc/Makefile |1 -
drivers/crypto/Makefile |3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch
On Wed, 2012-06-13 at 13:22 -0500, Seth Jennings wrote:
Cc: Kent Yoder k...@linux.vnet.ibm.com
Signed-off-by: Seth Jennings sjenn...@linux.vnet.ibm.com
---
drivers/crypto/Kconfig |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Kent Yoder k...@linux.vnet.ibm.com
diff
() with
list_add(). Therefore perform cleanup to remove all unneeded initializations
of this field in 'crypto/drivers/'.
Acked-by: Kent Yoder k...@linux.vnet.ibm.com
Thanks,
Kent
--
To unsubscribe from this list: send the line unsubscribe linux-crypto in
the body of a message to majord...@vger.kernel.org
Add a MAINTAINERS entry for the IBM Power in-Nest Crypto Acceleators
driver.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
MAINTAINERS |6 ++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index fb036a0..757fe60 100644
--- a/MAINTAINERS
Fixes a race on driver init with registering algorithms where the
driver status flag wasn't being set before self testing started.
Added the cra_alignmask field for CBC and ECB modes.
Fixed a bug in GCM where AES block size was being used instead of
authsize.
Signed-off-by: Kent Yoder k
Yoder wrote:
Hi Ben, will you carry this patch in the linuxppc-dev tree?
I can but I'm on vacation until end of April roughly.
Cheers,
Ben.
Thanks,
Kent
-- Forwarded message --
From: Kent Yoder shpedoi...@gmail.com
Date: Wed, Mar 20, 2013 at 9:22 AM
Subject: [PATCH v2
for number of bytes processed in the sha code.
Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com
---
Patch v3, was: drivers/crypto/nx: fix init race, alignmasks and GCM bug
Applied to:
git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git#next
drivers/crypto/nx/nx-aes-cbc.c | 1
Hi Ben, just a friendly reminder to please apply.
Thanks,
Kent
On Fri, Apr 12, 2013 at 12:13:59PM -0500, Kent Yoder wrote:
Fixes a race on driver init with registering algorithms where the
driver status flag wasn't being set before self testing started.
Added the cra_alignmask field
Thanks!
Kent
On Mon, May 6, 2013 at 4:53 PM, Benjamin Herrenschmidt
b...@kernel.crashing.org wrote:
On Mon, 2013-05-06 at 14:24 -0500, Kent Yoder wrote:
Hi Ben, just a friendly reminder to please apply.
Oh, I assumed that stuff was going via some drivers/crypto maintainer...
I can apply
69 matches
Mail list logo