nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_ecdsa_p256.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_P256_H
28#define OCRYPTO_ECDSA_P256_H
29
30#include <stddef.h>
31#include <stdint.h>
32
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
38
57 uint8_t pk[64],
58 const uint8_t sk[32]);
59
81 uint8_t sig[64],
82 const uint8_t *m, size_t mlen,
83 const uint8_t sk[32],
84 const uint8_t ek[32]);
85
106 uint8_t sig[64],
107 const uint8_t hash[32],
108 const uint8_t sk[32],
109 const uint8_t ek[32]);
110
126 const uint8_t sig[64],
127 const uint8_t *m, size_t mlen,
128 const uint8_t pk[64]);
129
144 const uint8_t sig[64],
145 const uint8_t hash[32],
146 const uint8_t pk[64]);
147
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif
154
int ocrypto_ecdsa_p256_sign(uint8_t sig[64], const uint8_t *m, size_t mlen, const uint8_t sk[32], const uint8_t ek[32])
int ocrypto_ecdsa_p256_verify(const uint8_t sig[64], const uint8_t *m, size_t mlen, const uint8_t pk[64])
int ocrypto_ecdsa_p256_sign_hash(uint8_t sig[64], const uint8_t hash[32], const uint8_t sk[32], const uint8_t ek[32])
int ocrypto_ecdsa_p256_verify_hash(const uint8_t sig[64], const uint8_t hash[32], const uint8_t pk[64])
int ocrypto_ecdsa_p256_public_key(uint8_t pk[64], const uint8_t sk[32])