4 * Copyright (c) 2003-2007, Jouni Malinen <j@w1.fi>
6 * This software may be distributed under the terms of the BSD license.
7 * See README for more details.
17 * aes_128_encrypt_block - Perform one AES 128-bit block operation
19 * @in: Input data (16 bytes)
20 * @out: Output of the AES block operation (16 bytes)
21 * Returns: 0 on success, -1 on failure
23 int aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out)
26 ctx = aes_encrypt_init(key, 16);
29 aes_encrypt(ctx, in, out);
30 aes_encrypt_deinit(ctx);