8 struct session_op sess
;
12 #define AES_BLOCK_SIZE 16
14 int aes_sha1_ctx_init(struct cryptodev_ctx
* ctx
, int cfd
,
15 const uint8_t *key
, unsigned int key_size
,
16 const uint8_t *mac_key
, unsigned int mac_key_size
);
17 void aes_sha1_ctx_deinit();
19 /* Note that encryption assumes that ciphertext has enough size
20 * for the tag and padding to be appended.
22 * Only in-place encryption and decryption are supported.
24 int aes_sha1_encrypt(struct cryptodev_ctx
* ctx
, const void* iv
,
25 const void* auth
, size_t auth_size
,
26 void* plaintext
, size_t size
);
27 int aes_sha1_decrypt(struct cryptodev_ctx
* ctx
, const void* iv
,
28 const void* auth
, size_t auth_size
,
29 void* ciphertext
, size_t size
);