nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_spake2p_p256.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2024 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
16#ifndef OCRYPTO_SPAKE2P_P256_H
17#define OCRYPTO_SPAKE2P_P256_H
18
19#include <stddef.h>
20#include <stdint.h>
21
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27
36 uint8_t x[32],
37 const uint8_t *xs, size_t xs_len);
38
48 const uint8_t K[65]);
49
62 uint8_t XY[65],
63 const uint8_t w0[32],
64 const uint8_t xy[32],
65 const uint8_t MN[65]);
66
80 uint8_t Z[65],
81 uint8_t V[65],
82 const uint8_t w0[32],
83 const uint8_t w1[32],
84 const uint8_t xy[32],
85 const uint8_t YX[65],
86 const uint8_t NM[65],
87 const uint8_t L[65]);
88
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif
95
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])
void 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)