nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_spake2p_p256.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
26#ifndef OCRYPTO_SPAKE2P_P256_H
27#define OCRYPTO_SPAKE2P_P256_H
28
29#include <stddef.h>
30#include <stdint.h>
31
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37
46 uint8_t x[32],
47 const uint8_t *xs, size_t xs_len);
48
58 const uint8_t K[65]);
59
72 uint8_t XY[65],
73 const uint8_t w0[32],
74 const uint8_t xy[32],
75 const uint8_t MN[65]);
76
93 uint8_t Z[65],
94 uint8_t V[65],
95 const uint8_t w0[32],
96 const uint8_t w1[32],
97 const uint8_t xy[32],
98 const uint8_t YX[65],
99 const uint8_t NM[65],
100 const uint8_t L[65]);
101
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif
108
int ocrypto_spake2p_p256_get_key_share(uint8_t XY[65], const uint8_t w0[32], const uint8_t xy[32], const uint8_t MN[65])
int ocrypto_spake2p_p256_get_ZV(uint8_t Z[65], uint8_t V[65], const uint8_t w0[32], const uint8_t w1[32], const uint8_t xy[32], const uint8_t YX[65], const uint8_t NM[65], const uint8_t L[65])
int ocrypto_spake2p_p256_check_key(const uint8_t K[65])
void ocrypto_spake2p_p256_reduce(uint8_t x[32], const uint8_t *xs, size_t xs_len)