feat: add blowfish2 128 bit implementation

- regular blowfish only uses 64 bits
- blowfish2 uses 128 bits like AES

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2024-09-05 21:08:04 +05:30
parent b6931e3196
commit 960c48573e
10 changed files with 968 additions and 41 deletions

View File

@@ -1,12 +1,3 @@
/**
* /mnt/z/my_git/blowfish/src/Main.cpp
* @file Main.cpp
* @author Avinal Kumar
* @since March 06, 2021
*
* Test Program
*/
#include <iostream>
#include <blowfish/blowfish.h>
@@ -59,6 +50,7 @@ int main(int argc, char const *argv[]) {
std::cout << decipher << std::endl;
if (message == decipher) {
std::cout << "Test successful!" << std::endl;
return 0;
} else {
return 1;