mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
The VIA Padlock device requires the input and output buffers to be aligned on 16-byte boundaries. This patch adds the alignmask attribute for low-level cipher implementations to indicate their alignment requirements. The mid-level crypt() function will copy the input/output buffers if they are not aligned correctly before they are passed to the low-level implementation. Strictly speaking, some of the software implementations require the buffers to be aligned on 4-byte boundaries as they do 32-bit loads. However, it is not clear whether it is better to copy the buffers or pay the penalty for unaligned loads/stores. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> |
||
|---|---|---|
| .. | ||
| aes.c | ||
| anubis.c | ||
| api.c | ||
| arc4.c | ||
| blowfish.c | ||
| cast5.c | ||
| cast6.c | ||
| cipher.c | ||
| compress.c | ||
| crc32c.c | ||
| crypto_null.c | ||
| deflate.c | ||
| des.c | ||
| digest.c | ||
| hmac.c | ||
| internal.h | ||
| Kconfig | ||
| khazad.c | ||
| Makefile | ||
| md4.c | ||
| md5.c | ||
| michael_mic.c | ||
| proc.c | ||
| scatterwalk.c | ||
| scatterwalk.h | ||
| serpent.c | ||
| sha1.c | ||
| sha256.c | ||
| sha512.c | ||
| tcrypt.c | ||
| tcrypt.h | ||
| tea.c | ||
| tgr192.c | ||
| twofish.c | ||
| wp512.c | ||