nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_ecdsa_p256.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
25#ifndef OCRYPTO_ECDSA_P256_H
26#define OCRYPTO_ECDSA_P256_H
27
28#include <stddef.h>
29#include <stdint.h>
30
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36
55 uint8_t pk[64],
56 const uint8_t sk[32]);
57
79 uint8_t sig[64],
80 const uint8_t *m, size_t mlen,
81 const uint8_t sk[32],
82 const uint8_t ek[32]);
83
104 uint8_t sig[64],
105 const uint8_t hash[32],
106 const uint8_t sk[32],
107 const uint8_t ek[32]);
108
124 const uint8_t sig[64],
125 const uint8_t *m, size_t mlen,
126 const uint8_t pk[64]);
127
142 const uint8_t sig[64],
143 const uint8_t hash[32],
144 const uint8_t pk[64]);
145
146
147#ifdef __cplusplus
148}
149#endif
150
151#endif
152
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])