nrfxlib API 2.8.99
Loading...
Searching...
No Matches
ocrypto_ecdh_p521.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
13#ifndef OCRYPTO_ECDH_P521_H
14#define OCRYPTO_ECDH_P521_H
15
16#include <stdint.h>
17
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
37int ocrypto_ecdh_p521_secret_key_check(const uint8_t sk[66]);
38
47int ocrypto_ecdh_p521_public_key_check(const uint8_t pk[132]);
48
67int ocrypto_ecdh_p521_public_key(uint8_t pk[132], const uint8_t sk[66]);
68
84int ocrypto_ecdh_p521_common_secret(uint8_t r[66], const uint8_t sk[66], const uint8_t pk[132]);
85
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
int ocrypto_ecdh_p521_public_key_check(const uint8_t pk[132])
int ocrypto_ecdh_p521_secret_key_check(const uint8_t sk[66])
int ocrypto_ecdh_p521_public_key(uint8_t pk[132], const uint8_t sk[66])
int ocrypto_ecdh_p521_common_secret(uint8_t r[66], const uint8_t sk[66], const uint8_t pk[132])