diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-18 17:20:27 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-01-18 17:20:27 +0100 |
commit | b7e9ae6e9f8b1683774e2a69b943cec31c94f5a2 (patch) | |
tree | 4bf0f676a01bcb99a58b5987cb4cc9590a1c1d6b /networking/tls_aes.h | |
parent | c8ba23bcec94ecbc8ee82053d1b7e299cc839184 (diff) | |
download | busybox-w32-b7e9ae6e9f8b1683774e2a69b943cec31c94f5a2.tar.gz busybox-w32-b7e9ae6e9f8b1683774e2a69b943cec31c94f5a2.tar.bz2 busybox-w32-b7e9ae6e9f8b1683774e2a69b943cec31c94f5a2.zip |
tls: added AES code and made it compile. not used yet
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/tls_aes.h')
-rw-r--r-- | networking/tls_aes.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/networking/tls_aes.h b/networking/tls_aes.h new file mode 100644 index 000000000..ea8ed7ea9 --- /dev/null +++ b/networking/tls_aes.h | |||
@@ -0,0 +1,20 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2017 Denys Vlasenko | ||
3 | * | ||
4 | * Licensed under GPLv2, see file LICENSE in this source tree. | ||
5 | * | ||
6 | * Selected few declarations for AES. | ||
7 | */ | ||
8 | |||
9 | int32 psAesInitKey(const unsigned char *key, uint32 keylen, psAesKey_t *skey); | ||
10 | void psAesEncryptBlock(const unsigned char *pt, unsigned char *ct, | ||
11 | psAesKey_t *skey); | ||
12 | void psAesDecryptBlock(const unsigned char *ct, unsigned char *pt, | ||
13 | psAesKey_t *skey); | ||
14 | |||
15 | int32 psAesInit(psCipherContext_t *ctx, unsigned char *IV, | ||
16 | unsigned char *key, uint32 keylen); | ||
17 | int32 psAesEncrypt(psCipherContext_t *ctx, unsigned char *pt, | ||
18 | unsigned char *ct, uint32 len); | ||
19 | int32 psAesDecrypt(psCipherContext_t *ctx, unsigned char *ct, | ||
20 | unsigned char *pt, uint32 len); | ||