Skip to content

Commit f8446ae

Browse files
committed
Initial and final commit
0 parents  commit f8446ae

File tree

433 files changed

+132805
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

433 files changed

+132805
-0
lines changed

CODE_OF_CONDUCT.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Microsoft Open Source Code of Conduct
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4+
5+
Resources:
6+
7+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9+
- Contact [[email protected]](mailto:[email protected]) with questions or concerns

CONTRIBUTING.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Contributing
2+
3+
This project welcomes contributions and suggestions. Most contributions require you to agree to a
4+
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
5+
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
6+
7+
When you submit a pull request, a CLA bot will automatically determine whether you need to provide
8+
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
9+
provided by the bot. You will only need to do this once across all repos using our CLA.
10+
11+
**IMPORTANT:** Pull requests must be submitted to the branch called *contrib*. Pull requests to any other branch will not be accepted.
12+
13+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
14+
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
15+
contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

Changes.md

+290
Large diffs are not rendered by default.

ISSUES.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Issues
2+
3+
## Technical questions
4+
5+
The best way to get help with technical questions is on
6+
[StackOverflow](https://stackoverflow.com/questions/tagged/seal) using the `[seal]`
7+
tag. To contact the Microsoft SEAL team directly, please email
8+
9+
10+
## Bug reports
11+
12+
We appreciate community efforts to find and fix bugs and issues in Microsoft SEAL.
13+
If you believe you have found a bug or want to report some other issue, please
14+
do so on [GitHub](https://github.com/Microsoft/SEAL/issues). To help others
15+
determine what the problem may be, we provide a helpful script that collects
16+
relevant system information that you can submit with the bug report (see below).
17+
18+
### System information
19+
20+
To collect system information for an improved bug report, please run
21+
```
22+
make -C tools system_info
23+
```
24+
This will result in a file `system_info.tar.gz` to be generated, which you can
25+
optionally attach with your bug report.
26+
27+
## Critical security issues
28+
29+
For reporting critical security issues, see [SECURITY.md](SECURITY.md).

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE

NOTICE

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This software uses the BLAKE2 library (https://github.com/BLAKE2/BLAKE2)
2+
The BLAKE2 library is licensed under CC0 Universal, version 1.0. You can find a copy of this license at https://creativecommons.org/publicdomain/zero/1.0/legalcode

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is just used for code storage without removing build/other files.

SEAL.sln

+132
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 16
3+
VisualStudioVersion = 16.0.29215.179
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SEAL", "native\src\SEAL.vcxproj", "{7EA96C25-FC0D-485A-BB71-32B6DA55652A}"
6+
EndProject
7+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SEALTest", "native\tests\SEALTest.vcxproj", "{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}"
8+
ProjectSection(ProjectDependencies) = postProject
9+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A} = {7EA96C25-FC0D-485A-BB71-32B6DA55652A}
10+
EndProjectSection
11+
EndProject
12+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SEALExamples", "native\examples\SEALExamples.vcxproj", "{2B57D847-26DC-45FF-B9AF-EE33910B5093}"
13+
ProjectSection(ProjectDependencies) = postProject
14+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A} = {7EA96C25-FC0D-485A-BB71-32B6DA55652A}
15+
EndProjectSection
16+
EndProject
17+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SEALNetNative", "dotnet\native\SEALNetNative.vcxproj", "{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}"
18+
ProjectSection(ProjectDependencies) = postProject
19+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A} = {7EA96C25-FC0D-485A-BB71-32B6DA55652A}
20+
EndProjectSection
21+
EndProject
22+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SEALNet", "dotnet\src\SEALNet.csproj", "{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}"
23+
ProjectSection(ProjectDependencies) = postProject
24+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D} = {70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}
25+
EndProjectSection
26+
EndProject
27+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SEALNetTest", "dotnet\tests\SEALNetTest.csproj", "{D0FCCA29-F0F8-49A3-9615-24FF899F1909}"
28+
ProjectSection(ProjectDependencies) = postProject
29+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E} = {D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}
30+
EndProjectSection
31+
EndProject
32+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SEALNetExamples", "dotnet\examples\SEALNetExamples.csproj", "{18DA9F90-3131-461A-A3E8-40AC0B1D7632}"
33+
EndProject
34+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "native", "native", "{A5BADDF0-1F03-48FE-AAC0-3355614C9A8D}"
35+
EndProject
36+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "dotnet", "dotnet", "{0786F255-C3A7-4912-A669-12273E7AE013}"
37+
EndProject
38+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NuGet", "NuGet", "{33C15AAC-6E56-477E-A118-3451FD21AC49}"
39+
ProjectSection(SolutionItems) = preProject
40+
dotnet\nuget\NUGET.md = dotnet\nuget\NUGET.md
41+
dotnet\nuget\SEALNet.nuspec.in = dotnet\nuget\SEALNet.nuspec.in
42+
dotnet\nuget\SEALNet.targets.in = dotnet\nuget\SEALNet.targets.in
43+
EndProjectSection
44+
EndProject
45+
Global
46+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
47+
Debug|Win32 = Debug|Win32
48+
Debug|x64 = Debug|x64
49+
Release|Win32 = Release|Win32
50+
Release|x64 = Release|x64
51+
EndGlobalSection
52+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
53+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Debug|Win32.ActiveCfg = Debug|Win32
54+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Debug|Win32.Build.0 = Debug|Win32
55+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Debug|x64.ActiveCfg = Debug|x64
56+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Debug|x64.Build.0 = Debug|x64
57+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Release|Win32.ActiveCfg = Release|Win32
58+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Release|Win32.Build.0 = Release|Win32
59+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Release|x64.ActiveCfg = Release|x64
60+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A}.Release|x64.Build.0 = Release|x64
61+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Debug|Win32.ActiveCfg = Debug|Win32
62+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Debug|Win32.Build.0 = Debug|Win32
63+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Debug|x64.ActiveCfg = Debug|x64
64+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Debug|x64.Build.0 = Debug|x64
65+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Release|Win32.ActiveCfg = Release|Win32
66+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Release|Win32.Build.0 = Release|Win32
67+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Release|x64.ActiveCfg = Release|x64
68+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF}.Release|x64.Build.0 = Release|x64
69+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Debug|Win32.ActiveCfg = Debug|Win32
70+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Debug|Win32.Build.0 = Debug|Win32
71+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Debug|x64.ActiveCfg = Debug|x64
72+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Debug|x64.Build.0 = Debug|x64
73+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Release|Win32.ActiveCfg = Release|Win32
74+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Release|Win32.Build.0 = Release|Win32
75+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Release|x64.ActiveCfg = Release|x64
76+
{2B57D847-26DC-45FF-B9AF-EE33910B5093}.Release|x64.Build.0 = Release|x64
77+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Debug|Win32.ActiveCfg = Debug|Win32
78+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Debug|Win32.Build.0 = Debug|Win32
79+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Debug|x64.ActiveCfg = Debug|x64
80+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Debug|x64.Build.0 = Debug|x64
81+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Release|Win32.ActiveCfg = Release|Win32
82+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Release|Win32.Build.0 = Release|Win32
83+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Release|x64.ActiveCfg = Release|x64
84+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D}.Release|x64.Build.0 = Release|x64
85+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Debug|Win32.ActiveCfg = Debug|Any CPU
86+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Debug|Win32.Build.0 = Debug|Any CPU
87+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Debug|x64.ActiveCfg = Debug|Any CPU
88+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Debug|x64.Build.0 = Debug|Any CPU
89+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Release|Win32.ActiveCfg = Release|Any CPU
90+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Release|Win32.Build.0 = Release|Any CPU
91+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Release|x64.ActiveCfg = Release|Any CPU
92+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E}.Release|x64.Build.0 = Release|Any CPU
93+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Debug|Win32.ActiveCfg = Debug|Any CPU
94+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Debug|Win32.Build.0 = Debug|Any CPU
95+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Debug|x64.ActiveCfg = Debug|Any CPU
96+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Debug|x64.Build.0 = Debug|Any CPU
97+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Release|Win32.ActiveCfg = Release|Any CPU
98+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Release|Win32.Build.0 = Release|Any CPU
99+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Release|x64.ActiveCfg = Release|Any CPU
100+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909}.Release|x64.Build.0 = Release|Any CPU
101+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Debug|Win32.ActiveCfg = Debug|Any CPU
102+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Debug|Win32.Build.0 = Debug|Any CPU
103+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Debug|x64.ActiveCfg = Debug|Any CPU
104+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Debug|x64.Build.0 = Debug|Any CPU
105+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Release|Win32.ActiveCfg = Release|Any CPU
106+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Release|Win32.Build.0 = Release|Any CPU
107+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Release|x64.ActiveCfg = Release|Any CPU
108+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632}.Release|x64.Build.0 = Release|Any CPU
109+
EndGlobalSection
110+
GlobalSection(SolutionProperties) = preSolution
111+
HideSolutionNode = FALSE
112+
EndGlobalSection
113+
GlobalSection(NestedProjects) = preSolution
114+
{7EA96C25-FC0D-485A-BB71-32B6DA55652A} = {A5BADDF0-1F03-48FE-AAC0-3355614C9A8D}
115+
{0345DC4D-EFE3-460E-AB7E-AA6E05BB8DFF} = {A5BADDF0-1F03-48FE-AAC0-3355614C9A8D}
116+
{2B57D847-26DC-45FF-B9AF-EE33910B5093} = {A5BADDF0-1F03-48FE-AAC0-3355614C9A8D}
117+
{70BBB2AA-FA77-40C1-890F-7AA7DBB3AD3D} = {0786F255-C3A7-4912-A669-12273E7AE013}
118+
{D7ED94EC-3FAB-4B87-AB5F-0308EA92520E} = {0786F255-C3A7-4912-A669-12273E7AE013}
119+
{D0FCCA29-F0F8-49A3-9615-24FF899F1909} = {0786F255-C3A7-4912-A669-12273E7AE013}
120+
{18DA9F90-3131-461A-A3E8-40AC0B1D7632} = {0786F255-C3A7-4912-A669-12273E7AE013}
121+
{33C15AAC-6E56-477E-A118-3451FD21AC49} = {0786F255-C3A7-4912-A669-12273E7AE013}
122+
EndGlobalSection
123+
GlobalSection(ExtensibilityGlobals) = postSolution
124+
SolutionGuid = {15A17F22-F747-4B82-BF5F-E0224AF4B3ED}
125+
EndGlobalSection
126+
GlobalSection(Performance) = preSolution
127+
HasPerformanceSessions = true
128+
EndGlobalSection
129+
GlobalSection(Performance) = preSolution
130+
HasPerformanceSessions = true
131+
EndGlobalSection
132+
EndGlobal

SECURITY.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.3 BLOCK -->
2+
3+
## Security
4+
5+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
6+
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets Microsoft's [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)) of a security vulnerability, please report it to us as described below.
8+
9+
## Reporting Security Issues
10+
11+
**Please do not report security vulnerabilities through public GitHub issues.**
12+
13+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
14+
15+
If you prefer to submit without logging in, send email to [[email protected]](mailto:[email protected]). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
16+
17+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
18+
19+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
20+
21+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
22+
* Full paths of source file(s) related to the manifestation of the issue
23+
* The location of the affected source code (tag/branch/commit or direct URL)
24+
* Any special configuration required to reproduce the issue
25+
* Step-by-step instructions to reproduce the issue
26+
* Proof-of-concept or exploit code (if possible)
27+
* Impact of the issue, including how an attacker might exploit the issue
28+
29+
This information will help us triage your report more quickly.
30+
31+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://microsoft.com/msrc/bounty) page for more details about our active programs.
32+
33+
## Preferred Languages
34+
35+
We prefer all communications to be in English.
36+
37+
## Policy
38+
39+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://www.microsoft.com/en-us/msrc/cvd).
40+
41+
<!-- END MICROSOFT SECURITY.MD BLOCK -->

azure-pipelines.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: $(TeamProject)_$(BuildDefinitionName)_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
2+
pr:
3+
- master
4+
5+
stages:
6+
- stage: build
7+
displayName: Build
8+
jobs:
9+
10+
- job: Windows
11+
displayName: Windows
12+
pool:
13+
vmImage: 'windows-latest'
14+
variables:
15+
ZLIB_ROOT: '$(Build.SourcesDirectory)\native\src\thirdparty\zlib\zlib-src'
16+
steps:
17+
- template: templates/windows-build.yml
18+
parameters:
19+
nuget_version: 4.9.2
20+
21+
- job: Linux
22+
displayName: Linux
23+
dependsOn: []
24+
pool:
25+
vmImage: 'ubuntu-latest'
26+
steps:
27+
- script: |
28+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
29+
sudo apt-get update
30+
sudo apt-get install gcc-7 g++-7
31+
gcc-7 --version
32+
g++-7 --version
33+
which gcc-7
34+
which g++-7
35+
36+
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-7 50
37+
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-7 50
38+
39+
displayName: 'Install GCC 7'
40+
- template: templates/nix-build.yml
41+
parameters:
42+
artifactName: linux-drop
43+
ext: a
44+
45+
- job: macOs
46+
displayName: Mac OS X
47+
dependsOn: []
48+
pool:
49+
vmImage: 'macOS-latest'
50+
steps:
51+
- template: templates/nix-build.yml
52+
parameters:
53+
dir: .
54+
artifactName: macos-drop
55+
ext: so
56+
57+
- job: Nuget
58+
displayName: Pack into Nuget
59+
dependsOn: [Windows, Linux, macOs]
60+
pool:
61+
vmImage: 'windows-latest'
62+
steps:
63+
- template: templates/pack.yml
64+
parameters:
65+
nuget_version: 4.9.2

0 commit comments

Comments
 (0)