nrfxlib API 0.1.0
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
13#ifndef OCRYPTO_ECDSA_P521_H
14#define OCRYPTO_ECDSA_P521_H
15
16#include <stddef.h>
17#include <stdint.h>
18
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24
38 uint8_t pk[132],
39 const uint8_t sk[66]);
40
62 uint8_t sig[132],
63 const uint8_t *m, size_t mlen,
64 const uint8_t sk[66],
65 const uint8_t ek[66]);
66
87 uint8_t sig[132],
88 const uint8_t hash[64],
89 const uint8_t sk[66],
90 const uint8_t ek[66]);
91
107 const uint8_t sig[132],
108 const uint8_t *m, size_t mlen,
109 const uint8_t pk[132]);
110
125 const uint8_t sig[132],
126 const uint8_t hash[64],
127 const uint8_t pk[132]);
128
129
130#ifdef __cplusplus
131}
132#endif
133
134#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])