Announce loop-AES-v3.6e file/swap crypto package

2011-11-29 Thread Jari Ruusu
loop-AES changes since previous release: - Worked around block layer interface breakage on 3.2-rc kernels. bzip2 compressed tarball is here: http://loop-aes.sourceforge.net/loop-AES/loop-AES-v3.6e.tar.bz2 md5sum b8bf83f3d21a6ad1ea49ac30f9ec130d

[RFC][PATCH 00/16] Crypto keys and module signing [ver #2]

2011-11-29 Thread David Howells
Here are a set of patches that create a framework for using cryptographic keys within the kernel. The patches can also be found at: http://git.kernel.org/?p=linux/kernel/git/dhowells/linux-modsign.git;a=shortlog;h=refs/heads/devel The basic crypto key has no requirements as to how the

[PATCH 03/16] KEYS: Permit key_serial() to be called with a const key pointer [ver #2]

2011-11-29 Thread David Howells
Permit key_serial() to be called with a const key pointer. Signed-off-by: David Howells dhowe...@redhat.com --- include/linux/key.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/key.h b/include/linux/key.h index 183a6af..f87b51b 100644 ---

[PATCH 13/16] KEYS: Provide a function to load keys from a PGP keyring blob [ver #2]

2011-11-29 Thread David Howells
Provide a function to load keys from a PGP keyring blob for use in initialising the module signing key keyring: int load_PGP_keys(const u8 *pgpdata, size_t pgpdatalen, struct key *keyring, const char *descprefix); The keys are labelled with descprefix plus a

[PATCH 09/16] KEYS: Add signature verification facility [ver #2]

2011-11-29 Thread David Howells
Add a facility whereby a key subtype may be asked to verify a signature against the data it is purported to have signed. Signed-off-by: David Howells dhowe...@redhat.com --- Documentation/security/keys-crypto.txt | 106 +++- include/keys/crypto-subtype.h |

[PATCH 11/16] KEYS: RSA key signature verification [ver #2]

2011-11-29 Thread David Howells
Signature verification routines for RSA crypto key subtype. Signed-off-by: David Howells dhowe...@redhat.com --- security/keys/Makefile |2 security/keys/crypto_rsa.h | 11 + security/keys/crypto_rsa_subtype.c | 15 + security/keys/crypto_rsa_verify.c | 519

[PATCH 12/16] KEYS: Add a crypto key request function [ver #2]

2011-11-29 Thread David Howells
Add a function by which crypto keys can be requested. A keyring is supplied for the function to search (which can be, say, a system keyring containing keys for kernel module signature checking). The function also provides a point at which hardware key caches, such as a TPM, can be consulted.

[PATCH 10/16] KEYS: DSA key signature verification [ver #2]

2011-11-29 Thread David Howells
Signature verification routines for DSA crypto key subtype. Signed-off-by: David Howells dhowe...@redhat.com --- security/keys/Makefile|2 security/keys/crypto_dsa.h| 11 + security/keys/crypto_dsa_verify.c | 384 + 3 files

[PATCH 08/16] PGP: Add signature parser [ver #2]

2011-11-29 Thread David Howells
Add some PGP signature parsing helpers: (1) A function to parse V4 signature subpackets and pass the desired ones to a processor function: int pgp_parse_sig_subpkts(const u8 *data, size_t datalen, struct pgp_parse_sig_context *ctx); (2) A

[PATCH 14/16] MODSIGN: Add indications of module ELF types [ver #2]

2011-11-29 Thread David Howells
Add per-arch indications of module ELF types and relocation table entry types. Signed-Off-By: David Howells dhowe...@redhat.com --- arch/alpha/include/asm/module.h |3 +++ arch/arm/include/asm/module.h |5 + arch/cris/include/asm/module.h|5 +

[PATCH 05/16] KEYS: Create a key type that can be used for general cryptographic operations [ver #2]

2011-11-29 Thread David Howells
Create a key type that can be used for general cryptographic operations, such as encryption, decryption, signature generation and signature verification. The key type is crypto and can provide access to a variety of cryptographic algorithms. Signed-off-by: David Howells dhowe...@redhat.com ---

[PATCH 02/16] MPILIB: Add a missing ENOMEM check [ver #2]

2011-11-29 Thread David Howells
Add a missing ENOMEM check. Signed-off-by: David Howells dhowe...@redhat.com --- lib/mpi/mpicoder.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/mpi/mpicoder.c b/lib/mpi/mpicoder.c index fe84bb9..6e225a8 100644 --- a/lib/mpi/mpicoder.c +++ b/lib/mpi/mpicoder.c

[PATCH 06/16] KEYS: Add a DSA crypto key subtype [ver #2]

2011-11-29 Thread David Howells
Add a key subtype for handling DSA crypto keys. For the moment it only provides a signature verification facility. Signed-off-by: David Howells dhowe...@redhat.com --- security/Kconfig | 10 + security/keys/Makefile |2 security/keys/crypto_dsa.h |

[PATCH 15/16] MODSIGN: Module ELF verifier [ver #2]

2011-11-29 Thread David Howells
Do preliminary verification of the ELF structure of a module. This is used to make sure that the ELF structure can then be used to check the module signature and access the module data without breaking the module loader. If the module's ELF metadata is determined to be bad, then ELIBBAD will be

[PATCH 04/16] PGP: Add definitions (RFC 4880) and packet parser [ver #2]

2011-11-29 Thread David Howells
Add some useful PGP definitions from RFC 4880. These describe details of public key crypto as used by crypto keys for things like signature verification. Also add a simple parser that extracts the packets from a PGP blob and passes the desirous ones to the given processor function: