Skip to content

Misc enhancements to crypto APIs

Daniel P. Berrange qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6crypto: add ability to query the cipher key, block & IV lenscrypto/cipher.c include/crypto/cipher.h tests/test-crypto-cipher.c+95 -02 replies
2/6crypto: add ability to query hash digest lencrypto/hash.c include/crypto/hash.h tests/test-crypto-hash.c+31 -02 replies
3/6crypto: move QCryptoHashAlgorithm enum definition into QAPIcrypto/hash.c include/crypto/hash.h qapi/crypto.json+18 -102 replies
4/6crypto: move QCryptoCipherAlgorithm/Mode enum definitions into QAPIcrypto/cipher.c include/crypto/cipher.h qapi/crypto.json+36 -191 reply
5/6crypto: ensure qapi/crypto.json is listed in qapi-modulesMakefile+2 -12 replies
6/6crypto: fix transposed arguments in cipher error messagecrypto/cipher.c+1 -11 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] Misc enhancements to crypto APIs

This is a small series of misc enhancements to the crypto APIs. A couple of helper methods are added for getting data sizes, some enums are converted to use QAPI schema and a couple of minor bugs are squashed

Daniel P. Berrange (6):
crypto: add ability to query the cipher key, block & IV lens
crypto: add ability to query hash digest len
crypto: move QCryptoHashAlgorithm enum definition into QAPI
crypto: move QCryptoCipherAlgorithm/Mode enum definitions into QAPI
crypto: ensure qapi/crypto.json is listed in qapi-modules
crypto: fix transposed arguments in cipher error message

 Makefile                   |  3 ++-
 crypto/cipher.c            | 54 +++++++++++++++++++++++++++++++++++++++++++---
 crypto/hash.c              | 17 ++++++++++++++-
 include/crypto/cipher.h    | 54 +++++++++++++++++++++++++++++++++-------------
 include/crypto/hash.h      | 20 ++++++++++-------
 qapi/crypto.json           | 45 ++++++++++++++++++++++++++++++++++++++
 tests/test-crypto-cipher.c | 10 +++++++++
 tests/test-crypto-hash.c   |  5 +++++
 8 files changed, 180 insertions(+), 28 deletions(-)
Signature · 1 line
2.5.0