cecies
keygen.h
Go to the documentation of this file.
1/*
2 Copyright 2020 Raphael Beck
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
23#ifndef CECIES_KEYGEN_H
24#define CECIES_KEYGEN_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <time.h>
31#include <stddef.h>
32#include <stdlib.h>
33#include <stdint.h>
34
35#include "util.h"
36#include "types.h"
37
45CECIES_API int cecies_generate_curve25519_keypair(cecies_curve25519_keypair* output, const uint8_t* additional_entropy, size_t additional_entropy_length);
46
54CECIES_API int cecies_generate_curve448_keypair(cecies_curve448_keypair* output, const uint8_t* additional_entropy, size_t additional_entropy_length);
55
56#ifdef __cplusplus
57} // extern "C"
58#endif
59
60#endif // CECIES_KEYGEN_H
CECIES_API int cecies_generate_curve25519_keypair(cecies_curve25519_keypair *output, const uint8_t *additional_entropy, size_t additional_entropy_length)
CECIES_API int cecies_generate_curve448_keypair(cecies_curve448_keypair *output, const uint8_t *additional_entropy, size_t additional_entropy_length)
Definition: types.h:57
Definition: types.h:88
CECIES types.
Useful utility functions for CECIES.