aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove some using declarations in test codeJack Lloyd2017-09-224-32/+30
|
* Add a test of Pipe io on Unix file descriptorsJack Lloyd2017-09-211-0/+37
|
* More include header cleanupsJack Lloyd2017-09-2120-33/+10
|
* Header file cleanupsJack Lloyd2017-09-214-0/+4
| | | | Some help from include-what-you-use
* Fix the SM2 FFI testJack Lloyd2017-09-211-3/+4
|
* Update SM2 to use ASN.1 encoding for ciphertextsJack Lloyd2017-09-203-5/+39
| | | | | | | | | There are in fact 3 different variations of SM2 standard, first C1||C2||C3, then C1||C3||C2, then (most recently) an ASN.1 encoding. This makes us compatible with GmSSL This work was sponsored by Ribose Inc (@riboseinc).
* Merge GH #1212 Add support for 'raw' PSS signaturesJack Lloyd2017-09-207-140/+803
|\
| * Support PSSR_RawJack Lloyd2017-09-167-140/+803
| | | | | | | | | | | | | | Allows PSS-signing a raw hash while also still specifying the salt length. GH #1211
* | Change header guard format to BOTAN_FOO_H_Jack Lloyd2017-09-204-8/+8
| | | | | | | | | | | | ISO C++ reserves names with double underscores in them Closes #512
* | Reorder calls to avoid UBSan false positiveJack Lloyd2017-09-201-3/+4
| | | | | | | | Or that's what I assume it is since reordering makes it go away.
* | Another memory leak fixJack Lloyd2017-09-201-2/+4
| |
* | At end of fork test, exec /bin/true to avoid valgrind false positive.Jack Lloyd2017-09-201-1/+8
| |
* | Fix leaks in FFI testsJack Lloyd2017-09-201-0/+6
| |
* | Avoid deprecation warnings in testJack Lloyd2017-09-201-2/+2
| |
* | Add missing overrideJack Lloyd2017-09-201-1/+4
| |
* | Merge GH #1215 Deprecate package transformJack Lloyd2017-09-191-1/+5
|\ \
| * | Deprecate package transformJack Lloyd2017-09-191-0/+2
| | | | | | | | | | | | | | | Unclear what's up with #825 but in any case this function is funky and I don't care enough to try to debug/fix it...
| * | Disable broken package transform testJack Lloyd2017-09-191-1/+3
| | | | | | | | | | | | See GH #825
* | | Add basic tests for const time utilsJack Lloyd2017-09-193-0/+41
|/ / | | | | | | Remove CT::min and CT::max which were unused and it turns out, broken.
* | Merge GH #1205 Support large blocks in OCB modeJack Lloyd2017-09-195-1/+345
|\ \ | |/ |/|
| * Change wide block OCBJack Lloyd2017-09-155-19/+94
| | | | | | | | | | Ted Krovetz confirmed there were bugs in the reference code for blocks > 128 bits so these values should be the correct ones.
| * Fix bugs in OCB long testJack Lloyd2017-09-111-5/+7
| |
| * Support larger block sizes in OCBJack Lloyd2017-09-104-0/+267
| | | | | | | | | | | | This doesn't match the draft-3 test vectors and may be bogus. [ci skip]
* | Merge duplicated logic for clearing CPUID bitsJack Lloyd2017-09-161-40/+1
| |
* | Update Wycheproof GCM testsJack Lloyd2017-09-151-6/+38
| |
* | some formattingAtanas Filyanov2017-09-151-1/+5
| |
* | reenable 8 byte gcm tagsAtanas Filyanov2017-09-151-0/+9
| |
* | Allow GCM tag size in the range 96..128 bitsAtanas Filyanov2017-09-141-15/+43
| |
* | Merge GH #1208 Fix decoding of RFC 5915 ECC keysJack Lloyd2017-09-132-2/+31
|\ \
| * | Remove inner/outer OID check in EC_PrivateKey ctorRené Korthaus2017-09-132-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | RFC 5915 mandates that the OID of an ECDSA ECPrivateKey shall be id-ecPublicKey with the named curve as the parameters. ECPrivateKey may contain the named curve OID, too, which is compared to id-ecPublicKey. Such keys could not be loaded. We remove this check and add a test vector from strongswan.
* | | allow 12 byte GCM tags and add test vectorsAtanas Filyanov2017-09-131-0/+48
|/ /
* | Reference the right pipeJack Lloyd2017-09-111-1/+1
| | | | | | | | This didn't affect the results [ci skip]
* | Merge GH #1202 Fix CFB IV carryover closes #1200Jack Lloyd2017-09-111-0/+71
|\ \ | |/ |/|
| * Address CFB carryover bugJack Lloyd2017-09-101-0/+71
| | | | | | | | | | | | Test data generated by 1.10 so hopefully no further issues here. GH #1200
* | Change SM2 encryption to match updated standard.Jack Lloyd2017-09-101-1/+2
| | | | | | | | | | | | | | | | Unfortunately it seems the SM2 format changed between 2010 and 2012, now the ciphertext is C1 || C3 || C2. Unfortunate no matter how you slice it, but at least it's easy to convert from one form to another.
* | Fix a couple more VC warningsJack Lloyd2017-09-102-3/+3
| |
* | Fix bogus ffi testJack Lloyd2017-09-101-1/+1
|/ | | | Caught by a warning from VC
* Fix loading of plaintext PKCS#8 private keysRené Korthaus2017-09-081-3/+10
| | | | | We fixed this in the C++ API in GH #381, but apparently not in ffi. Also adds the missing tests.
* Merge GH #1189 Correct return value of botan_pk_op_verify_finishJack Lloyd2017-09-071-9/+9
|\
| * Correct return value of botan_pk_op_verify_finishJack Lloyd2017-09-061-9/+9
| | | | | | | | | | | | | | This function changed behavior in 0d403a3 see also GH #1187 Add new return code BOTAN_FFI_INVALID_VERIFIER and use it for both signature and bcrypt verification functions.
* | Add support for computing SM2 ZA field to FFIJack Lloyd2017-09-061-0/+8
| | | | | | | | This is a contribution from Ribose Inc.
* | Support arbitrary hashes for SM2 signaturesJack Lloyd2017-09-062-2/+3
| | | | | | | | This is a contribution from Ribose Inc
* | Support arbitrary hashes for SM2 encryptionJack Lloyd2017-09-051-3/+3
|/ | | | This is a contribution from Ribose Inc.
* Simplify polynomial doubling codeJack Lloyd2017-09-051-0/+13
| | | | | | | | | | GCC and Clang generate effectively identical code for a template with parameters, vs completely unrolled code as was used previously. Add a little-endian variant so XTS can use it. This extends XTS support to cover 256 and 512-bit ciphers. I was not able to find another implementation that supports both XTS and ciphers with large blocks, so the XTS test vectors are self-generated.
* Output errors to cerrJack Lloyd2017-09-021-4/+4
|
* Support a negative base in power_modJack Lloyd2017-09-022-0/+28
| | | | Closes #1168
* Add a script for running TLS-Attacker, remove old shell scriptsJack Lloyd2017-09-021-0/+29
| | | | [ci skip]
* Change http://botan.randombit.net to https URIsJack Lloyd2017-09-011-3/+3
| | | | | | Not a big deal since the site already uses HSTS, but whatever. [ci skip]
* Merge GH #1169 Add LLVM bitcode targetJack Lloyd2017-08-311-2/+15
|\
| * Add support for LLVM bitcode targetJack Lloyd2017-08-301-2/+15
| |