Jakub Jelen
a69ab7c70c
tests: Fix context for the asn1 test
2021-05-24 11:25:53 +02:00
Frank Morgner
5f9085fedb
Merge pull request #1960 from Jakuje/eddsa
...
Add support for (X)EdDSA keys in OpenPGP driver
2021-03-22 15:36:59 +01:00
Vincent JARDIN
4119b2c3e7
ASN1 lax bit string decoding
...
Some ASN1 objects stored on some smartcards (for instance the
IASECC/CPX ones) do not comply strictly with the rules
8.6.2.3 and 8.6.2.3 from the ITU.
Since these rules are not some strict ones, let's have a loose
decoding option that can be displayed by the command:
opensc-explorer
asn1 7001 # for instance
Fix: issue #2224
2021-03-17 10:58:20 +01:00
Jakub Jelen
a020b85d94
unittests: Briefly test asn1_encode
2021-03-01 15:43:28 +01:00
Peter Marschall
16c889cf7d
spelling fixes
...
Fix various spelling errors, mostly in comments but also in texts displayed.
Errors found & interactively fixed using 'codespell', with additional manual
checks after the fixes.
2020-08-30 10:35:14 +02:00
Jakub Jelen
4c4237f8a3
tests: Cover asn1_put_tag()
2020-05-07 02:32:46 +02:00
Jakub Jelen
90aaa9e083
unittests: Increase coverage of decode_entry()
2020-01-07 17:07:48 +01:00
Jakub Jelen
586f0a3e42
unittests: Reproducer for empty OCTET STRINGs calling malloc(0)
2020-01-07 17:07:48 +01:00
Jakub Jelen
e8af4fc167
unittests: Add more coverage corner cases for BIT STRINGs
2020-01-07 14:50:48 +01:00
Jakub Jelen
3af6d7999e
unittests: Add tests for non-minimal OBJECT ID encoding
...
Thanks @hkario for suggestions
2020-01-07 14:50:48 +01:00
Jakub Jelen
37c8c46623
unittests: Simplify the OBJECT ID tests
2020-01-07 14:50:48 +01:00
Jakub Jelen
1e2b0fe45f
unittests: Restructure the BIT STRING tests
2020-01-07 14:50:48 +01:00
Jakub Jelen
71e45bb5a7
unittest: Rewrite the INTEGER unittests to use macros and avoid code duplication
2020-01-07 14:50:47 +01:00
Jakub Jelen
aaa302ca35
asn1: Allow non-strict INTEGER parsing for other code paths (FCI parsing)
2020-01-07 14:50:47 +01:00
Jakub Jelen
4569009418
unittests: Improve test coverage mostly with negative test cases
...
Thanks @hkario for review
2020-01-07 14:50:47 +01:00
Jakub Jelen
611d1cea4c
unittests: Verify BIT STRING parsing as integers
2020-01-07 14:50:47 +01:00
Jakub Jelen
8d49e4a305
unittests: Test encoding of OIDs and integers
2020-01-07 14:50:47 +01:00
Jakub Jelen
7971bfded3
unittests: Verify parsing of more OIDs
2020-01-07 14:50:47 +01:00
Jakub Jelen
b6b9a886f9
unittests: Verify negative ASN1 integeres parsing
2020-01-07 14:50:47 +01:00
Jakub Jelen
8e6d2e251d
unittests: Reproducer for undefined shift in ASN1 parser
2020-01-07 14:50:47 +01:00