nrfxlib API 2.8.99
Loading...
Searching...
No Matches
ocrypto_ed448.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
17#ifndef OCRYPTO_ED448_H
18#define OCRYPTO_ED448_H
19
20#include <stddef.h>
21#include <stdint.h>
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28
32#define ocrypto_ed448_PUBLIC_KEY_BYTES (57)
33
37#define ocrypto_ed448_SECRET_KEY_BYTES (57)
38
42#define ocrypto_ed448_BYTES (114)
43
44
56 const uint8_t sk[ocrypto_ed448_SECRET_KEY_BYTES]);
57
71 uint8_t sig[ocrypto_ed448_BYTES],
72 const uint8_t *m, size_t m_len,
73 const uint8_t sk[ocrypto_ed448_SECRET_KEY_BYTES],
74 const uint8_t pk[ocrypto_ed448_PUBLIC_KEY_BYTES]);
75
91 const uint8_t sig[ocrypto_ed448_BYTES],
92 const uint8_t *m, size_t m_len,
93 const uint8_t pk[ocrypto_ed448_PUBLIC_KEY_BYTES]);
94
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif
#define ocrypto_ed448_BYTES
Definition ocrypto_ed448.h:42
#define ocrypto_ed448_PUBLIC_KEY_BYTES
Definition ocrypto_ed448.h:32
void ocrypto_ed448_sign(uint8_t sig[(114)], const uint8_t *m, size_t m_len, const uint8_t sk[(57)], const uint8_t pk[(57)])
int ocrypto_ed448_verify(const uint8_t sig[(114)], const uint8_t *m, size_t m_len, const uint8_t pk[(57)])
#define ocrypto_ed448_SECRET_KEY_BYTES
Definition ocrypto_ed448.h:37
void ocrypto_ed448_public_key(uint8_t pk[(57)], const uint8_t sk[(57)])