11#ifndef MBEDTLS_BLOCK_CIPHER_INTERNAL_H
12#define MBEDTLS_BLOCK_CIPHER_INTERNAL_H
32 memset(ctx, 0,
sizeof(*ctx));
68 const unsigned char *key,
86 const unsigned char input[16],
87 unsigned char output[16]);
Internal abstraction layer.
int mbedtls_block_cipher_setkey(mbedtls_block_cipher_context_t *ctx, const unsigned char *key, unsigned key_bitlen)
Set the key into the context.
int mbedtls_block_cipher_setup(mbedtls_block_cipher_context_t *ctx, mbedtls_cipher_id_t cipher_id)
Set the block cipher to use with this context. This must be called after mbedtls_block_cipher_init().
void mbedtls_block_cipher_free(mbedtls_block_cipher_context_t *ctx)
Clear the context.
int mbedtls_block_cipher_encrypt(mbedtls_block_cipher_context_t *ctx, const unsigned char input[16], unsigned char output[16])
Encrypt one block (16 bytes) with the configured key.
This file contains an abstraction interface for use with the cipher primitives provided by the librar...
mbedtls_cipher_id_t
Supported cipher types.
Definition cipher.h:66
Build-time configuration info.
Definition block_cipher.h:52
struct VirtioInputEvent * input
Definition virtiokbd.c:46