Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 76069
b: refs/heads/master
c: 3611553
h: refs/heads/master
i:
  76067: a1995df
v: v3
  • Loading branch information
Haavard Skinnemoen committed Jan 25, 2008
1 parent b5296dd commit 26e57e3
Show file tree
Hide file tree
Showing 332 changed files with 9,029 additions and 25,831 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e07dd2ad305f6b29b47d713600aa8b722ef2a9f7
refs/heads/master: 3611553ef985ef7c5863c8a94641738addd04cff
41 changes: 25 additions & 16 deletions trunk/Documentation/crypto/api-intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,9 @@ The idea is to make the user interface and algorithm registration API
very simple, while hiding the core logic from both. Many good ideas
from existing APIs such as Cryptoapi and Nettle have been adapted for this.

The API currently supports five main types of transforms: AEAD (Authenticated
Encryption with Associated Data), Block Ciphers, Ciphers, Compressors and
Hashes.

Please note that Block Ciphers is somewhat of a misnomer. It is in fact
meant to support all ciphers including stream ciphers. The difference
between Block Ciphers and Ciphers is that the latter operates on exactly
one block while the former can operate on an arbitrary amount of data,
subject to block size requirements (i.e., non-stream ciphers can only
process multiples of blocks).
The API currently supports three types of transforms: Ciphers, Digests and
Compressors. The compression algorithms especially seem to be performing
very well so far.

Support for hardware crypto devices via an asynchronous interface is
under development.
Expand Down Expand Up @@ -76,12 +69,29 @@ Here's an example of how to use the API:
Many real examples are available in the regression test module (tcrypt.c).


CONFIGURATION NOTES

As Triple DES is part of the DES module, for those using modular builds,
add the following line to /etc/modprobe.conf:

alias des3_ede des

The Null algorithms reside in the crypto_null module, so these lines
should also be added:

alias cipher_null crypto_null
alias digest_null crypto_null
alias compress_null crypto_null

The SHA384 algorithm shares code within the SHA512 module, so you'll
also need:
alias sha384 sha512


DEVELOPER NOTES

Transforms may only be allocated in user context, and cryptographic
methods may only be called from softirq and user contexts. For
transforms with a setkey method it too should only be called from
user context.
methods may only be called from softirq and user contexts.

When using the API for ciphers, performance will be optimal if each
scatterlist contains data which is a multiple of the cipher's block
Expand Down Expand Up @@ -120,9 +130,8 @@ might already be working on.
BUGS

Send bug reports to:
linux-crypto@vger.kernel.org
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
David S. Miller <davem@redhat.com>
Herbert Xu <herbert@gondor.apana.org.au>
Cc: David S. Miller <davem@redhat.com>


FURTHER INFORMATION
Expand Down
Loading

0 comments on commit 26e57e3

Please sign in to comment.