cecies
types.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_TYPES_H
24#define CECIES_TYPES_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#if defined(_WIN32) && defined(CECIES_DLL)
31#ifdef CECIES_BUILD_DLL
32#define CECIES_API __declspec(dllexport)
33#else
34#define CECIES_API __declspec(dllimport)
35#endif
36#else
37#define CECIES_API
38#endif
39
44{
50 char hexstring[64 + 1];
52
57{
63
70
74typedef struct cecies_curve448_key
75{
81 char hexstring[112 + 1];
83
88{
96
103
108typedef struct cecies_guid
109{
111 char string[36 + 1];
113
114#ifdef __cplusplus
115} // extern "C"
116#endif
117
118#endif // CECIES_TYPES_H
Definition: types.h:44
char hexstring[64+1]
Definition: types.h:50
Definition: types.h:57
cecies_curve25519_key public_key
Definition: types.h:62
cecies_curve25519_key private_key
Definition: types.h:68
Definition: types.h:75
char hexstring[112+1]
Definition: types.h:81
Definition: types.h:88
cecies_curve448_key private_key
Definition: types.h:101
cecies_curve448_key public_key
Definition: types.h:95
Struct containing the output from a call to the cecies_new_guid() function.
Definition: types.h:109
struct cecies_guid cecies_guid
Struct containing the output from a call to the cecies_new_guid() function.
struct cecies_curve25519_keypair cecies_curve25519_keypair
struct cecies_curve448_keypair cecies_curve448_keypair
struct cecies_curve448_key cecies_curve448_key
struct cecies_curve25519_key cecies_curve25519_key