Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/misc
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos found by codespellArthur de Jong2021-08-101-1/+1
|
* Refactor internal storate of encrypted valuesArthur de Jong2017-12-151-0/+23
| | | | | | | | | | | This changes the way encrypted values are stored internally before being decrypted. For example, the internal _secret property can now be a decrypted plain value or an EncryptedValue instance instead of always being a DataType, simplifying some things (e.g. all XML encoding/decoding is now done in the corresponding module). This should not change the public API but does have consequences for those who use custom serialisers or parsers.
* Improve branch coverageArthur de Jong2016-09-142-3/+4
| | | | This enables branch coverage testing and adds tests to improve coverage.
* Support both CheckDigit and CheckDigitsArthur de Jong2016-03-191-0/+54
| | | | | | RFC 6030 is not clear about whether the attribute of ChallengeFormat and ResponseFormat should be the singular CheckDigit or the plural CheckDigits. This ensures that both forms are accepted.
* Implement policy checkingArthur de Jong2016-03-191-0/+81
| | | | | This checks for unknown policy elements in the PSKC file and will cause the key usage policy check to fail.
* Support various integer representationsArthur de Jong2016-03-191-0/+47
| | | | | | | | | | | | | | | | | | | This extends support for handling various encoding methods for integer values in PSKC files. For encrypted files the decrypted value is first tried to be evaluated as an ASCII representation of the number and after that big-endian decoded. For plaintext values first ASCII decoding is tried after which base64 decoding is tried which tries the same encodings as for decrypted values. There should be no possibility for any base64 encoded value (either of an ASCII value or a big-endian value) to be interpreted as an ASCII value for any 32-bit integer. There is a possibility that a big-endian encoded integer could be incorrectly interpreted as an ASCII value but this is only the case for 110 numbers when only considering 6-digit numbers.
* Re-organise test filesArthur de Jong2016-01-302-0/+122
This puts the test PSKC files in subdirectories so they can be organised more cleanly.