PHP Classes

PHP AES Encryption Library for SIV, CMAC, PMAC, EAX, OMAC-2, VMAC: Encrypt data using AES SIV and other ciphers

Recommend this page to a friend!
  Info   View files Documentation   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 124 This week: 1All time: 9,440 This week: 560Up
Version License PHP version Categories
aes-siv 1.0.0The PHP License5PHP 5, Cryptography
Description 

Author

This class can encrypt data using AES SIV and other ciphers.

It can take a string of data and encrypt using several types of supported ciphers.

The class can also decrypt previously encrypted data using the same ciphers.

Currently it supports ciphers like SIV, CMAC, PMAC, EAX, OMAC-2 and VMAC.

Picture of Jose Luis Lucas
Name: Jose Luis Lucas <contact>
Classes: 10 packages by
Country: Spain Spain
Age: ???
All time rank: 250864 in Spain Spain
Week rank: 416 Up14 in Spain Spain Up
Innovation award
Innovation award
Nominee: 7x

Documentation

AES-SIV

Included AES-CMAC &amp; AES_PMAC, OMAC2 & EAX

  • Copyright I-2019 denobisipsis

AES SIV, CMAC & PMAC, AES EAX, OMAC-2, VMAC

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

USAGE

$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);

TEST VECTORS

$x->test_cmac(); $x->test_pmac(); $x->test_OMAC2(); $x->test_vmac(); $x->test_aes_siv(); $x->test_aes_eax();


License

This code is placed in the public domain.


  Files folder image Files  
File Role Description
Plain text file NMR.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:124
This week:1
All time:9,440
This week:560Up