Commit Graph
100 Commits
Author SHA1 Message Date
Leonetienne 9f80e326dd Fix Key::WriteToFile method being not const qualified 2022-05-27 17:04:05 +02:00
Leonetienne 9ed4d95036 A bit of cleanup 2022-05-27 16:50:18 +02:00
Leonetienne aac31ea5dc Removed bunch of garbage from main.cpp 2022-05-27 16:14:24 +02:00
Leonetienne 19edd5ce66 More tests on data formatter 2022-05-27 16:08:24 +02:00
Leonetienne facca04951 Added tests for recoding single blocks to all formats 2022-05-27 15:56:28 +02:00
Leonetienne 774dd4d152 Renamed method, and added first test to cli 2022-05-27 15:34:16 +02:00
Leonetienne 0a555855a3 Added test project 2022-05-27 15:27:33 +02:00
Leonetienne 2daf76f30e A bit of error handling and better comments 2022-05-27 14:47:26 +02:00
Leonetienne f858e7fc1b Remove unused code 2022-05-27 03:34:02 +02:00
Leonetienne 33436e55a5 Fix multiple definition issue 2022-05-27 03:30:11 +02:00
Leonetienne cb5fe0fd37 Proper include guard 2022-05-27 03:29:51 +02:00
Leonetienne 5412133e42 Move blocklenght lookup table to Bases.h 2022-05-27 03:27:43 +02:00
Leonetienne 050300c594 Better comment. 2022-05-27 03:01:47 +02:00
Leonetienne 798fdf22b7 Added multiblocks methods to data formatter 2022-05-27 03:00:34 +02:00
Leonetienne 7d9221a1de Got block conversions working... 2022-05-27 02:13:05 +02:00
Leonetienne 651641661e Implemented to-block methods of dataformatter 2022-05-26 23:22:04 +02:00
Leonetienne 8b90a5bf07 Implement output formatting module 2022-05-26 22:30:59 +02:00
Leonetienne cad651eab5 Add exceptoins 2022-05-26 22:06:04 +02:00
Leonetienne bf94eae8e7 Added module PrepareKey 2022-05-26 21:56:15 +02:00
Leonetienne 4ca536a38a Add Configuration class to intelligently decide default settings 2022-05-26 21:32:55 +02:00
Leonetienne 81c106c2c6 Adjust cli parameter definitions 2022-05-26 20:19:15 +02:00
Leonetienne 78c5c00944 GCryptLib version bump 2022-05-26 19:59:16 +02:00
Leonetienne 1ea89541f9 More streamlined naming scheme for digestion method of ghash 2022-05-26 19:57:14 +02:00
Leonetienne 3f990b30d0 Fix dangling hint 2022-05-26 19:34:58 +02:00
Leonetienne 3a7802d314 Fix apple linker problem 2022-05-26 19:25:40 +02:00
Leonetienne 44248914ef Added how2compile to readme 2022-05-26 19:05:35 +02:00
Leonetienne 5b0ea29b7b Add new visualizations 2022-05-26 18:59:59 +02:00
Leonetienne e7d44a871d Fix bad filename in visualization 2022-05-26 18:59:05 +02:00
Leonetienne 700a308fd6 Tidied up example/static test executables 2022-05-26 18:24:44 +02:00
Leonetienne 1cd465c977 Got rid of flexblocks 2022-05-26 15:47:24 +02:00
Leonetienne 05b29f32df Many methods now using vectors of blocks instead of flexblocks 2022-05-26 15:04:39 +02:00
Leonetienne f4df0f9ae5 Added a method to GPrng to get a random uint32, which is about twice as fast as GetRandom<uint32_t> 2022-05-26 12:52:04 +02:00
Leonetienne 6a5b9c1287 Made GPrng::GetBlock() faster by a factor of 100 2022-05-26 12:23:27 +02:00
Leonetienne bd9511c8b9 Unstupided mathematical expression 2022-05-26 04:40:23 +02:00
Leonetienne 02d12513f7 Fix markup in artifacts 2022-05-26 04:25:02 +02:00
Leonetienne 85f418307f Add artifact directory 2022-05-26 04:23:32 +02:00
Leonetienne 11e9d85a4f Implement direct file i/o to- and from blocks. 2022-05-26 04:22:42 +02:00
Leonetienne 1678e28b4d Add additional jumbling-up in feistel rounds 2022-05-26 02:44:22 +02:00
Leonetienne bdbf0ffa64 Implement new sbox, reduction, and expansion function 2022-05-26 02:30:16 +02:00
Leonetienne 02b27093ef Replaced halfblock with instanciation of Basic_Block 2022-05-26 00:55:24 +02:00
Leonetienne 3e1fa2c00a Typo in comment 2022-05-25 16:51:38 +02:00
Leonetienne c108b4a4b0 Templatified block class 2022-05-25 16:38:16 +02:00
Leonetienne ecd64e8637 Merge origin feature/relaunch into feature/relaunch 2022-05-25 14:58:40 +02:00
Leonetienne c66271eafe Fix macos compile issue 2022-05-25 14:57:40 +02:00
Leonetienne a55a8f221f Cipher now using new block class 2022-05-25 13:05:25 +02:00
Leonetienne 96ba2485c4 Added bitshift methods to block class 2022-05-25 12:54:26 +02:00
Leonetienne d8a39ad46f Add SetBit, and FlipBit methods to block 2022-05-24 23:51:17 +02:00
Leonetienne ac4b389efc Add GetBit() method to Block 2022-05-24 23:18:39 +02:00
Leonetienne 6c09afefba Implemented remaining operands for block class 2022-05-24 22:09:06 +02:00
Leonetienne ddbc209b58 Fix blanklines in block.cpp 2022-05-24 01:07:00 +02:00
Leonetienne 4848f887d4 Add comment 2022-05-24 01:05:45 +02:00
Leonetienne 30a57caadc [Progress:] Completely re-done Block class to not use bitsets, and provide custom operators. 2022-05-24 01:02:06 +02:00
Leonetienne 41dc2ef65e Experimentally implement matrix-mult 2022-05-23 22:42:14 +02:00
Leonetienne 873101833d Typo readme 2022-05-22 23:27:23 +02:00
Leonetienne 8873207901 Merge branch 'feature/relaunch' of gitea.leonetienne.de:leonetienne/GCrypt into feature/relaunch 2022-05-22 23:23:31 +02:00
Leonetienne c97bfd5742 Wording readme 2022-05-22 23:22:54 +02:00
Leonetienne f5b045c488 Fix typo in readme 2022-05-22 23:16:57 +02:00
Leonetienne c28f3b45cf Fix typo in readme 2022-05-22 22:39:25 +02:00
Leonetienne 66a909c4d7 Fix invalid html in readme 2022-05-22 21:25:53 +02:00
Leonetienne e4941429cc Added another visualization to readme 2022-05-22 21:22:02 +02:00
Leon Etienne 950c591fc9 Put images in readme next to each other 2022-05-22 20:55:04 +02:00
Leonetienne e5685e1c59 Readme and visualizations 2022-05-22 20:40:56 +02:00
Leonetienne 4ca1b74e24 Improved security 2022-05-22 20:13:41 +02:00
Leonetienne 4ce86b8f54 Add method to load and save keyfiles 2022-05-22 17:54:26 +02:00
Leonetienne 994c5dc503 Fix include guard 2022-05-22 17:54:04 +02:00
Leonetienne 57b1d7ac2a Indentation 2022-05-22 17:32:54 +02:00
Leonetienne e67067b65c Bump gcryptlib version 2022-05-22 17:30:15 +02:00
Leonetienne e6567f3c8b Now using actual include guards 2022-05-22 17:29:38 +02:00
Leonetienne 4d74153e92 Implemented a Key::Random() method 2022-05-22 17:24:56 +02:00
Leonetienne 5770a0d45a Implemented GPrng pnrg 2022-05-22 16:54:40 +02:00
Leonetienne 0c1bbf362e GHash now uses a full-size key for the cipher 2022-05-22 14:30:24 +02:00
Leonetienne 3e2f269962 Adjusted tests 2022-05-22 14:29:21 +02:00
Leonetienne f52758f1ce Cmake make colored output 2022-05-22 14:21:21 +02:00
Leonetienne bc780f3a4f Moved utility functions to cpp file 2022-05-22 14:13:10 +02:00
Leonetienne 9fce71e8ba Added padding direction option for Util::StringToBitblock 2022-05-22 13:54:03 +02:00
Leonetienne 1a2a74cdac Implemented a key class 2022-05-22 13:45:40 +02:00
Leonetienne c0b6bff8b7 Renamed class GCryptWrapper to GWrapper 2022-05-22 13:07:40 +02:00
Leonetienne 875e9a34f9 Renamed method DigestFlexblock to CipherFlexblock, and made it public 2022-05-22 13:04:20 +02:00
Leonetienne 923e37bde6 Renamed class Hasher to GHash 2022-05-22 12:55:39 +02:00
Leonetienne 2590bd9a48 Renamed class Cipher to GCipher 2022-05-22 12:51:58 +02:00
Leonetienne d45ca55ff3 Cmake specify color output as always 2022-05-22 12:51:29 +02:00
Leonetienne 9328e74461 Fix warning 2022-05-22 12:31:48 +02:00
Leonetienne 0d1755a22e Warnings are now treated as errors 2022-05-22 12:31:33 +02:00
Leonetienne 52ff44edce Added class for hashing, that is now used for password to key transformation 2022-05-22 00:23:10 +02:00
Leonetienne a7a30e13bf Implemented digestion (feeding one block at a time) 2022-05-21 20:41:09 +02:00
Leonetienne 549838e7d1 Added warning to readme 2022-05-21 20:40:44 +02:00
Leon Etienne 41737fe5f2 Fix typo in code samples in readme 2022-05-17 14:16:17 +02:00
Leonetienne 1d790ee10f Switch to https-based git submodules 2022-05-17 01:31:26 +02:00
Leonetienne 0c55485c9a Version bump gcryptlib 2022-05-17 01:18:00 +02:00
Leonetienne 65f4f6e582 Step 2: fix broken submodule config 2022-05-17 01:17:48 +02:00
Leonetienne f60cd3877e Step 1: fix broken submodule config 2022-05-17 01:16:25 +02:00
Leonetienne cd5f0f0646 Streamlined workflow of GCryptCLI 2022-05-17 01:13:42 +02:00
Leonetienne d64eea5be7 unbloated readme 2022-05-16 23:49:08 +02:00
Leonetienne 43bbea9f1e Fix dangling var in cmakelist of gcryptlib 2022-05-16 23:47:36 +02:00
Leonetienne be0a30bae9 Update readme 2022-05-16 23:37:14 +02:00
Leonetienne 2945d2a285 Translated encryption/decryption consistency tests to catch2 2022-05-16 23:26:29 +02:00
Leonetienne 43f8608073 Translated password2key transformation collision resistance tests to catch2 2022-05-16 23:03:55 +02:00
Leonetienne 0f004f54c6 Renamed legacy wrapper class to GCryptWrapper 2022-05-16 22:50:52 +02:00
Leonetienne 8608bf66ca Translated gcrypt wrapper tests to catch2 2022-05-16 22:47:41 +02:00
Leonetienne a00ec743d7 GCryptLib: Fix include paths 2022-05-16 22:35:28 +02:00