8 struct session_op sess
;
12 #define AES_BLOCK_SIZE 16
14 int aes_ctx_init(struct cryptodev_ctx
* ctx
, int cfd
, const uint8_t *key
, unsigned int key_size
);
15 void aes_ctx_deinit();
16 int aes_encrypt(struct cryptodev_ctx
* ctx
, const void* iv
, const void* plaintext
, void* ciphertext
, size_t size
);
17 int aes_decrypt(struct cryptodev_ctx
* ctx
, const void* iv
, const void* ciphertext
, void* plaintext
, size_t size
);