nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_ed25519ph.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
29#ifndef OCRYPTO_ED25519PH_H
30#define OCRYPTO_ED25519PH_H
31
32#include "ocrypto_types_25519.h"
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
40typedef ocrypto_ed25519_ctx ocrypto_ed25519ph_ctx;
46#define ocrypto_ed25519ph_PUBLIC_KEY_BYTES (32)
47
51#define ocrypto_ed25519ph_SECRET_KEY_BYTES (32)
52
56#define ocrypto_ed25519ph_HASH_BYTES (64)
57
61#define ocrypto_ed25519ph_BYTES (64)
62
63
75 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES]);
76
89 uint8_t sig[ocrypto_ed25519ph_BYTES],
90 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
91 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES],
92 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
93
108 const uint8_t sig[ocrypto_ed25519ph_BYTES],
109 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
110 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
111
112
124 ocrypto_ed25519ph_ctx *ctx,
126 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES]);
127
141 ocrypto_ed25519ph_ctx *ctx,
142 uint8_t sig[ocrypto_ed25519ph_BYTES],
143 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
144 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES],
145 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
146
162 ocrypto_ed25519ph_ctx *ctx,
163 const uint8_t sig[ocrypto_ed25519ph_BYTES],
164 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
165 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
166
167
168#ifdef __cplusplus
169}
170#endif
171
172#endif
173
#define ocrypto_ed25519ph_BYTES
Definition ocrypto_ed25519ph.h:61
#define ocrypto_ed25519ph_PUBLIC_KEY_BYTES
Definition ocrypto_ed25519ph.h:46
#define ocrypto_ed25519ph_HASH_BYTES
Definition ocrypto_ed25519ph.h:56
void ocrypto_ed25519ph_public_key_ctx(ocrypto_ed25519ph_ctx *ctx, uint8_t pk[(32)], const uint8_t sk[(32)])
int ocrypto_ed25519ph_verify_ctx(ocrypto_ed25519ph_ctx *ctx, const uint8_t sig[(64)], const uint8_t hash[(64)], const uint8_t pk[(32)])
#define ocrypto_ed25519ph_SECRET_KEY_BYTES
Definition ocrypto_ed25519ph.h:51
int ocrypto_ed25519ph_verify(const uint8_t sig[(64)], const uint8_t hash[(64)], const uint8_t pk[(32)])
void ocrypto_ed25519ph_sign_ctx(ocrypto_ed25519ph_ctx *ctx, uint8_t sig[(64)], const uint8_t hash[(64)], const uint8_t sk[(32)], const uint8_t pk[(32)])
void ocrypto_ed25519ph_sign(uint8_t sig[(64)], const uint8_t hash[(64)], const uint8_t sk[(32)], const uint8_t pk[(32)])
void ocrypto_ed25519ph_public_key(uint8_t pk[(32)], const uint8_t sk[(32)])
Declaration of internal types used in public interfaces.
Definition ocrypto_types_25519.h:86