Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More size_t | lloyd | 2010-10-15 | 3 | -30/+30 |
| | |||||
* | Use size_t in ssl | lloyd | 2010-10-15 | 12 | -75/+75 |
| | |||||
* | Only allocate as much working space as needed in key schedule | lloyd | 2010-10-14 | 1 | -4/+4 |
| | |||||
* | Remove standalone S function | lloyd | 2010-10-14 | 1 | -12/+13 |
| | |||||
* | In all cases where the block size of the cipher is fixed, the key | lloyd | 2010-10-14 | 33 | -366/+244 |
| | | | | | | | | | | | | | | | | parameters are as well. So make them template paramters. The sole exception was AES, because you could either initialize AES with a fixed key length, in which case it would only be that specific key length, or not, in which case it would support any valid AES key size. This is removed in this checkin; you have to specifically ask for AES-128, AES-192, or AES-256, depending on which one you want. This is probably actually a good thing, because every implementation other than the base one (SSSE3, AES-NI, OpenSSL) did not support "AES", only the versions with specific fixed key sizes. So forcing the user to ask for the one they want ensures they get the ones that are faster and/or safer. | ||||
* | Fix examples | lloyd | 2010-10-13 | 4 | -7/+11 |
| | |||||
* | More size_t | lloyd | 2010-10-13 | 11 | -26/+26 |
| | |||||
* | More size_t | lloyd | 2010-10-13 | 3 | -18/+18 |
| | |||||
* | Implicit rounds based on key variable size | lloyd | 2010-10-13 | 4 | -27/+44 |
| | |||||
* | Make the rounds implicit with the size of the key values | lloyd | 2010-10-13 | 2 | -55/+42 |
| | |||||
* | More size_t. Document changes | lloyd | 2010-10-13 | 8 | -20/+23 |
| | |||||
* | Compile fix | lloyd | 2010-10-13 | 1 | -5/+13 |
| | |||||
* | Use buffer.size() directly to avoid lots of virtual calls in core loop | lloyd | 2010-10-13 | 1 | -9/+9 |
| | |||||
* | Remove the upto argument to update_be | lloyd | 2010-10-13 | 2 | -9/+12 |
| | |||||
* | Update API doc | lloyd | 2010-10-13 | 1 | -2/+2 |
| | |||||
* | Add a new subclass for BlockCipher BlockCipher_Fixed_Block_Size, which | lloyd | 2010-10-13 | 57 | -203/+232 |
| | | | | | | | | | | | | | | sets the block size statically and also creates an enum with the size. Use the enum instead of calling block_size() where possible, since that uses two virtual function calls per block which is quite unfortunate. The real advantages here as compared to the previous version which kept the block size as a per-object u32bit: - The compiler can inline the constant as an immediate operand (previously it would load the value via an indirection on this) - Removes 32 bits per object overhead (except in cases with actually variable block sizes, which are very few and rarely used) | ||||
* | Split some of the ASN.1 types into their own headers | lloyd | 2010-10-13 | 8 | -58/+100 |
| | |||||
* | s/u32bit/size_t/ in asn1 | lloyd | 2010-10-13 | 7 | -75/+77 |
| | |||||
* | Fix compile | lloyd | 2010-10-13 | 1 | -1/+6 |
| | |||||
* | Remove HashFunction::HASH_BLOCK_SIZE entirely | lloyd | 2010-10-13 | 10 | -36/+44 |
| | |||||
* | Remove most uses of HASH_BLOCK_SIZE | lloyd | 2010-10-13 | 22 | -52/+57 |
| | |||||
* | s/BLOCK_SIZE/block_size()/ | lloyd | 2010-10-13 | 57 | -383/+392 |
| | |||||
* | Use output_length() instead of OUTPUT_LENGTH pseudo-property | lloyd | 2010-10-13 | 42 | -97/+97 |
| | |||||
* | Add accessors for block size and output length | lloyd | 2010-10-13 | 2 | -0/+10 |
| | |||||
* | s/u32bit/size_t/ in utils | lloyd | 2010-10-13 | 11 | -55/+55 |
| | |||||
* | Use size_t rather than u32bit in SymmetricAlgorithm | lloyd | 2010-10-13 | 86 | -182/+184 |
| | |||||
* | size_t | lloyd | 2010-10-13 | 1 | -1/+1 |
| | |||||
* | More size_t | lloyd | 2010-10-13 | 9 | -40/+40 |
| | |||||
* | s/u32bit/size_t/ in stream | lloyd | 2010-10-13 | 14 | -108/+118 |
| | |||||
* | s/u32bit/size_t/ in pbkdf | lloyd | 2010-10-12 | 7 | -31/+31 |
| | |||||
* | Use size_t for BufferedComputation::add_data | lloyd | 2010-10-12 | 64 | -209/+216 |
| | |||||
* | Fix compilation of examples; benchmarking and RNG changes mostly | lloyd | 2010-10-12 | 5 | -35/+13 |
| | |||||
* | Update for RNG changes | lloyd | 2010-10-12 | 1 | -4/+4 |
| | |||||
* | Remove Alder32::hash, replace by anon namespace function | lloyd | 2010-10-12 | 2 | -14/+20 |
| | |||||
* | Use size_t instead of u32bit in entropy and rng | lloyd | 2010-10-12 | 21 | -106/+106 |
| | |||||
* | size_t in selftest | lloyd | 2010-10-12 | 1 | -1/+1 |
| | |||||
* | Use size_t in SCAN_Name | lloyd | 2010-10-12 | 8 | -33/+33 |
| | |||||
* | Use size_t instead of u32bit in pk_pad | lloyd | 2010-10-12 | 19 | -109/+109 |
| | |||||
* | Use size_t instead of u32bit in all of pubkey | lloyd | 2010-10-12 | 34 | -235/+233 |
| | |||||
* | Use size_t in filters | lloyd | 2010-10-12 | 59 | -450/+452 |
| | | | | | This breaks API for anyone creating their own Filter types, but it had to happen eventually. | ||||
* | Use size_t rather than u32bit for the blocks argument of encrypt_n | lloyd | 2010-10-12 | 65 | -403/+430 |
| | |||||
* | Add a simple update_be to BufferedComputation that takes an integer | lloyd | 2010-10-12 | 4 | -18/+19 |
| | | | | | and writes the bytes to the stream in big-endian order. Use it in KDF2, MGF1, and FPE. | ||||
* | s/u32bit/size_t/ in kdf | lloyd | 2010-10-12 | 14 | -77/+77 |
| | |||||
* | Use size_t in all of math, remove to_u32bit | lloyd | 2010-10-12 | 36 | -374/+357 |
| | |||||
* | s/u32bit/size_t/ for block cipher parallelism queries | lloyd | 2010-10-12 | 6 | -9/+9 |
| | |||||
* | s/u32bit/size_t/ in codec and benchmark | lloyd | 2010-10-12 | 9 | -56/+56 |
| | |||||
* | s/u32bit/size_t/ in alloc | lloyd | 2010-10-12 | 8 | -79/+91 |
| | | | | Also handle partial writes in alloc_mmap | ||||
* | s/u32bit/size_t/ | lloyd | 2010-10-12 | 4 | -12/+12 |
| | |||||
* | Use a full write instead of seek+write to create a sparse | lloyd | 2010-10-12 | 1 | -9/+7 |
| | | | | | file. FreeBSD's man page for mmap warns that using NOSYNC with sparse files causes problems. Closes PR 30 | ||||
* | Change ifs to compares to make it easier for a compiler to figure out | lloyd | 2010-10-12 | 1 | -11/+9 |
| | | | | | | it should use add with carry or conditional moves if available. Also remove the amd64 asm; the mp_amd64 code should be used for this case. |