blob: ea8ed7ea9e4562952b9d06fac2baa2bdb120d7ca [file] [log] [blame]
Denys Vlasenkob7e9ae62017-01-18 17:20:27 +01001/*
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
9int32 psAesInitKey(const unsigned char *key, uint32 keylen, psAesKey_t *skey);
10void psAesEncryptBlock(const unsigned char *pt, unsigned char *ct,
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);