]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/ec/curve448/curve448_local.h
Reorganize local header files
[thirdparty/openssl.git] / crypto / ec / curve448 / curve448_local.h
CommitLineData
1308e022 1/*
f53c7764 2 * Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
1308e022 3 *
a7f182b7 4 * Licensed under the Apache License 2.0 (the "License"). You may not use
1308e022
MC
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
8 */
68b20c00
MC
9#ifndef HEADER_CURVE448_LCL_H
10# define HEADER_CURVE448_LCL_H
11# include "curve448utils.h"
ad0a8a5c
MC
12
13int X448(uint8_t out_shared_key[56], const uint8_t private_key[56],
09ffbc94 14 const uint8_t peer_public_value[56]);
ad0a8a5c
MC
15
16void X448_public_from_private(uint8_t out_public_value[56],
09ffbc94 17 const uint8_t private_key[56]);
4ea41daa 18
a9612d6c
MC
19int ED448_sign(OPENSSL_CTX *ctx, uint8_t *out_sig, const uint8_t *message,
20 size_t message_len, const uint8_t public_key[57],
21 const uint8_t private_key[57], const uint8_t *context,
22 size_t context_len);
4ea41daa 23
a9612d6c 24int ED448_verify(OPENSSL_CTX *ctx, const uint8_t *message, size_t message_len,
22bcc9cb 25 const uint8_t signature[114], const uint8_t public_key[57],
4ea41daa
MC
26 const uint8_t *context, size_t context_len);
27
a9612d6c 28int ED448ph_sign(OPENSSL_CTX *ctx, uint8_t *out_sig, const uint8_t hash[64],
22bcc9cb 29 const uint8_t public_key[57], const uint8_t private_key[57],
4ea41daa
MC
30 const uint8_t *context, size_t context_len);
31
a9612d6c
MC
32int ED448ph_verify(OPENSSL_CTX *ctx, const uint8_t hash[64],
33 const uint8_t signature[114], const uint8_t public_key[57],
34 const uint8_t *context, size_t context_len);
4ea41daa 35
a9612d6c 36int ED448_public_from_private(OPENSSL_CTX *ctx, uint8_t out_public_key[57],
22bcc9cb 37 const uint8_t private_key[57]);
68b20c00
MC
38
39#endif /* HEADER_CURVE448_LCL_H */