forked from microsoft/SEAL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserialization.h
26 lines (17 loc) · 878 Bytes
/
serialization.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
// 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 Serialization_SEALMagic(uint16_t *result);
SEAL_C_FUNC Serialization_SEALHeaderSize(uint8_t *result);
SEAL_C_FUNC Serialization_IsSupportedComprMode(uint8_t compr_mode, bool *result);
SEAL_C_FUNC Serialization_ComprModeDefault(uint8_t *result);
SEAL_C_FUNC Serialization_IsCompatibleVersion(uint8_t *headerptr, uint64_t size, bool *result);
SEAL_C_FUNC Serialization_IsValidHeader(uint8_t *headerptr, uint64_t size, bool *result);