forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: net/ieee80211/ieee80211_crypt_tkip.c net/ieee80211/ieee80211_crypt_wep.c
- Loading branch information
Showing
632 changed files
with
50,610 additions
and
17,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,15 +19,14 @@ At the lowest level are algorithms, which register dynamically with the | |
API. | ||
|
||
'Transforms' are user-instantiated objects, which maintain state, handle all | ||
of the implementation logic (e.g. manipulating page vectors), provide an | ||
abstraction to the underlying algorithms, and handle common logical | ||
operations (e.g. cipher modes, HMAC for digests). However, at the user | ||
of the implementation logic (e.g. manipulating page vectors) and provide an | ||
abstraction to the underlying algorithms. However, at the user | ||
level they are very simple. | ||
|
||
Conceptually, the API layering looks like this: | ||
|
||
[transform api] (user interface) | ||
[transform ops] (per-type logic glue e.g. cipher.c, digest.c) | ||
[transform ops] (per-type logic glue e.g. cipher.c, compress.c) | ||
[algorithm api] (for registering algorithms) | ||
|
||
The idea is to make the user interface and algorithm registration API | ||
|
@@ -44,22 +43,27 @@ under development. | |
Here's an example of how to use the API: | ||
|
||
#include <linux/crypto.h> | ||
#include <linux/err.h> | ||
#include <linux/scatterlist.h> | ||
|
||
struct scatterlist sg[2]; | ||
char result[128]; | ||
struct crypto_tfm *tfm; | ||
struct crypto_hash *tfm; | ||
struct hash_desc desc; | ||
|
||
tfm = crypto_alloc_tfm("md5", 0); | ||
if (tfm == NULL) | ||
tfm = crypto_alloc_hash("md5", 0, CRYPTO_ALG_ASYNC); | ||
if (IS_ERR(tfm)) | ||
fail(); | ||
|
||
/* ... set up the scatterlists ... */ | ||
|
||
desc.tfm = tfm; | ||
desc.flags = 0; | ||
|
||
crypto_digest_init(tfm); | ||
crypto_digest_update(tfm, &sg, 2); | ||
crypto_digest_final(tfm, result); | ||
if (crypto_hash_digest(&desc, &sg, 2, result)) | ||
fail(); | ||
|
||
crypto_free_tfm(tfm); | ||
crypto_free_hash(tfm); | ||
|
||
|
||
Many real examples are available in the regression test module (tcrypt.c). | ||
|
@@ -126,21 +130,22 @@ might already be working on. | |
BUGS | ||
|
||
Send bug reports to: | ||
James Morris <[email protected]> | ||
Herbert Xu <[email protected]> | ||
Cc: David S. Miller <[email protected]> | ||
|
||
|
||
FURTHER INFORMATION | ||
|
||
For further patches and various updates, including the current TODO | ||
list, see: | ||
http://samba.org/~jamesm/crypto/ | ||
http://gondor.apana.org.au/~herbert/crypto/ | ||
|
||
|
||
AUTHORS | ||
|
||
James Morris | ||
David S. Miller | ||
Herbert Xu | ||
|
||
|
||
CREDITS | ||
|
@@ -238,8 +243,11 @@ Anubis algorithm contributors: | |
Tiger algorithm contributors: | ||
Aaron Grothe | ||
|
||
VIA PadLock contributors: | ||
Michal Ludvig | ||
|
||
Generic scatterwalk code by Adam J. Richter <[email protected]> | ||
|
||
Please send any credits updates or corrections to: | ||
James Morris <[email protected]> | ||
Herbert Xu <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,6 +298,14 @@ L: [email protected] | |
W: http://www.amd.com/us-en/ConnectivitySolutions/TechnicalResources/0,,50_2334_2452_11363,00.html | ||
S: Supported | ||
|
||
AMSO1100 RNIC DRIVER | ||
P: Tom Tucker | ||
M: [email protected] | ||
P: Steve Wise | ||
M: [email protected] | ||
L: [email protected] | ||
S: Maintained | ||
|
||
AOA (Apple Onboard Audio) ALSA DRIVER | ||
P: Johannes Berg | ||
M: [email protected] | ||
|
@@ -991,6 +999,14 @@ EFS FILESYSTEM | |
W: http://aeschi.ch.eu.org/efs/ | ||
S: Orphan | ||
|
||
EHCA (IBM GX bus InfiniBand adapter) DRIVER: | ||
P: Hoang-Nam Nguyen | ||
M: [email protected] | ||
P: Christoph Raisch | ||
M: [email protected] | ||
L: [email protected] | ||
S: Supported | ||
|
||
EMU10K1 SOUND DRIVER | ||
P: James Courtier-Dutton | ||
M: [email protected] | ||
|
@@ -1783,6 +1799,13 @@ W: http://www.penguinppc.org/ | |
L: [email protected] | ||
S: Maintained | ||
|
||
LINUX FOR POWERPC PA SEMI PWRFICIENT | ||
P: Olof Johansson | ||
M: [email protected] | ||
W: http://www.pasemi.com/ | ||
L: [email protected] | ||
S: Supported | ||
|
||
LLC (802.2) | ||
P: Arnaldo Carvalho de Melo | ||
M: [email protected] | ||
|
@@ -2451,6 +2474,8 @@ S: Maintained | |
S390 | ||
P: Martin Schwidefsky | ||
M: [email protected] | ||
P: Heiko Carstens | ||
M: [email protected] | ||
M: [email protected] | ||
L: [email protected] | ||
W: http://www.ibm.com/developerworks/linux/linux390/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.