crypto: Key Derivation Function (SP800-108)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 patches 5 repliesIn review
- v44 patches 1 replySuperseded
- v34 patches 4 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 4 patches | 5 replies | Superseded | |
| v1 | 4 patches | 6 replies | Superseded |
Changes in v5 from the cover letter
* move rng_instance and __crypto_rng_alg into rng.c
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | crypto: add template handling for RNGscrypto/ include/ | +70 | 0 replies | |
| 2/4 | crypto: kdf - add known answer testscrypto/ crypto/ | +336 | 0 replies | |
| 3/4 | crypto: kdf - SP800-108 Key Derivation Functioncrypto/ | +508 | 5 replies | |
| 4/4 | crypto: kdf - enable compilationcrypto/ crypto/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 0/4] crypto: Key Derivation Function (SP800-108)
Hi,
this patch set implements all three key derivation functions defined in SP800-108.
The implementation is provided as a template for random number generators, since a KDF can be considered a form of deterministic RNG where the key material is used as a seed.
With the KDF implemented as a template, all types of keyed and non-keyed hashes can be utilized, including HMAC and CMAC. The testmgr tests are derived from publicly available test vectors from NIST.
The KDF are all tested with a complete round of CAVS testing on 32 and 64 bit.
The patch set introduces an extension to the kernel crypto API in the first patch by adding a template handling for random number generators based on the same logic as for keyed hashes.
Changes v5:
* move rng_instance and __crypto_rng_alg into rng.c
Changes v4:
* removal of the check that src and dst buffers are not the same from the KDF implementations as requested by Herbert
* implement and use new free API in the RNG instance handling as requested by Herbert
* move the instance handling code from include/crypto/rng.h to include/crypto/internal/rng.h
Changes v3:
* port testmgr patch to current cryptodev-2.6 tree
* add non-keyed KDF references to testmgr.c
Changes v2:
* port to 4.7-rc1
Stephan Mueller (4):
crypto: add template handling for RNGs
crypto: kdf - add known answer tests
crypto: kdf - SP800-108 Key Derivation Function
crypto: kdf - enable compilation
crypto/Kconfig | 7 + crypto/Makefile | 1 + crypto/kdf.c | 508 ++++++++++++++++++++++++++++++++++++++++++ crypto/rng.c | 44 ++++ crypto/testmgr.c | 226 +++++++++++++++++++ crypto/testmgr.h | 110 +++++++++ include/crypto/internal/rng.h | 26 +++ 7 files changed, 922 insertions(+) create mode 100644 crypto/kdf.c
Signature · 1 line
2.7.4