| Recommend this page to a friend! |
| Info | Example | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 50 | All time: 10,720 This week: 35 | ||||
| Version | License | PHP version | Categories | |||
| kravatte 1.0 | The PHP License | 5 | PHP 5, Cryptography |
| Description | Author | |||||||||||||||||||||||
This class can encrypt, decrypt and authenticate data based on Keccak Farfalle modes. Innovation Award |
| |||||||||||||||||||||||
<? |
PHP-Kravatte Achouffe Cipher Suite: Encryption, Decryption, and Authentication Tools based on the Farfalle modes
Based on this Python implementation with minor changes https://github.com/inmcm/kravatte
Kravatte is a high-speed instance of Farfalle based on Keccak-p[1600] permutations, claimed to resist against classical and quantum adversaries. Modes for authentication, encryption and authenticated encryption are defined accordingly.
https://keccak.team/2017/updated_farfalle_kravatte.html https://eprint.iacr.org/2016/1188.pdf
It pass all tests from https://github.com/inmcm/kravatte/tree/master/tests
2021 @denobispsis
$x=new Kravatte;
MAC
$x->mac('Supersecreto', 'Et in Arcadia ego', 64)
SANE
$x->Kravatte_SANE($nonce,$key);
$cipher = $x->Kravatte_SANE_enc($message, $metadata);
[$cipher, $val]
$x->Kravatte_SANE($nonce,$key);
$plain = $x->Kravatte_SANE_dec(pack("H",$cipher[0]), $meta, pack("H",$cipher[1]));
[$message, $val]
SANSE
$x->Kravatte_SANSE($key);
$cipher = $x->Kravatte_SANSE_enc($message, $metadata);
[$cipher, $val]
$x->Kravatte_SANSE($key);
$plain = $x->Kravatte_SANSE_dec(pack("H",$cipher[0]), $meta, pack("H",$cipher[1]));
[$message, $val]
WBC
$x->Kravatte_WBC(strlen($message), $tweak,$key);
$cipher = $x->Kravatte_WBC_enc($message);
$x->Kravatte_WBC(strlen($message), $tweak,$key);
$message = $x->Kravatte_WBC_dec(pack("H*",$cipher));
WBC_AE
$x->Kravatte_WBC_AE(strlen($message), $key);
$cipher = $x->Kravatte_WBC_AE_enc($message,$metadata);
$x->Kravatte_WBC_AE(strlen($message),$key);
$plain = $x->Kravatte_WBC_AE_dec(pack("H*",$cipher),$metadata);
Oracle
$x->KravatteOracle($message, $key);
$x->random($size);
| File | Role | Description |
|---|---|---|
| Class | Class source | |
| Doc. | Documentation | |
| Example | Example script |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| 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.