-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencryption.plain
More file actions
28 lines (19 loc) · 936 Bytes
/
encryption.plain
File metadata and controls
28 lines (19 loc) · 936 Bytes
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
---
import:
- vault_reqs
requires:
- key_management
exported_concepts:
- :EncryptionModule:
---
***definitions***
- :EncryptionModule: is module for encrypting and decrypting data within the :Vault:
***implementation reqs***
- The code should be implemented in the encryption folder.
- The implemented code should be a module (:EncryptionModule:) that can be used by other modules of the :Vault: system.
- The functions of :KeyManagementModule: should be used to derive the key and obtain cryptographic parameters.
***functional specs***
- Implement an Encrypt function that encrypts the input string with a given key
- The function should take the input key and input string and return an encrypted input string
- Implement a Decrypt function that enables the decryption of an encrypted string with a given key
- The function should take the input key and input encrypted string and return an decrypted input string