Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include "cryptopp/modes.h"
- #include "cryptopp/speck.h"
- #include "cryptopp/filters.h"
- int main(int argc, char* argv[]) {
- CryptoPP::SPECK128::Encryption speck;
- std::cout << "StaticAlgorithmName: " << speck.StaticAlgorithmName() << std::endl;
- std::cout << "AlgorithmName (unkeyed): " << speck.AlgorithmName() << std::endl;
- CryptoPP::byte key[CryptoPP::SPECK128::DEFAULT_KEYLENGTH] = {};
- speck.SetKey(key, sizeof(key));
- std::cout << "AlgorithmName (keyed): " << speck.AlgorithmName() << std::endl;
- return 0;
- }
- StaticAlgorithmName: SPECK-128
- AlgorithmName (unkeyed): SPECK-128
- AlgorithmName (keyed): SPECK-128(128)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement