nrfxlib API 2.7.99
Loading...
Searching...
No Matches
ocrypto_ed25519ph.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
22#ifndef OCRYPTO_ED25519PH_H
23#define OCRYPTO_ED25519PH_H
24
25#include "ocrypto_types.h"
26
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
33typedef ocrypto_ed25519_ctx ocrypto_ed25519ph_ctx;
39#define ocrypto_ed25519ph_PUBLIC_KEY_BYTES (32)
40
44#define ocrypto_ed25519ph_SECRET_KEY_BYTES (32)
45
49#define ocrypto_ed25519ph_HASH_BYTES (64)
50
54#define ocrypto_ed25519ph_BYTES (64)
55
56
68 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES]);
69
82 uint8_t sig[ocrypto_ed25519ph_BYTES],
83 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
84 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES],
85 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
86
101 const uint8_t sig[ocrypto_ed25519ph_BYTES],
102 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
103 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
104
105
117 ocrypto_ed25519ph_ctx *ctx,
119 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES]);
120
134 ocrypto_ed25519ph_ctx *ctx,
135 uint8_t sig[ocrypto_ed25519ph_BYTES],
136 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
137 const uint8_t sk[ocrypto_ed25519ph_SECRET_KEY_BYTES],
138 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
139
155 ocrypto_ed25519ph_ctx *ctx,
156 const uint8_t sig[ocrypto_ed25519ph_BYTES],
157 const uint8_t hash[ocrypto_ed25519ph_HASH_BYTES],
158 const uint8_t pk[ocrypto_ed25519ph_PUBLIC_KEY_BYTES]);
159
160
161#ifdef __cplusplus
162}
163#endif
164
165#endif
166
#define ocrypto_ed25519ph_BYTES
Definition: ocrypto_ed25519ph.h:54
#define ocrypto_ed25519ph_PUBLIC_KEY_BYTES
Definition: ocrypto_ed25519ph.h:39
#define ocrypto_ed25519ph_HASH_BYTES
Definition: ocrypto_ed25519ph.h:49
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:44
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)])
Definition: ocrypto_types.h:76