nrfxlib API 2.8.99
Loading...
Searching...
No Matches
ocrypto_ecdsa_p384.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
19#ifndef OCRYPTO_ECDSA_P384_H
20#define OCRYPTO_ECDSA_P384_H
21
22#include <stddef.h>
23#include <stdint.h>
24
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30
49 uint8_t pk[96],
50 const uint8_t sk[48]);
51
73 uint8_t sig[96],
74 const uint8_t *m, size_t mlen,
75 const uint8_t sk[48],
76 const uint8_t ek[48]);
77
98 uint8_t sig[96],
99 const uint8_t hash[48],
100 const uint8_t sk[48],
101 const uint8_t ek[48]);
102
118 const uint8_t sig[96],
119 const uint8_t *m, size_t mlen,
120 const uint8_t pk[96]);
121
136 const uint8_t sig[96],
137 const uint8_t hash[48],
138 const uint8_t pk[96]);
139
140
141#ifdef __cplusplus
142}
143#endif
144
145#endif
146
int ocrypto_ecdsa_p384_sign(uint8_t sig[96], const uint8_t *m, size_t mlen, const uint8_t sk[48], const uint8_t ek[48])
int ocrypto_ecdsa_p384_verify(const uint8_t sig[96], const uint8_t *m, size_t mlen, const uint8_t pk[96])
int ocrypto_ecdsa_p384_public_key(uint8_t pk[96], const uint8_t sk[48])
int ocrypto_ecdsa_p384_verify_hash(const uint8_t sig[96], const uint8_t hash[48], const uint8_t pk[96])
int ocrypto_ecdsa_p384_sign_hash(uint8_t sig[96], const uint8_t hash[48], const uint8_t sk[48], const uint8_t ek[48])