nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_aes_key_wrap.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2025 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
28#ifndef OCRYPTO_AES_KEY_WRAP_H
29#define OCRYPTO_AES_KEY_WRAP_H
30
31#include <stddef.h>
32#include <stdint.h>
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39
50 uint8_t *ct,
51 const uint8_t *pt, size_t pt_len,
52 const uint8_t *key, size_t size);
53
67 uint8_t *pt,
68 const uint8_t *ct, size_t ct_len,
69 const uint8_t *key, size_t size);
70
81 uint8_t *ct,
82 const uint8_t *pt, size_t pt_len,
83 const uint8_t *key, size_t size);
84
99 uint8_t *pt, size_t *pt_len,
100 const uint8_t *ct, size_t ct_len,
101 const uint8_t *key, size_t size);
102
103
104#ifdef __cplusplus
105}
106#endif
107
108#endif
109
void ocrypto_aes_kw_wrap(uint8_t *ct, const uint8_t *pt, size_t pt_len, const uint8_t *key, size_t size)
int ocrypto_aes_kwp_unwrap(uint8_t *pt, size_t *pt_len, const uint8_t *ct, size_t ct_len, const uint8_t *key, size_t size)
int ocrypto_aes_kw_unwrap(uint8_t *pt, const uint8_t *ct, size_t ct_len, const uint8_t *key, size_t size)
void ocrypto_aes_kwp_wrap(uint8_t *ct, const uint8_t *pt, size_t pt_len, const uint8_t *key, size_t size)