cecies
encrypt.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_ENCRYPT_H
24#define CECIES_ENCRYPT_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <stddef.h>
31#include <stdint.h>
32#include "types.h"
33
45CECIES_API int cecies_curve25519_encrypt(const uint8_t* data, size_t data_length, int compress, cecies_curve25519_key public_key, uint8_t** output, size_t* output_length, int output_base64);
46
58CECIES_API int cecies_curve448_encrypt(const uint8_t* data, size_t data_length, int compress, cecies_curve448_key public_key, uint8_t** output, size_t* output_length, int output_base64);
59
60#ifdef __cplusplus
61} // extern "C"
62#endif
63
64#endif // CECIES_ENCRYPT_H
CECIES_API int cecies_curve25519_encrypt(const uint8_t *data, size_t data_length, int compress, cecies_curve25519_key public_key, uint8_t **output, size_t *output_length, int output_base64)
CECIES_API int cecies_curve448_encrypt(const uint8_t *data, size_t data_length, int compress, cecies_curve448_key public_key, uint8_t **output, size_t *output_length, int output_base64)
Definition: types.h:44
Definition: types.h:75
CECIES types.