mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
crypto: virtio - Read crypto services and algorithm masks
Read the crypto services and algorithm masks which provides information about the services and algorithms supported by virtio-crypto backend. Signed-off-by: Farhan Ali <alifm@linux.ibm.com> Acked-by: Gonglei <arei.gonglei@huawei.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -55,6 +55,20 @@ struct virtio_crypto {
|
||||
/* Number of queue currently used by the driver */
|
||||
u32 curr_queue;
|
||||
|
||||
/*
|
||||
* Specifies the services mask which the device support,
|
||||
* see VIRTIO_CRYPTO_SERVICE_*
|
||||
*/
|
||||
u32 crypto_services;
|
||||
|
||||
/* Detailed algorithms mask */
|
||||
u32 cipher_algo_l;
|
||||
u32 cipher_algo_h;
|
||||
u32 hash_algo;
|
||||
u32 mac_algo_l;
|
||||
u32 mac_algo_h;
|
||||
u32 aead_algo;
|
||||
|
||||
/* Maximum length of cipher key */
|
||||
u32 max_cipher_key_len;
|
||||
/* Maximum length of authenticated key */
|
||||
|
||||
Reference in New Issue
Block a user