nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_curve_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
16#ifndef OCRYPTO_CURVE_P256_H
17#define OCRYPTO_CURVE_P256_H
18
19#include "ocrypto_types_p256.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
34int ocrypto_curve_p256_from32bytes(ocrypto_cp_p256 *r, const uint8_t p[32]);
35
36
45int ocrypto_curve_p256_from64bytes(ocrypto_cp_p256 *r, const uint8_t p[64]);
46
52void ocrypto_curve_p256_to32bytes(uint8_t r[32], ocrypto_cp_p256 *p);
53
59void ocrypto_curve_p256_to64bytes(uint8_t r[64], ocrypto_cp_p256 *p);
60
74int ocrypto_curve_p256_scalarmult(ocrypto_cp_p256 *r, const ocrypto_cp_p256 *p, const ocrypto_sc_p256 *s);
75
88int ocrypto_curve_p256_scalarmult_base(ocrypto_cp_p256 *r, const ocrypto_sc_p256 *s);
89
90#ifdef __cplusplus
91}
92#endif
93
94#endif /* #ifndef OCRYPTO_CURVE_P256_H */
95
int ocrypto_curve_p256_from64bytes(ocrypto_cp_p256 *r, const uint8_t p[64])
int ocrypto_curve_p256_scalarmult_base(ocrypto_cp_p256 *r, const ocrypto_sc_p256 *s)
int ocrypto_curve_p256_scalarmult(ocrypto_cp_p256 *r, const ocrypto_cp_p256 *p, const ocrypto_sc_p256 *s)
void ocrypto_curve_p256_to32bytes(uint8_t r[32], ocrypto_cp_p256 *p)
int ocrypto_curve_p256_from32bytes(ocrypto_cp_p256 *r, const uint8_t p[32])
void ocrypto_curve_p256_to64bytes(uint8_t r[64], ocrypto_cp_p256 *p)
Declaration of internal types used in public interfaces.