aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_aes.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-02-04 16:23:49 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2017-02-04 16:23:49 +0100
commitc31b54fd81690b3df3898437f5865674d06e6577 (patch)
tree22029dfd1c4892cf300051b486cc11ca8593e5d4 /networking/tls_aes.h
parent5b05d9db29843144b2ed620ca437d6a3bacc3816 (diff)
downloadbusybox-w32-c31b54fd81690b3df3898437f5865674d06e6577.tar.gz
busybox-w32-c31b54fd81690b3df3898437f5865674d06e6577.tar.bz2
busybox-w32-c31b54fd81690b3df3898437f5865674d06e6577.zip
tls: fold AES CBC en/decryption into single functions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r--networking/tls_aes.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/networking/tls_aes.h b/networking/tls_aes.h
index ea8ed7ea9..c6791866a 100644
--- a/networking/tls_aes.h
+++ b/networking/tls_aes.h
@@ -6,15 +6,5 @@
6 * Selected few declarations for AES. 6 * Selected few declarations for AES.
7 */ 7 */
8 8
9int32 psAesInitKey(const unsigned char *key, uint32 keylen, psAesKey_t *skey); 9void aes_cbc_encrypt(const void *key, int klen, void *iv, const void *data, size_t len, void *dst);
10void psAesEncryptBlock(const unsigned char *pt, unsigned char *ct, 10void aes_cbc_decrypt(const void *key, int klen, void *iv, const void *data, size_t len, void *dst);
11 psAesKey_t *skey);
12void psAesDecryptBlock(const unsigned char *ct, unsigned char *pt,
13 psAesKey_t *skey);
14
15int32 psAesInit(psCipherContext_t *ctx, unsigned char *IV,
16 unsigned char *key, uint32 keylen);
17int32 psAesEncrypt(psCipherContext_t *ctx, unsigned char *pt,
18 unsigned char *ct, uint32 len);
19int32 psAesDecrypt(psCipherContext_t *ctx, unsigned char *ct,
20 unsigned char *pt, uint32 len);