Marcin Krzyzanowski
a423c18b24
Add test asserting XChaCha20-Poly1305 nonce length metadata matches XChaCha20
...
- Verify AEADXChaCha20Poly1305.ivRange includes 24 but not 12.
- Ensure XChaCha20 accepts a 24-byte IV and rejects a 12-byte IV.
- Register the test in allTests.
2026-04-22 20:16:46 +02:00
Marcin Krzyzanowski
e690f4498e
ChaCha20: add convenience init with explicit 4-byte counter; add QUIC tests
...
- New init(key:counter:iv:) that accepts a 4-byte counter and 8- or 12-byte IV.
- Counter bytes are used verbatim for ChaCha state word 12. For 8-byte nonces,
the counter fills the low 32 bits of the 64-bit counter; upper 32 bits are 0.
- Validates counter length (must be 4 bytes), otherwise throws existing error.
- Adds RFC 9001 and QUIC v2 header protection test vectors.
- Adds test ensuring explicit counter matches blockCounter=1 behavior.
- Updates test manifest.
2026-04-22 15:46:25 +02:00
Marcin Krzyzanowski
93a3bd49df
Prefer FoundationEssentials when available; fall back to Foundation
...
- Replace direct Foundation imports with conditional imports across sources and
tests to use FoundationEssentials when present.
- No functional changes; improves compatibility with the new Foundation stack
(Swift 6, non-ObjC platforms) and environments where only
FoundationEssentials is available.
2026-04-22 00:27:46 +02:00
Marcin Krzyzanowski
a2acb6155f
Refactor UInt128 initialization from byte array and clarify variable names in tests
...
Replaces unsafe memory operations in UInt128 init with manual byte parsing to
improve safety and readability. Updates variable names in RSASecKeyTests for
clarity and safety.
2026-01-19 19:46:13 +01:00
Marcin Krzyzanowski
b3e2f39c23
Fix typos
2025-12-22 01:31:11 +01:00
NathanFallet
57d79e7f6f
fix tests not passing after #1076
2025-07-10 09:04:49 +02:00
Michael Brown
bdebd4bc11
Rename the bytes computed property in the extension on Data
...
to `byteArray` to avoid clashing with new `bytes: RawSpan` property
added in SE-0456 for Swift 6.2
2025-07-09 22:29:07 +01:00
BigTennEd223
fe66ea0616
docs: Fix typos in comment
2025-07-02 14:27:44 +08:00
RekCuy63
e1cc74b40b
docs: fix typos
2025-05-27 23:07:06 +08:00
kilavvy
ec0664f767
Update RSATests.swift
...
Signed-off-by: kilavvy <140459108+kilavvy@users.noreply.github.com >
2025-02-24 20:59:13 +01:00
Marcin Krzyzanowski
68e5d06af3
Update copyright years to 2025
...
The copyright years in source files and tests have been updated from 2022 to 2025 across the project.
2024-12-23 13:20:39 +01:00
Marcin Krzyzanowski
f6b012c0bf
Remove reference to removed tests
2024-04-11 20:38:05 +02:00
Marcin Krzyzanowski
f50da82251
Remove TestsPerformance target - it's empty
2024-04-11 16:09:01 +02:00
Marcin Krzyzanowski
037646a371
Merge pull request #1027 from LabMobi/RSA-PKCS1-SHA3-signature-verification
...
Rsa pkcs1 sha3 signature verification
2024-01-08 00:19:21 +01:00
WFrost3
9a6b676ea5
Add RSA SecKey conversion test for 1 byte exponent
...
Signed-off-by: WFrost3 <134406901+WFrost3@users.noreply.github.com >
2023-11-15 08:51:49 +00:00
Katrin Annuk
5175133f53
Add unit tests for SHA3 signature verification
2023-11-13 18:37:18 +02:00
Zsombor Szabo
31f38545e4
Add XChaCha20 and XChaCha20-Poly1305 (IETF draft-irtf-cfrg-xchacha)
2023-04-19 15:37:05 -07:00
Marcin Krzyzanowski
3cdf5e0470
README update
2022-09-17 17:58:26 +02:00
Brandon Toms
2571fd4264
SwiftFormat
2022-09-01 15:29:14 -07:00
Brandon Toms
249efb1576
Added a 1023bit RSA Key test fixture.
2022-09-01 15:26:47 -07:00
Brandon Toms
e642b53048
Updated to use the new keySizeBytes parameter
2022-09-01 15:26:11 -07:00
Brandon Toms
fe92c87158
Added messages to XCTAssert statements.
2022-09-01 15:24:26 -07:00
Brandon Toms
0a426d437f
raw and digest_pkcs1v15_RAW signature variant support.
2022-08-23 16:02:07 -07:00
Brandon Toms
92edc6d13e
Fixed spelling
2022-08-19 10:49:21 -07:00
Brandon Toms
4d1c69552a
Changed the encrypt and decrypt variant from .unsafe to .raw in order to match that of the SecKey counterpart.
2022-08-19 10:48:53 -07:00
Brandon Toms
7f4b5d1d8a
Fixed spelling and documentation.
2022-08-19 10:48:28 -07:00
Brandon Toms
7aad7e4084
Spelling
2022-08-15 15:23:18 -07:00
Brandon Toms
cc6025756f
SwiftFormat
2022-08-15 15:19:20 -07:00
Brandon Toms
12c3ee4b65
Added a disclaimer for a long running test.
2022-08-15 15:17:00 -07:00
Brandon Toms
0e29e5a822
Spelling
2022-08-15 10:57:02 -07:00
Brandon Toms
0cf50388a6
Updated file header
2022-08-15 10:35:47 -07:00
Brandon Toms
3130d3fc5e
Added additional EME and EMSA Padding Tests
2022-08-15 10:21:13 -07:00
Brandon Toms
0fda878644
SwiftFormat
2022-08-15 10:13:45 -07:00
Brandon Toms
a8e82747b1
SwiftFormat
2022-08-15 10:13:11 -07:00
Brandon Toms
413d71e177
Added documentation and reorganized
2022-08-15 10:12:40 -07:00
Brandon Toms
64968dd07f
Added documentation and reorganized
2022-08-15 09:31:11 -07:00
Brandon Toms
8ac36a4f79
RSA Key Tests
2022-08-14 18:35:03 -07:00
Brandon Toms
fd1519e827
Added tests for EME and EMSA PKCS1v15 Padding Schemes
2022-08-14 18:34:39 -07:00
Brandon Toms
45f3e994e8
Removed files
2022-07-21 16:59:40 -07:00
Brandon Toms
aab7d535ee
Merge branch 'feature/asn1+der'
2022-07-21 16:53:23 -07:00
Brandon Toms
c242291adc
Added ASN1 Tests
2022-07-21 10:59:12 -07:00
Brandon Toms
4a84abcc3d
Merge branch 'main'
...
Conflicts:
Sources/CryptoSwift/RSA.swift
Tests/CryptoSwiftTests/RSATests.swift
2022-07-18 20:11:06 -07:00
Brandon Toms
da650df148
Added CryptoSwift RSA and Apple Security SecKey interoperability tests
2022-07-10 10:13:10 -07:00
Brandon Toms
6f83cb8c60
Added RSA test fixtures. Added new test for DER import & export and encryption & decryption.
2022-07-10 10:12:12 -07:00
Brandon Toms
d8b0ec8e0c
SwiftFormat
2022-07-01 10:27:13 -07:00
Brandon Toms
d660b624fb
Placed throwing methods within a do catch block, with an XCTFail error message.
2022-07-01 09:47:10 -07:00
Marcin Krzyzanowski
7bfec7386e
Merge pull request #887 from NathanFallet/rsa
...
RSA
2022-03-10 15:50:53 +01:00
Jimmie Johansson
6932fdcc09
Use result for iv-propagation in PCBC. Fixes #896
2021-10-15 16:28:24 +02:00
Marcin Krzyzanowski
c4df3b2bbd
Update to new API in tests
2021-09-28 23:29:53 +02:00
Nathan Fallet
64d28f3c6c
Adding another test
2021-08-28 18:03:29 +02:00