forked from microsoft/SEAL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publickey.h
36 lines (22 loc) · 1.22 KB
/
publickey.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
///////////////////////////////////////////////////////////////////////////
//
// This API is provided as a simple interface for Microsoft SEAL library
// that can be PInvoked by .Net code.
//
///////////////////////////////////////////////////////////////////////////
#include "seal/c/defines.h"
#include <stdint.h>
SEAL_C_FUNC PublicKey_Create1(void **public_key);
SEAL_C_FUNC PublicKey_Create2(void *copy, void **public_key);
SEAL_C_FUNC PublicKey_Set(void *thisptr, void *assign);
SEAL_C_FUNC PublicKey_Data(void *thisptr, void **data);
SEAL_C_FUNC PublicKey_ParmsId(void *thisptr, uint64_t *parms_id);
SEAL_C_FUNC PublicKey_Pool(void *thisptr, void **pool);
SEAL_C_FUNC PublicKey_Destroy(void *thisptr);
SEAL_C_FUNC PublicKey_SaveSize(void *thisptr, uint8_t compr_mode, int64_t *result);
SEAL_C_FUNC PublicKey_Save(void *thisptr, uint8_t *outptr, uint64_t size, uint8_t compr_mode, int64_t *out_bytes);
SEAL_C_FUNC PublicKey_UnsafeLoad(void *thisptr, void *context, uint8_t *inptr, uint64_t size, int64_t *in_bytes);
SEAL_C_FUNC PublicKey_Load(void *thisptr, void *context, uint8_t *inptr, uint64_t size, int64_t *in_bytes);