Loading...
Searching...
No Matches
psa_cryptocell_310_aes_common.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
21#ifndef PSA_CRYPTOCELL_310_AES_COMMON_H
22#define PSA_CRYPTOCELL_310_AES_COMMON_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include "psa/crypto.h"
29
43 SaSiAesEncryptMode_t direction,
44 SaSiAesOperationMode_t mode,
45 SaSiAesPaddingType_t padding,
46 const uint8_t *iv,
47 const uint8_t *key_buffer,
48 size_t key_size);
49
62 const uint8_t *input,
63 size_t input_length,
64 uint8_t *output,
65 size_t output_buffer_size,
66 size_t *output_length);
67
68#ifdef __cplusplus
69}
70#endif
71
72#endif /* PSA_CRYPTOCELL_310_AES_COMMON_H */
Function declarations for PSA Crypto.
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition error.h:41
psa_status_t cryptocell_310_common_aes_setup(SaSiAesUserContext_t *ctx, SaSiAesEncryptMode_t direction, SaSiAesOperationMode_t mode, SaSiAesPaddingType_t padding, const uint8_t *iv, const uint8_t *key_buffer, size_t key_size)
Common setup function for AES operations.
psa_status_t cryptocell_310_common_aes_encrypt_decrypt(SaSiAesUserContext_t *ctx, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_buffer_size, size_t *output_length)
Common function for an AES encryption.