0a8dabda40
This is still somewhat experimental. Tested between 2 similar boxes so far. There is much potential for performance improvement. For now, I've changed the gmac code to accept any data alignment, as the "char *" pointer suggests. As the code is practically used, 32-bit alignment can be assumed, at the cost of data copies. I don't know whether bytewise access or copies are worse performance-wise. For efficient implementations using SSE2 instructions on x86, even stricter alignment requirements might arise.
31 lines
1008 B
Plaintext
31 lines
1008 B
Plaintext
# $NetBSD: files.opencrypto,v 1.24 2011/05/26 21:50:03 drochner Exp $
|
|
#
|
|
#
|
|
|
|
# Opencrypto framework.
|
|
# Devices that provide crypto transforms via opencrypto, or subsystems
|
|
# that use the opencrypto framework, should list opencrypto as a dependency
|
|
# to pull in the framework.
|
|
|
|
define opencrypto
|
|
file opencrypto/criov.c opencrypto
|
|
file opencrypto/xform.c opencrypto
|
|
file opencrypto/crypto.c opencrypto
|
|
|
|
# Pseudo-device that provides software implementations of various cryptographic
|
|
# algorithms.
|
|
defpseudo swcrypto: opencrypto,
|
|
blowfish, des, cast128, rijndael, skipjack, camellia
|
|
file opencrypto/cryptosoft.c swcrypto
|
|
file opencrypto/deflate.c swcrypto # wrapper around zlib
|
|
file opencrypto/aesxcbcmac.c swcrypto
|
|
file opencrypto/gmac.c swcrypto
|
|
|
|
# Pseudo-device for userspace access to opencrypto
|
|
# (and thus crypto hardware accelerators).
|
|
defpseudo crypto: opencrypto
|
|
file opencrypto/cryptodev.c crypto
|
|
file opencrypto/ocryptodev.c crypto & compat_50
|
|
|
|
defflag opt_ocf.h CRYPTO_DEBUG CRYPTO_TIMING
|