crypto: cipher: introduce context free function
commitcc5eff0186001790e6c15f155e376b9e9c43fc56
authorLongpeng(Mike) <longpeng2@huawei.com>
Fri, 14 Jul 2017 18:03:54 +0000 (14 14:03 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Jul 2017 09:11:04 +0000 (19 10:11 +0100)
treef33067c43d843a8dae9e0a287b7cbc92a4baa770
parent6887dc6700ccb7820d8a9d370f421ee361c748e8
crypto: cipher: introduce context free function

Refactors the qcrypto_cipher_free(), splits it into two parts. One
is gcrypt/nettle__cipher_free_ctx() to free the special context.

This makes code more clear, what's more, it would be used by the
later patch.

Reviewed-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/cipher-gcrypt.c
crypto/cipher-nettle.c