nrfxlib API 2.8.99
Loading...
Searching...
No Matches
ocrypto_ed448ph.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_ED448PH_H
18#define OCRYPTO_ED448PH_H
19
20#include <stddef.h>
21#include <stdint.h>
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28
32#define ocrypto_ed448ph_PUBLIC_KEY_BYTES (57)
33
37#define ocrypto_ed448ph_SECRET_KEY_BYTES (57)
38
42#define ocrypto_ed448ph_HASH_BYTES (64)
43
47#define ocrypto_ed448ph_BYTES (114)
48
49
61 const uint8_t sk[ocrypto_ed448ph_SECRET_KEY_BYTES]);
62
75 uint8_t sig[ocrypto_ed448ph_BYTES],
76 const uint8_t hash[ocrypto_ed448ph_HASH_BYTES],
77 const uint8_t sk[ocrypto_ed448ph_SECRET_KEY_BYTES],
78 const uint8_t pk[ocrypto_ed448ph_PUBLIC_KEY_BYTES]);
79
94 const uint8_t sig[ocrypto_ed448ph_BYTES],
95 const uint8_t hash[ocrypto_ed448ph_HASH_BYTES],
96 const uint8_t pk[ocrypto_ed448ph_PUBLIC_KEY_BYTES]);
97
98
99#ifdef __cplusplus
100}
101#endif
102
103#endif
#define ocrypto_ed448ph_SECRET_KEY_BYTES
Definition ocrypto_ed448ph.h:37
void ocrypto_ed448ph_public_key(uint8_t pk[(57)], const uint8_t sk[(57)])
int ocrypto_ed448ph_verify(const uint8_t sig[(114)], const uint8_t hash[(64)], const uint8_t pk[(57)])
#define ocrypto_ed448ph_BYTES
Definition ocrypto_ed448ph.h:47
#define ocrypto_ed448ph_HASH_BYTES
Definition ocrypto_ed448ph.h:42
#define ocrypto_ed448ph_PUBLIC_KEY_BYTES
Definition ocrypto_ed448ph.h:32
void ocrypto_ed448ph_sign(uint8_t sig[(114)], const uint8_t hash[(64)], const uint8_t sk[(57)], const uint8_t pk[(57)])