Mbed TLS v4.1.1
Toggle main menu visibility
Loading...
Searching...
No Matches
nist_kw.h
Go to the documentation of this file.
1
18
/*
19
* Copyright The Mbed TLS Contributors
20
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21
*/
22
23
#ifndef MBEDTLS_NIST_KW_H
24
#define MBEDTLS_NIST_KW_H
25
#include "mbedtls/private_access.h"
26
27
#include "
tf-psa-crypto/build_info.h
"
28
#include "
psa/crypto_types.h
"
29
#include "
psa/crypto_values.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
typedef
enum
{
36
MBEDTLS_KW_MODE_KW
= 0,
37
MBEDTLS_KW_MODE_KWP
= 1
38
}
mbedtls_nist_kw_mode_t
;
39
64
psa_status_t
mbedtls_nist_kw_wrap
(
mbedtls_svc_key_id_t
key,
65
mbedtls_nist_kw_mode_t
mode,
66
const
unsigned
char
*input,
size_t
input_length,
67
unsigned
char
*output,
size_t
output_size,
size_t
*output_length);
68
95
psa_status_t
mbedtls_nist_kw_unwrap
(
mbedtls_svc_key_id_t
key,
96
mbedtls_nist_kw_mode_t
mode,
97
const
unsigned
char
*input,
size_t
input_length,
98
unsigned
char
*output,
size_t
output_size,
99
size_t
*output_length);
100
101
102
#ifdef __cplusplus
103
}
104
#endif
105
106
#endif
/* MBEDTLS_NIST_KW_H */
crypto_types.h
PSA cryptography module: type aliases.
crypto_values.h
PSA cryptography module: macros to build and analyze integer values.
psa_status_t
int32_t psa_status_t
Function return status.
Definition
crypto_types.h:52
mbedtls_svc_key_id_t
psa_key_id_t mbedtls_svc_key_id_t
Definition
crypto_types.h:285
mbedtls_nist_kw_unwrap
psa_status_t mbedtls_nist_kw_unwrap(mbedtls_svc_key_id_t key, mbedtls_nist_kw_mode_t mode, const unsigned char *input, size_t input_length, unsigned char *output, size_t output_size, size_t *output_length)
This function decrypts a buffer using key wrapping.
mbedtls_nist_kw_mode_t
mbedtls_nist_kw_mode_t
Definition
nist_kw.h:35
MBEDTLS_KW_MODE_KW
@ MBEDTLS_KW_MODE_KW
Definition
nist_kw.h:36
MBEDTLS_KW_MODE_KWP
@ MBEDTLS_KW_MODE_KWP
Definition
nist_kw.h:37
mbedtls_nist_kw_wrap
psa_status_t mbedtls_nist_kw_wrap(mbedtls_svc_key_id_t key, mbedtls_nist_kw_mode_t mode, const unsigned char *input, size_t input_length, unsigned char *output, size_t output_size, size_t *output_length)
This function encrypts a buffer using key wrapping.
build_info.h
Build-time configuration info.
tf-psa-crypto
include
mbedtls
nist_kw.h
Generated on
for Mbed TLS v4.1.1 by
1.17.0