-
Notifications
You must be signed in to change notification settings - Fork 20
Feature/awesn2 #434
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
Merged
Merged
Feature/awesn2 #434
Changes from 58 commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
b8135f7
prepare externalising asn1/DER encoding
JesusMcCloud 5be9e41
derencodable
JesusMcCloud 26b53ff
Awesn1 Subject ALt names
JesusMcCloud 233373a
csr
JesusMcCloud cfac920
pubkey
JesusMcCloud c8f3dc5
cert
JesusMcCloud 233e5af
start migrating sigalg
JesusMcCloud 33006de
tmp ec sig
JesusMcCloud 1dc83ec
tmp ec sig
JesusMcCloud 8a4e1d1
remove x509sigalgfoo
JesusMcCloud 6f7b945
sigalg progress
JesusMcCloud 7d9187b
ecsig done
JesusMcCloud 2e2474b
cert
JesusMcCloud 7ba998a
baseline
JesusMcCloud ec28d25
jvm tests compiles
JesusMcCloud e2a135e
fix pem test
JesusMcCloud 49d3503
EC JCA interop fix
JesusMcCloud e7dd380
fixes
JesusMcCloud 1b8bda2
fixes
JesusMcCloud 5157771
ec sig parsing lenience
JesusMcCloud 2b587b8
cert/sig progress
JesusMcCloud 49a7fe5
fix RDN test
JesusMcCloud d075dc4
fix cert sigalg equals
JesusMcCloud 26cdb0c
fix sig equals
JesusMcCloud 7853db1
remove hashcode contract violation
JesusMcCloud 2e5469e
TbsCert eq/hashcode fix
JesusMcCloud 742666a
RSA passing tmp
JesusMcCloud b29b509
rsa progress
JesusMcCloud 8418ead
refactor RSA
JesusMcCloud ae40d90
migrate jvm to pss params
JesusMcCloud f9faed4
smooth RSA instantiation
JesusMcCloud bba0905
all green
JesusMcCloud dcafa35
remove x509Encoded from Cryptosignature
JesusMcCloud 7020b89
delegate pem properly
JesusMcCloud 0b3a93e
add awesn1 submodule
JesusMcCloud 31dbdcb
CSR done
JesusMcCloud e993bf3
add missing marker comment
JesusMcCloud fd36854
generalise cert
JesusMcCloud 7ae1238
RDN/ATV + Attr/extn
JesusMcCloud ccf3fbc
update tests
JesusMcCloud c6c08ed
update to awesn1 changes
JesusMcCloud 2a65a25
update to latest awesn1
JesusMcCloud e119686
update to latest awesn1
JesusMcCloud dfabdc2
fix altnames shape
JesusMcCloud b70e02b
update awesn1
JesusMcCloud 1d8c55d
fix tests
JesusMcCloud 4a97325
paralleleize jwk tests
JesusMcCloud 0125b4a
compact rsa tests
JesusMcCloud 3ac8618
upgrade yarn lock
JesusMcCloud f7eeffd
certificate and asn1integer improvements
JesusMcCloud d1c3b5b
update awesn1
JesusMcCloud 2899498
update to pkix outsourcing
JesusMcCloud eff6e8f
update sources for externalised pkix
JesusMcCloud 2f76648
remove awesn1 subodule
JesusMcCloud f42bbb2
cleanup and mark plugs for pkix extn
JesusMcCloud 3ad3aec
fix tests
JesusMcCloud 05b843d
fix more tests
JesusMcCloud 76e17bc
remove bogus conventions
JesusMcCloud d84f7cb
expose messed-up RSA MGF params
JesusMcCloud 6afe918
try fix rsassa mgfa params
JesusMcCloud 0ac4700
RSA SSA PSS Fix
JesusMcCloud 2b4835b
address PR feedback
JesusMcCloud ff07a8f
add missing optin for iostests
JesusMcCloud 896e495
Update indispensable-cosef/src/jvmTest/kotlin/ConversionTests.kt
JesusMcCloud 1d5d960
fix random asn1 int generation
JesusMcCloud 18310ce
fix random int generation for good
JesusMcCloud bc05413
fix the zero edge case
iaik-jheher c7c02e6
don't panic tests on ios-unsupported RSASSAPSS combinations
iaik-jheher 911a52c
Update Test.kt
iaik-jheher c04f211
update gradle to fix ios test reporter
JesusMcCloud f3f2a2e
gradle 9.5.1
JesusMcCloud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "awesn1"] | ||
| path = awesn1 | ||
| url = ../awesn1 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...sable-josef/src/commonMain/kotlin/at/asitplus/signum/indispensable/josef/JwsExtensions.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
...c/commonMain/kotlin/at/asitplus/signum/indispensable/josef/io/JwsCertificateSerializer.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,13 @@ | ||
| package at.asitplus.signum.indispensable.josef.io | ||
|
|
||
| import at.asitplus.signum.indispensable.decodeFromDer | ||
| import at.asitplus.signum.indispensable.encodeToDer | ||
| import at.asitplus.signum.indispensable.io.ByteArrayBase64Serializer | ||
| import at.asitplus.signum.indispensable.io.TransformingSerializerTemplate | ||
| import at.asitplus.signum.indispensable.pki.X509Certificate | ||
| import at.asitplus.signum.indispensable.pki.Certificate | ||
|
|
||
| object JwsCertificateSerializer : TransformingSerializerTemplate<X509Certificate, ByteArray>( | ||
| object JwsCertificateSerializer : TransformingSerializerTemplate<Certificate, ByteArray>( | ||
| parent = ByteArrayBase64Serializer, | ||
| encodeAs = X509Certificate::encodeToDer, | ||
| decodeAs = { X509Certificate.decodeFromDer(it) } //workaround iOS compilation bug KT-71498 | ||
| encodeAs = Certificate::encodeToDer, | ||
| decodeAs = { Certificate.decodeFromDer(it) } //workaround iOS compilation bug KT-71498 | ||
| ) |
10 changes: 10 additions & 0 deletions
10
indispensable-josef/src/commonTest/kotlin/TestSessionConfig.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,18 @@ | ||
| import at.asitplus.testballoon.matrix.ExecutionMode | ||
| import at.asitplus.testballoon.matrix.MatrixTestDefaults | ||
| import de.infix.testBalloon.framework.core.TestSession | ||
| import org.kotlincrypto.random.CryptoRand | ||
| import org.kotlincrypto.random.DelicateCryptoRandApi | ||
| import kotlin.random.Random | ||
|
|
||
| //Supercharge tests with concurrency! | ||
| class ModuleTestSession : TestSession( | ||
| testConfig = DefaultConfiguration.apply { MatrixTestDefaults { execution = ExecutionMode.Concurrent(64) } } | ||
| ) | ||
|
|
||
| // CryptRand != Random, see https://github.com/KotlinCrypto/random/issues/50 | ||
| @OptIn(DelicateCryptoRandApi::class) | ||
| object InsecureRandom : CryptoRand() { | ||
| override fun nextBytes(buf: ByteArray) = Random.nextBytes(buf) | ||
| fun nextBytes(n: Int) = ByteArray(n).also { nextBytes(it) } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.