summaryrefslogtreecommitdiff
path: root/networking/tls_aes.h
blob: e9e3721f13f749de36f4b4dbbd9b7c1b635779d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * Copyright (C) 2017 Denys Vlasenko
 *
 * Licensed under GPLv2, see file LICENSE in this source tree.
 *
 * Selected few declarations for AES.
 */

void aes_setkey(struct tls_aes *aes, const void *key, unsigned key_len) FAST_FUNC;

void aes_encrypt_one_block(struct tls_aes *aes, const void *data, void *dst) FAST_FUNC;

void aes_cbc_encrypt(struct tls_aes *aes, void *iv, const void *data, size_t len, void *dst) FAST_FUNC;
void aes_cbc_decrypt(struct tls_aes *aes, void *iv, const void *data, size_t len, void *dst) FAST_FUNC;