Download .zip |
Info | Documentation | View files (2) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2019-01-26 (10 days ago) | Not yet rated by the users | Total: 52 This week: 52 | All time: 9,392 This week: 5 |
Version | License | PHP version | Categories | |||
aes-siv 1.0 | The PHP License | 5 | PHP 5, Cryptography |
Description | Author | ||||||||||||||
This class can encrypt data using AES SIV and other ciphers. |
|
Included AES-CMAC & AES_PMAC, OMAC2 & EAX
Non Misuse Resistant cipher AES_CMAC https://tools.ietf.org/html/rfc4493
AES_PMAC http://web.cs.ucdavis.edu/~rogaway/ocb/pmac-bak.htm
AES-SIV https://tools.ietf.org/html/rfc5297
AES_EAX http://web.cs.ucdavis.edu/~rogaway/papers/eax.pdf
OMAC-2 http://www.nuee.nagoya-u.ac.jp/labs/tiwata/omac/omac.html
VMAC https://tools.ietf.org/html/draft-krovetz-vmac-01
$x = new NMR;
$x->aes_cmac($data, $key);
$x->aes_pmac($data, $key);
$x->OMAC2($data, $key);
$x->vmac($key, $m, $nonce, $taglen);
$x->aes_siv_encrypt($Key,$Sn,$plaintext);
$x->aes_siv_decrypt($Key,$Sn,$cipher);
[$Sn is an array of additional data (for example AAD or nonce)]
$x->aes_eax_encrypt($Message,$Key,$Nonce,$Header);
$x->aes_eax_decrypt($Cipher,$Key,$Nonce,$Header);
$x->test_cmac(); $x->test_pmac(); $x->test_OMAC2(); $x->test_vmac(); $x->test_aes_siv(); $x->test_aes_eax();
This code is placed in the public domain.
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.