2 * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
9 #ifndef OSSL_CRYPTO_EC_CURVE448_LOCAL_H
10 # define OSSL_CRYPTO_EC_CURVE448_LOCAL_H
11 # include "curve448utils.h"
13 int ED448_sign(OPENSSL_CTX *ctx, uint8_t *out_sig, const uint8_t *message,
14 size_t message_len, const uint8_t public_key[57],
15 const uint8_t private_key[57], const uint8_t *context,
18 int ED448_verify(OPENSSL_CTX *ctx, const uint8_t *message, size_t message_len,
19 const uint8_t signature[114], const uint8_t public_key[57],
20 const uint8_t *context, size_t context_len);
22 int ED448ph_sign(OPENSSL_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64],
23 const uint8_t public_key[57], const uint8_t private_key[57],
24 const uint8_t *context, size_t context_len);
26 int ED448ph_verify(OPENSSL_CTX *ctx, const uint8_t hash[64],
27 const uint8_t signature[114], const uint8_t public_key[57],
28 const uint8_t *context, size_t context_len);
30 int ED448_public_from_private(OPENSSL_CTX *ctx, uint8_t out_public_key[57],
31 const uint8_t private_key[57]);
33 #endif /* OSSL_CRYPTO_EC_CURVE448_LOCAL_H */