-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
596 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
task: | ||
name: macOS | ||
osx_instance: | ||
image: high-sierra-xcode-9.4.1 | ||
test_script: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "crypto-algorithms"] | ||
path = crypto-algorithms | ||
url = https://github.com/B-Con/crypto-algorithms.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "test", | ||
"type": "gdb", | ||
"request": "launch", | ||
"target": "./test", | ||
"cwd": "${workspaceRoot}", | ||
"preLaunchTask": "build test" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"files.associations": { | ||
"stdio.h": "c", | ||
"sqlite-crypto-vfs.h": "c", | ||
"stdlib.h": "c", | ||
"ostream": "cpp", | ||
"__config": "cpp", | ||
"__nullptr": "cpp", | ||
"cstddef": "cpp", | ||
"exception": "cpp", | ||
"initializer_list": "cpp", | ||
"new": "cpp", | ||
"stdexcept": "cpp", | ||
"type_traits": "cpp", | ||
"typeinfo": "cpp", | ||
"algorithm": "cpp" | ||
}, | ||
"C_Cpp.default.configurationProvider": "vector-of-bool.cmake-tools", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build test", | ||
"type": "shell", | ||
"command": "make test-build", | ||
"problemMatcher": [ | ||
"$gcc" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CC = gcc | ||
CXX = g++ | ||
LD = gcc | ||
CFLAGS = $(shell pkg-config --libs sqlite3) $(shell pkg-config --cflags sqlite3) | ||
CXXFLAGS = -g $(CFLAGS) -lsqlite-crypto-vfs -L. | ||
|
||
default: build | ||
|
||
build: sqlite-crypto-vfs | ||
|
||
sqlite-crypto-vfs: | ||
$(CC) $(CFLAGS) -shared -o libsqlite-crypto-vfs.dylib aes.c sqlite-crypto-vfs.c | ||
|
||
test-build: sqlite-crypto-vfs | ||
$(CXX) $(CXXFLAGS) -o test test.cpp | ||
|
||
test: test-build | ||
DYLD_LIBRARY_PATH=tiny-AES-c ./test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
crypto-algorithms/aes.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
crypto-algorithms/aes.h |
Submodule crypto-algorithms
added at
cfbde4
Oops, something went wrong.