-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create aegis block cipher interface for aegis encrypt
Summary: - Create aegis block cipher encrypt interface for aegis128l_soft, aegis128l_aesni, aegis256_soft, and aegis256_aesni. - The new encrypt interface is consisted of following functions. When aad or input is chunked, we will call the update function on each chunk, and then call the final function to signal that all the chunks have been processed. - init_state - initiate state values - aad_update/encrypt_update - If buffer has existing bytes, copy to buffer and process the bytes if buffer is full - process [16/32] bytes at a time to state - copy remaining bytes from to buffer - aad_final/encrypt_final - if buffer has bytes, process those bytes - Added `TestEncryptChunkedAad` and `TestEncryptChunkedInput` to test the new interface Reviewed By: mingtaoy Differential Revision: D46780195 fbshipit-source-id: 3bc3b85c12a2e8eda54353a5eb77aec502f7fc70
- Loading branch information
1 parent
f16e2e8
commit 647943f
Showing
18 changed files
with
1,001 additions
and
39 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.