feat: add crypt4ghfs-rust
This commit is contained in:
19
__fs/crypt4ghfs-rust/tests/configs/fs.conf
Normal file
19
__fs/crypt4ghfs-rust/tests/configs/fs.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
[DEFAULT]
|
||||
extensions = ["c4gh"]
|
||||
|
||||
[LOGGER]
|
||||
use_syslog = false
|
||||
log_level = "DEBUG"
|
||||
log_facility = "local2"
|
||||
|
||||
[FUSE]
|
||||
options= ["ro", "default_permissions", "allow_other", "auto_unmount"]
|
||||
rootdir="tests/rootdir"
|
||||
|
||||
[CRYPT4GH]
|
||||
recipients = ["tests/keys/bob.pub"]
|
||||
include_crypt4gh_log = true
|
||||
include_myself_as_recipient = true
|
||||
|
||||
# The decryption key
|
||||
seckey = "tests/keys/bob.sec"
|
||||
1
__fs/crypt4ghfs-rust/tests/decrypted/file.txt
Normal file
1
__fs/crypt4ghfs-rust/tests/decrypted/file.txt
Normal file
@@ -0,0 +1 @@
|
||||
This is a test file. Can you decrypt it?
|
||||
3
__fs/crypt4ghfs-rust/tests/keys/bob.pub
Normal file
3
__fs/crypt4ghfs-rust/tests/keys/bob.pub
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN CRYPT4GH PUBLIC KEY-----
|
||||
JXGe7vpNZpWEhsxrIE/h83xst7sQ+2INpaoiGjtLIDg=
|
||||
-----END CRYPT4GH PUBLIC KEY-----
|
||||
3
__fs/crypt4ghfs-rust/tests/keys/bob.sec
Normal file
3
__fs/crypt4ghfs-rust/tests/keys/bob.sec
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN ENCRYPTED PRIVATE KEY-----
|
||||
YzRnaC12MQAGYmNyeXB0ABQAAABkb1LLjyLNrcL4IgMD+NuDDQARY2hhY2hhMjBfcG9seTEzMDUAPFfaFm7bJc+pr6IRezakf5AsP7HTZnVfhSBt7XIKQcJBJY/yrPSfLxLvPMY4Edu4r0hyJTX2CNqR7wmwYg==
|
||||
-----END ENCRYPTED PRIVATE KEY-----
|
||||
3
__fs/crypt4ghfs-rust/tests/keys/testkey.pub
Normal file
3
__fs/crypt4ghfs-rust/tests/keys/testkey.pub
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN CRYPT4GH PUBLIC KEY-----
|
||||
hf6GsKxIePbdu+hIYpyIDSPh4h15DzTsMT4eqkw3yRw=
|
||||
-----END CRYPT4GH PUBLIC KEY-----
|
||||
3
__fs/crypt4ghfs-rust/tests/keys/testkey.sec
Normal file
3
__fs/crypt4ghfs-rust/tests/keys/testkey.sec
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN CRYPT4GH PRIVATE KEY-----
|
||||
YzRnaC12MQAEbm9uZQAEbm9uZQAgoQNTIKvd6MOvcyCgI3qvPd+t6gT2ut6PYSri74rK0T4=
|
||||
-----END CRYPT4GH PRIVATE KEY-----
|
||||
BIN
__fs/crypt4ghfs-rust/tests/rootdir/file.txt.c4gh
Normal file
BIN
__fs/crypt4ghfs-rust/tests/rootdir/file.txt.c4gh
Normal file
Binary file not shown.
3
__fs/crypt4ghfs-rust/tests/testfiles/alice.pub
Normal file
3
__fs/crypt4ghfs-rust/tests/testfiles/alice.pub
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN CRYPT4GH PUBLIC KEY-----
|
||||
oyERnWAhzV4MAh9XIk0xD4C+nNp2tpLUiWtQoVS/xB4=
|
||||
-----END CRYPT4GH PUBLIC KEY-----
|
||||
3
__fs/crypt4ghfs-rust/tests/testfiles/alice.sec
Normal file
3
__fs/crypt4ghfs-rust/tests/testfiles/alice.sec
Normal file
@@ -0,0 +1,3 @@
|
||||
-----BEGIN ENCRYPTED PRIVATE KEY-----
|
||||
YzRnaC12MQAGYmNyeXB0ABQAAABk8Kn90WJVzJBevxN4980aWwARY2hhY2hhMjBfcG9seTEzMDUAPBdXfpV1zOcMg5EJRlGNpKZXT4PXM2iraMGCyomRQqWaH5iBGmJXU/JROPsyoX5nqmNo8oxANvgDi1hqZQ==
|
||||
-----END ENCRYPTED PRIVATE KEY-----
|
||||
Reference in New Issue
Block a user