Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pointycastle from 3.7.4 to 3.9.0 #16

Closed
wants to merge 1 commit into from

Bump pointycastle from 3.7.4 to 3.9.0

01a200f
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Closed

Bump pointycastle from 3.7.4 to 3.9.0 #16

Bump pointycastle from 3.7.4 to 3.9.0
01a200f
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test report succeeded Apr 22, 2024 in 0s

151 passed, 0 failed and 0 skipped

Tests passed successfully

✅ reports/test-results.json

158 tests were completed in 6s with 151 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/src/armor_test.dart 6✅ 119ms
test/src/encoding_test.dart 4✅ 53ms
test/src/file_test.dart 5✅ 462ms
test/src/header_test.dart 3✅ 194ms
test/src/keypair_test.dart 1✅ 22ms
test/src/plugin_test.dart 1✅ 12ms
test/src/scrypt_test.dart 5✅ 40ms
test/src/stanza_test.dart 2✅ 108ms
test/src/stream_test.dart 4✅ 50ms
test/src/testkit/testkit_test.dart 114✅ 1s
test/src/x25519_test.dart 6✅ 77ms

✅ test/src/armor_test.dart

✅ Can parse armored
✅ Fails when parsing prepended garbage
✅ Fails when parsing appended garbage
✅ Can write armored
✅ Armored file is armored
✅ Not armored file is not armored

✅ test/src/encoding_test.dart

✅ raw base64 MUST reject normal base64 with padding
✅ can decode unpadded base64
✅ can encode bytes to raw base64
✅ creates chunks from a list

✅ test/src/file_test.dart

 (setUpAll)
✅ encrypt
✅ decrypt
✅ encrypts and decrypts multiple chunks
✅ encrypts and decrypts with passphrase
✅ only one stanza is allowed when decrypting with a password

✅ test/src/header_test.dart

 (setUpAll)
✅ header
✅ parse header
✅ incorrect version

✅ test/src/keypair_test.dart

 (setUpAll)
✅ keypair to string

✅ test/src/plugin_test.dart

✅ Plugins can be added

✅ test/src/scrypt_test.dart

 (setUpAll)
✅ parse stanza
✅ MUST ignore if tag is not scrypt
✅ MUST reject if arguments length is not 3
✅ MUST reject if second argument is not 16 bytes
✅ MUST reject if body is not 32 bytes

✅ test/src/stanza_test.dart

 (setUpAll)
✅ create age recipient stanza
✅ parse age recipient stanza

✅ test/src/stream_test.dart

 (setUpAll)
✅ parses header
✅ parses complex header
✅ parses payload after header, removes newline
✅ mac is part of the header

✅ test/src/testkit/testkit_test.dart

testkit
  ✅ armor_full_last_line should succeed
  ✅ x25519 should succeed
  ✅ x25519_multiple_recipients should succeed
  ✅ armor_no_eol should succeed
  ✅ stream_three_chunks should succeed
  ✅ stream_last_chunk_full_second should succeed
  ✅ stream_two_chunks should succeed
  ✅ scrypt should succeed
  ✅ stanza_empty_body should succeed
  ✅ armor_crlf should succeed
  ✅ x25519_grease should succeed
  ✅ stream_empty_payload should succeed
  ✅ stanza_empty_last_line should succeed
  ✅ stanza_valid_characters should succeed
  ✅ armor_whitespace_outside should succeed
  ✅ stream_last_chunk_full should succeed
  ✅ armor should succeed
  ✅ scrypt_work_factor_leading_zero_octal should fail
  ✅ armor_long_line should fail
  ✅ armor_lowercase should fail
  ✅ armor_headers should fail
  ✅ x25519_lowercase should fail
  ✅ scrypt_work_factor_wrong should fail
  ✅ version_unsupported should fail
  ✅ stream_short_second_chunk should fail
  ✅ stanza_not_canonical should fail
  ✅ hmac_missing should fail
  ✅ stream_no_chunks should fail
  ✅ stanza_base64_padding should fail
  ✅ stanza_missing_final_line should fail
  ✅ scrypt_long_file_key should fail
  ✅ armor_empty_line_begin should fail
  ✅ stream_no_final_two_chunks_full should fail
  ✅ x25519_long_file_key should fail
  ✅ armor_empty_line_end should fail
  ✅ x25519_low_order should fail
  ✅ hmac_extra_space should fail
  ✅ armor_no_match should fail
  ✅ stream_short_chunk should fail
  ✅ scrypt_work_factor_trailing_garbage should fail
  ✅ stream_last_chunk_empty should fail
  ✅ armor_invalid_character_header should fail
  ✅ scrypt_work_factor_zero should fail
  ✅ hmac_no_space should fail
  ✅ scrypt_work_factor_leading_plus should fail
  ✅ stanza_missing_body should fail
  ✅ armor_wrong_type should fail
  ✅ stream_no_final should fail
  ✅ x25519_long_share should fail
  ✅ scrypt_double should fail
  ✅ stream_two_final_chunks should fail
  ✅ scrypt_not_canonical_body should fail
  ✅ scrypt_salt_short should fail
  ✅ x25519_no_match should fail
  ✅ stream_missing_tag should fail
  ✅ armor_whitespace_end should fail
  ✅ stanza_no_arguments should fail
  ✅ stream_bad_tag_second_chunk_full should fail
  ✅ x25519_bad_tag should fail
  ✅ hmac_bad should fail
  ✅ scrypt_work_factor_overflow should fail
  ✅ x25519_identity should fail
  ✅ armor_no_padding should fail
  ✅ scrypt_work_factor_23 should fail
  ✅ armor_header_crlf should fail
  ✅ stanza_spurious_cr should fail
  ✅ stanza_multiple_short_lines should fail
  ✅ stream_bad_tag_second_chunk should fail
  ✅ x25519_short_share should fail
  ✅ scrypt_and_x25519 should fail
  ✅ scrypt_no_match should fail
  ✅ armor_pgp_checksum should fail
  ✅ scrypt_work_factor_missing should fail
  ✅ armor_no_end_line should fail
  ✅ armor_short_line should fail
  ✅ hmac_garbage should fail
  ✅ stanza_empty_argument should fail
  ✅ armor_garbage_encoded should fail
  ✅ hmac_not_canonical should fail
  ✅ armor_whitespace_begin should fail
  ✅ stream_trailing_garbage_long should fail
  ✅ scrypt_work_factor_leading_garbage should fail
  ✅ armor_whitespace_line_start should fail
  ✅ scrypt_uppercase should fail
  ✅ x25519_not_canonical_body should fail
  ✅ scrypt_bad_tag should fail
  ✅ scrypt_work_factor_leading_zero_decimal should fail
  ✅ hmac_truncated should fail
  ✅ stanza_long_line should fail
  ✅ hmac_trailing_space should fail
  ✅ armor_eol_between_padding should fail
  ✅ header_crlf should fail
  ✅ stream_no_nonce should fail
  ✅ armor_garbage_leading should fail
  ✅ armor_whitespace_eol should fail
  ✅ scrypt_salt_missing should fail
  ✅ stream_short_nonce should fail
  ✅ x25519_not_canonical_share should fail
  ✅ scrypt_not_canonical_salt should fail
  ✅ x25519_extra_argument should fail
  ✅ scrypt_work_factor_hex should fail
  ✅ armor_invalid_character_payload should fail
  ✅ stream_bad_tag should fail
  ✅ armor_whitespace_last_line should fail
  ✅ stanza_invalid_character should fail
  ✅ stream_no_final_two_chunks should fail
  ✅ scrypt_salt_long should fail
  ✅ scrypt_work_factor_negative should fail
  ✅ scrypt_extra_argument should fail
  ✅ stream_trailing_garbage_short should fail
  ✅ stream_no_final_full should fail
  ✅ armor_not_canonical should fail
  ✅ armor_garbage_trailing should fail
  ✅ stanza_bad_start should fail

✅ test/src/x25519_test.dart

 (setUpAll)
✅ calculates recipient from identity
✅ MUST ignore if tag is not X25519
✅ MUST reject if arguments length is not 2
✅ MUST reject if second argument is not 32 bytes
✅ MUST reject if body is not 32 bytes
✅ can parse stanza if formed correctly