-
Notifications
You must be signed in to change notification settings - Fork 621
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add: support for MAC_CMAC_AES (AES-128/192/256-CMAC) hash function
To be able to support protocols based on AES-128-CMAC a new function calles `aes_cmac_cbc` is introduced. Currently gcrypt supports: AES-128, AES-192, AES-256. To use this functions the caller needs to ensure that the keylen is either 16, 24 or 32 bytes long. Example aes128_cmac.nasl: ``` data = "foobar"; key = "/B?E(H+MbQeThWmZ"; encrypt = aes_cmac_cbc(key : key, data : data); display(data); display(encrypt); ```
- Loading branch information
1 parent
b42420d
commit 1574628
Showing
3 changed files
with
91 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
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