-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR will add support for encrypting data which going to be on disk. Two components are being encrypted, one is sst and another one is vlog. In sst, each block is encrypted with seperate IV using AES CTR mode. In vlog, each entry is being encrypted. Each vlog will have base IV of 12 bytes. IV for the each entry is generated by merging base IV with entry offset. Data are encrypted using datakey, which is generated by the badger. The datakey is further encrypted using user provided key and stored in disk. So that user can change key. In order to change key user has to provide old key and new key. we'll decrypt using old key and store the datakey back to disk by encrypting using the new key. By this mechanism, it'll simplfy the key change.
- Loading branch information
balaji
committed
Sep 24, 2019
1 parent
12fb082
commit a425b0e
Showing
24 changed files
with
1,952 additions
and
494 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
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
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
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
Oops, something went wrong.