Loading...
Searching...
No Matches
psa_ciphers.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_CIPHERS_H
22#define PSA_CIPHERS_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include "psa/crypto.h"
29#include "psa/crypto_contexts.h"
30
47 const uint8_t *key_buffer,
48 size_t key_buffer_size,
50 const uint8_t *input,
51 size_t input_length,
52 uint8_t *output,
53 size_t output_size,
54 size_t *output_length);
55
72 const uint8_t *key_buffer,
73 size_t key_buffer_size,
75 const uint8_t *input,
76 size_t input_length,
77 uint8_t *output,
78 size_t output_size,
79 size_t *output_length);
80
97 const uint8_t *key_buffer,
98 size_t key_buffer_size,
100 const uint8_t *input,
101 size_t input_length,
102 uint8_t *output,
103 size_t output_size,
104 size_t *output_length);
105
122 const uint8_t *key_buffer,
123 size_t key_buffer_size,
124 psa_algorithm_t alg,
125 const uint8_t *input,
126 size_t input_length,
127 uint8_t *output,
128 size_t output_size,
129 size_t *output_length);
130
131#ifdef __cplusplus
132}
133#endif
134
135#endif /* PSA_CIPHERS_H */
Function declarations for PSA Crypto.
Context definitions for PSA Crypto.
uint32_t psa_algorithm_t
Encoding of a cryptographic algorithm.
psa_status_t psa_cipher_cbc_aes_192_encrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Low level wrapper function to call a driver for an AES 192 CBC encryption.
psa_status_t psa_cipher_cbc_aes_128_encrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Low level wrapper function to call a driver for an AES 128 CBC encryption.
psa_status_t psa_cipher_cbc_aes_128_decrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Low level wrapper function to call a driver for an AES 128 CBC decryption.
psa_status_t psa_cipher_cbc_aes_256_encrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *output, size_t output_size, size_t *output_length)
Low level wrapper function to call a driver for an AES 256 CBC encryption.
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition error.h:41
Structure storing key attributes.