summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorGonglei2016-09-26 11:23:22 +0200
committerDaniel P. Berrange2016-10-19 11:09:24 +0200
commit3c28292f390f642bbb3dba0949ecf36aaf7be0d6 (patch)
tree21c65cff1327d46cac536b32c671b6bcdd696715 /include/exec
parentcrypto: extend mode as a parameter in qcrypto_cipher_supports() (diff)
downloadqemu-3c28292f390f642bbb3dba0949ecf36aaf7be0d6.tar.gz
qemu-3c28292f390f642bbb3dba0949ecf36aaf7be0d6.tar.xz
qemu-3c28292f390f642bbb3dba0949ecf36aaf7be0d6.zip
crypto: add CTR mode support
Introduce CTR mode support for the cipher APIs. CTR mode uses a counter rather than a traditional IV. The counter has additional properties, including a nonce and initial counter block. We reuse the ctx->iv as the counter for conveniences. Both libgcrypt and nettle are support CTR mode, the cipher-builtin doesn't support yet. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions