nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_ecdsa_p384.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_P384_H
28#define OCRYPTO_ECDSA_P384_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[96],
58 const uint8_t sk[48]);
59
81 uint8_t sig[96],
82 const uint8_t *m, size_t mlen,
83 const uint8_t sk[48],
84 const uint8_t ek[48]);
85
106 uint8_t sig[96],
107 const uint8_t hash[48],
108 const uint8_t sk[48],
109 const uint8_t ek[48]);
110
126 const uint8_t sig[96],
127 const uint8_t *m, size_t mlen,
128 const uint8_t pk[96]);
129
144 const uint8_t sig[96],
145 const uint8_t hash[48],
146 const uint8_t pk[96]);
147
148
149#ifdef __cplusplus
150}
151#endif
152
153#endif
154
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])