Tidied up example/static test executables
This commit is contained in:
21
GCryptLib/exec/benchmark-encryption.cpp
Normal file
21
GCryptLib/exec/benchmark-encryption.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include <GCrypt/GWrapper.h>
|
||||
#include "Benchmark.h"
|
||||
|
||||
using namespace Leonetienne::GCrypt;
|
||||
|
||||
int main() {
|
||||
|
||||
Benchmark(
|
||||
"file encryption",
|
||||
[]() {
|
||||
GWrapper::EncryptFile(
|
||||
"./execAssets/big-testfile.bmp",
|
||||
"./execAssets/testimage.bmp.crypt",
|
||||
Key::FromPassword("password1")
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user