nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_ecdsa_p521.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
8
27#ifndef OCRYPTO_ECDSA_P521_H
28#define OCRYPTO_ECDSA_P521_H
29
30#include <stddef.h>
31#include <stdint.h>
32
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38
52 uint8_t pk[132],
53 const uint8_t sk[66]);
54
76 uint8_t sig[132],
77 const uint8_t *m, size_t mlen,
78 const uint8_t sk[66],
79 const uint8_t ek[66]);
80
101 uint8_t sig[132],
102 const uint8_t hash[64],
103 const uint8_t sk[66],
104 const uint8_t ek[66]);
105
121 const uint8_t sig[132],
122 const uint8_t *m, size_t mlen,
123 const uint8_t pk[132]);
124
139 const uint8_t sig[132],
140 const uint8_t hash[64],
141 const uint8_t pk[132]);
142
143
144#ifdef __cplusplus
145}
146#endif
147
148#endif
149
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])