nrfxlib API 2.8.99
Loading...
Searching...
No Matches
ocrypto_sc_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#ifndef OCRYPTO_SC_P256_H
9#define OCRYPTO_SC_P256_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include <stdint.h>
16
17#include "ocrypto_types.h"
18
19// 32 byte value to scalar
20// return 0 if x < group order
21int ocrypto_sc_p256_from32bytes(ocrypto_sc_p256 *r, const uint8_t x[32]);
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif /* #ifndef OCRYPTO_SC_P256_H */
int ocrypto_sc_p256_from32bytes(ocrypto_sc_p256 *r, const uint8_t x[32])
Definition ocrypto_types.h:102