nrfxlib API 2.7.99
Loading...
Searching...
No Matches
ocrypto_ecdsa_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
20#ifndef OCRYPTO_ECDSA_P521_H
21#define OCRYPTO_ECDSA_P521_H
22
23#include <stddef.h>
24#include <stdint.h>
25
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31
45 uint8_t pk[132],
46 const uint8_t sk[66]);
47
69 uint8_t sig[132],
70 const uint8_t *m, size_t mlen,
71 const uint8_t sk[66],
72 const uint8_t ek[66]);
73
94 uint8_t sig[132],
95 const uint8_t hash[64],
96 const uint8_t sk[66],
97 const uint8_t ek[66]);
98
114 const uint8_t sig[132],
115 const uint8_t *m, size_t mlen,
116 const uint8_t pk[132]);
117
132 const uint8_t sig[132],
133 const uint8_t hash[64],
134 const uint8_t pk[132]);
135
136
139#ifdef __cplusplus
140}
141#endif
142
143#endif
int ocrypto_ecdsa_p521_verify_hash(const uint8_t sig[132], const uint8_t hash[64], const uint8_t pk[132])
int ocrypto_ecdsa_p521_sign(uint8_t sig[132], const uint8_t *m, size_t mlen, const uint8_t sk[66], const uint8_t ek[66])
int ocrypto_ecdsa_p521_verify(const uint8_t sig[132], const uint8_t *m, size_t mlen, const uint8_t pk[132])
int ocrypto_ecdsa_p521_sign_hash(uint8_t sig[132], const uint8_t hash[64], const uint8_t sk[66], const uint8_t ek[66])
int ocrypto_ecdsa_p521_public_key(uint8_t pk[132], const uint8_t sk[66])