nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_curve_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
16#ifndef OCRYPTO_CURVE_P256_H
17#define OCRYPTO_CURVE_P256_H
18
19#include "ocrypto_types.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25
35
36
46
53
60
75
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)
Definition: ocrypto_types.h:115
Definition: ocrypto_types.h:102