Lines Matching refs:crypto

7 The Linux kernel's crypto library (``lib/crypto/``) provides kernel-internal
9 algorithms than the traditional kernel crypto API.
14 The crypto library functions are intended to be boring and straightforward, and
18 Note that the crypto library isn't entirely new. ``lib/`` has contained some
19 crypto functions since 2005. Rather, it's just an approach that's been expanded
26 The crypto library documentation is primarily meant for kernel developers who
29 developers working on the crypto algorithm implementations themselves.
32 differences between the different crypto algorithms or how to select an
36 predefined, please reach out to ``linux-crypto@vger.kernel.org`` for advice.
41 - ``lib/crypto/*.c``: the crypto algorithm implementations
43 - ``lib/crypto/$(SRCARCH)/``: architecture-specific code for crypto algorithms.
48 - ``lib/crypto/tests/``: KUnit tests for the crypto algorithms
50 - ``include/crypto/``: crypto headers, for both the crypto library and the
51 traditional crypto API
67 Note that the crypto library doesn't use the ``crypto/``,
68 ``arch/$(SRCARCH)/crypto/``, or ``drivers/crypto/`` directories. These
69 directories are used by the traditional crypto API. When possible, algorithms
70 in the traditional crypto API are implemented by calls into the library.
75 Some of the advantages of the library over the traditional crypto API are:
84 call the crypto algorithms directly without inefficient indirect calls, memory
93 of systems: CPU-based implementations of the crypto algorithms, utilizing
98 - The library tends to have higher assurance implementations of the crypto
103 traditional crypto API, for example interleaved hashing and XOFs.
108 In-kernel users should use the library (rather than the traditional crypto API)
113 an arbitrary algorithm from the traditional crypto API by name. These features
114 generally will have to keep using the traditional crypto API for backwards
126 The crypto library uses standard KUnit tests. Like many of the kernel's other
130 A ``.kunitconfig`` file is also provided to run just the crypto library tests.
135 tools/testing/kunit/kunit.py run --kunitconfig=lib/crypto/
137 Many of the crypto algorithms have architecture-optimized implementations.
143 tools/testing/kunit/kunit.py run --kunitconfig=lib/crypto/ --arch=arm64 --make_options LLVM=1
151 Note: the crypto library also includes FIPS 140 self-tests. These are