cecies
decrypt.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_DECRYPT_H
24#define CECIES_DECRYPT_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#include <stddef.h>
31#include <stdint.h>
32#include "types.h"
33
44CECIES_API int cecies_curve25519_decrypt(const uint8_t* encrypted_data, size_t encrypted_data_length, int encrypted_data_base64, cecies_curve25519_key private_key, uint8_t** output, size_t* output_length);
45
56CECIES_API int cecies_curve448_decrypt(const uint8_t* encrypted_data, size_t encrypted_data_length, int encrypted_data_base64, cecies_curve448_key private_key, uint8_t** output, size_t* output_length);
57
58#ifdef __cplusplus
59} // extern "C"
60#endif
61
62#endif // CECIES_DECRYPT_H
CECIES_API int cecies_curve448_decrypt(const uint8_t *encrypted_data, size_t encrypted_data_length, int encrypted_data_base64, cecies_curve448_key private_key, uint8_t **output, size_t *output_length)
CECIES_API int cecies_curve25519_decrypt(const uint8_t *encrypted_data, size_t encrypted_data_length, int encrypted_data_base64, cecies_curve25519_key private_key, uint8_t **output, size_t *output_length)
Definition: types.h:44
Definition: types.h:75
CECIES types.