Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2306 commits
Select commit Hold shift + click to select a range
fa20a56
added support for rfc9579 (PBMAC1 with PBKDF2) to PKCS12KeyStoreSpi
Jan 16, 2025
d1183b3
added save tests to testPBMac1PBKdf2 test
Jan 21, 2025
9ef9e78
Refactor of Mayo
Mar 4, 2025
8b7bf52
Use Arrays.areEqual
peterdettman Mar 4, 2025
e78fa25
Refactor of MayoParameters
Mar 4, 2025
d54df59
Add java doc for the two main classes of Mayo
Mar 5, 2025
6c50207
PGPSignatureSubpacketGenerator: setXYZ() now removes duplicates.
vanitasvitae Mar 5, 2025
238da58
Merge branch '22-add-support-for-rfc-9579' into 'main'
dghgit Mar 6, 2025
08c9a09
TODO: gen_a_FqS_ct function in line 192 of SnovaKeyPairGenerator
Mar 7, 2025
cf05a00
added PKCS#10 PQC tests.
dghgit Mar 7, 2025
0db98d9
Fix the bug of ParallelHash that block size is set to 0.
Mar 7, 2025
6da0f6e
Merge remote-tracking branch 'pgpainless/setSubpacketAvoidDuplicates'…
Mar 7, 2025
ad11e9b
Refactor of decode (which can be re-used in Snova).
Mar 7, 2025
46e112b
TODO: genABQP
Mar 7, 2025
d42abde
updated for tls change
dghgit Mar 7, 2025
3a2c2d7
updated for tls change
dghgit Mar 7, 2025
81b4930
updated for tls change
dghgit Mar 7, 2025
95e67cd
Merge branch '2006-parallelhash-0-blocksize' into 'main'
dghgit Mar 9, 2025
2c4f6f8
Merge branch '2013-openpgp-pgpsignaturesubpacketgenerator' into 'main'
dghgit Mar 9, 2025
7924ec4
Merge branch 'main' into pqc-mayo
Mar 9, 2025
9d39e6f
Array clone of Mayo Key parameters. Remove Mayo from BouncyCastleProv…
Mar 9, 2025
0e88a50
Add Mayo to BouncyCastleProvider
Mar 9, 2025
5989d52
Merge branch '1993-secretkeypacket-newpacketformat' into 'main'
dghgit Mar 9, 2025
f4a2618
TODO: try to get the correct q
Jan 30, 2025
b69dd73
hashToIntegerRange is correct. TODO: fix the curve definition and pai…
Jan 31, 2025
d53e3ab
Fix step 3.
Jan 31, 2025
2434c1c
TODO fix the bugs in SAKKEKEMExtractor
Feb 3, 2025
a9c7179
TODO pairing
Feb 4, 2025
cc77eaf
Pass the test vector of SAKKE
Feb 5, 2025
50c84da
TODO: SAKKEKEMSGenerator and parameter settings
Feb 5, 2025
1fdc823
Remove unused functions. Format the code
Feb 5, 2025
2613693
Set teh parameter settings of SAKKE
Feb 6, 2025
68c3816
Add javadoc and add random tests.
Feb 7, 2025
3b6cab0
Add key pair check in SAKKEPrivateKeyParameters.
Feb 7, 2025
b05a7b5
Add ECCSI key generator process
Feb 18, 2025
9cb941f
Pass the test vector of ECCSISigner
Feb 19, 2025
3d3ca2d
Add support for different curves
Feb 20, 2025
3e09351
Add java doc and more tests with different digests
Feb 20, 2025
cd39549
Add java doc
Feb 20, 2025
4bfc1d7
change new BigInteger(n, random) to BigIntegers.createRandomBigInteger
Mar 9, 2025
1c274da
Merge remote-tracking branch 'origin/rfc-6508-sakke' into rfc-6508-sakke
Mar 9, 2025
0df73aa
Merge branch 'pqc-mayo' into 'main'
dghgit Mar 9, 2025
f31874d
Merge branch 'main' into 1958-aead-parameters
Mar 9, 2025
5435fb0
Merge branch 'main' into rfc-6508-sakke
Mar 9, 2025
b44302c
Merge branch 'main' into pqc-snova
Mar 9, 2025
f088322
TODO: AES CTR issue
Mar 9, 2025
5878317
Merge branch 'rfc-6508-sakke' into 'main'
dghgit Mar 10, 2025
7dadecd
removed use of JUnit from simple test.
dghgit Mar 10, 2025
a5c27a4
Cleanup array comparisons in tests
peterdettman Mar 10, 2025
bffd6a7
TLS: Update ML-KEM codepoints
peterdettman Mar 10, 2025
0f08ecd
added PKCS12 example using PBMac1
dghgit Mar 10, 2025
afd619f
Merge branch 'main' into 1958-aead-parameters
Mar 10, 2025
b5126f4
Add TlsProtocolKemTest to AllTests
peterdettman Mar 10, 2025
d709e2f
Factor out testDHExplicit
peterdettman Mar 10, 2025
3512785
Change ports for EdDSACredentialsTest
peterdettman Mar 10, 2025
223afea
Fixed, relates to GitHub #2107
mwcw Mar 10, 2025
9228be2
cleaned up TODOs.
dghgit Mar 11, 2025
20da394
Merge branch 'main' into 1958-aead-parameters
Mar 11, 2025
b7e747a
Remove duplicated parameters in MayoParameters
Mar 11, 2025
d1620c8
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Mar 11, 2025
9839405
Minor refactor on MayoSigner.
Mar 12, 2025
fbb673b
Merge branch 'main' into pqc-snova
Mar 12, 2025
3205bb1
Merge branch 'pqc-mayo-refactor' into 'main'
ligefeiBouncycastle Mar 12, 2025
47d3dba
TODO: gen_F
Mar 12, 2025
59d91b9
Merge branch 'main' into pqc-snova
Mar 12, 2025
e7f8a72
Improve encapsulatedTest
peterdettman Mar 12, 2025
ed2d439
Add note that only SHA1withRSA issuer is actually used
peterdettman Mar 12, 2025
9afb944
CMS: Expand ML-KEM tests
peterdettman Mar 12, 2025
bb265da
CMS: Prepare ML-DSA tests (not working yet)
peterdettman Mar 12, 2025
0f613fa
Enable AsconXof to perform multiple outputs
tonywasher Jan 20, 2025
eb646df
Refactor checkForVersion3 method
peterdettman Mar 12, 2025
c8dfa3b
Merge branch 'main' into pqc-snova
Mar 12, 2025
ac3224a
TODO: genP22
Mar 12, 2025
0869f53
TODO: genP22
Mar 12, 2025
27bb74c
Merge branch 'main' into 1958-aead-parameters
Mar 12, 2025
8cc2bc3
Merge branch '1958-aead-parameters' into 'main'
dghgit Mar 13, 2025
79e98f3
Remove BufferedLargeMac and ImmediateLargeMac
Mar 13, 2025
7da1e85
refactor of processDecryption
Mar 13, 2025
063bb44
refactor of processDecryption, remove AADProcessingBuffer.processDecr…
Mar 13, 2025
c6ed370
corrected PKIX oid.
dghgit Mar 13, 2025
bee11a9
refactor of processEncDecBytes
Mar 13, 2025
d73b9c7
Remove the debug code in SparkleTest
Mar 13, 2025
2c4453a
Fix the issue for #2025
Mar 13, 2025
050c9a4
Merge branch 'main' into grain128-aead-update
Mar 13, 2025
f8c09c9
Fix the issue for #2025
Mar 13, 2025
dd3826a
Fix the issue for #2025
Mar 13, 2025
91df749
Merge branch 'aead-base-update' into 'main'
dghgit Mar 14, 2025
20e323f
updated HQC to always generate 256 bit secrets
dghgit Mar 14, 2025
81e40ca
Fix the issue related to Grain128AEADEngine
Mar 14, 2025
b56ace4
Remove debug print
peterdettman Mar 14, 2025
f29c16b
Refactor of Grain128AEADEngine
Mar 14, 2025
4d6a182
Merge AEADBaseEngine and AEADBufferBaseEngine into one class
Mar 14, 2025
c144727
Minor changes around aead classes
Mar 14, 2025
24cf9b7
finishAAD. Set BufferBaseDigest not public
Mar 15, 2025
a1e0799
Refactor on Grain128AEADEngine
Mar 15, 2025
e150b26
Refactor on Grain128AEADEngine
Mar 15, 2025
14d6f24
Remove Grain128AEADTest.main
Mar 15, 2025
3d93144
Merge branch 'main' into grain128-aead-update
Mar 15, 2025
fb72efe
Merge branch 'main' into pqc-snova
Mar 15, 2025
b53457d
removed extra encoding of public key
dghgit Mar 16, 2025
292c783
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Mar 16, 2025
4361cd7
Refactor ProcessByte
Mar 16, 2025
b8e6d33
refactor for ElephantEngine.rol8 and rotl
Mar 16, 2025
97c5445
Merge branch 'main' into grain128-aead-update
Mar 16, 2025
9a09af9
Merge branch 'main' into pqc-snova
Mar 16, 2025
7f0c8f6
TODO: fix the bugs for packing sk of Snova.
Mar 17, 2025
fe895bf
Merge branch 'suppress-lint-warning-trustmanager' of github.com:HawkI…
dghgit Mar 18, 2025
d3ae95d
Merge branch 'HawkItzme-suppress-lint-warning-trustmanager'
dghgit Mar 18, 2025
e424fa5
corrected table inclusion - relates to github #2027
dghgit Mar 18, 2025
05f25fb
update
dghgit Mar 18, 2025
7acda24
TODO: Fix the bug in generating SNOVA_24_5_5_ESK public key
Mar 18, 2025
2670274
Misc. pkix refactoring
peterdettman Mar 18, 2025
da4636f
Refactoring in jce.provider.test:
peterdettman Mar 18, 2025
72513f2
Optimise extra ascon rounds between outputs
tonywasher Mar 18, 2025
75c2f1a
Refactor ASN1Dump
peterdettman Mar 18, 2025
537dc07
Merge remote-tracking branch 'tonywasher/AsconMultiXof' into 2030-asc…
Mar 18, 2025
eb6bf9c
Initial push of the branch for #2029
Mar 18, 2025
fa0d3ae
Add //-DM Hex.toHexString to ASN1Dump
Mar 18, 2025
e0ba6c2
Fix the bugs that ASCON Xof does not support multi-part outputs based…
Mar 19, 2025
9491ae7
Merge branch 'main' into pqc-snova
Mar 19, 2025
45c8e3f
Add a test case for HQCTest
Mar 19, 2025
7b5f81f
TODO finish copyTo in MapGroup1 and replace MapGroup1.encodeP in line…
Mar 19, 2025
16ba11a
Fix the bug in ReedSolomon
Mar 19, 2025
07ba85d
Merge branch 'hqc-checksum-fail' into 'main'
ligefeiBouncycastle Mar 19, 2025
1afbabd
TODO: fix the bug for l = 3
Mar 19, 2025
e70b6af
Merge branch 'main' into 2030-asconxof
Mar 19, 2025
aca4bd3
Fix the AsconCXof128 based on #2032 code
Mar 19, 2025
c870c30
Merge branch 'main' into grain128-aead-update
Mar 19, 2025
a22c827
Merge branch 'main' into pqc-snova
Mar 19, 2025
8fe3792
TODO: fix the line 216 of SnovaKeyPairGenerator
Mar 20, 2025
1752dbf
CMS: Basic tests for ML-DSA SignedData examples
peterdettman Mar 20, 2025
214991d
Pass key generation of Snova.
Mar 20, 2025
e47b4c9
Merge branch 'main' into pqc-snova
Mar 20, 2025
8da0e88
Correct the SnovaParmeters for v=16, o=15, l=3.
Mar 20, 2025
fa670c7
Merge branch '2030-asconxof' into 'main'
dghgit Mar 21, 2025
f726873
Merge branch 'grain128-aead-update' into 'main'
dghgit Mar 21, 2025
1503a6c
added support for external-mu
dghgit Mar 21, 2025
9c24366
Merge branch 'main' into pqc-snova
Mar 21, 2025
9ec242f
generalized proxy private key public key usage.
dghgit Mar 21, 2025
c30fd65
missing file - mu bounds checking
dghgit Mar 21, 2025
6cbd530
TODO: SnovaSigner
Mar 21, 2025
508dbf9
Add BcHssLmsContentSignerBuilder
Feb 14, 2025
15c5a96
Add some ObjectIdentifier. Pass the test for HSS signer.
Feb 17, 2025
31b0702
Pass the test for LMS signer.
Feb 17, 2025
1f1e6d8
Change LMSParameters[] in testCheckCreationHss
Feb 17, 2025
9e25ed9
Add javadoc for BcHssLmsContentSignerBuilder and BcHssLmsContentVerif…
Feb 18, 2025
0e8573c
Merge branch 'main' into pqc-snova
Mar 24, 2025
8756876
Merge branch 'rfc9708-cms-hss-lms' into 'main'
dghgit Mar 24, 2025
316c2a4
removed dependency on PQC PublicKeyFactory.
dghgit Mar 24, 2025
cff8aa0
TODO: signDigestCore
Mar 24, 2025
e2df273
Grain128AEADEngine: fix DER length encoding for AAD lengths > 255
peterdettman Mar 24, 2025
d02fceb
Ascon: more thorough multi-output XOF tests
peterdettman Mar 24, 2025
78cb999
Fix exception type
peterdettman Mar 24, 2025
c6b4ab0
Optimize AsconCXof128 init for simple case
peterdettman Mar 24, 2025
3b57d98
Fix naming
peterdettman Mar 24, 2025
8b4326f
Include external signer verification test
peterdettman Mar 24, 2025
54b3283
TODO: Evaluate vinegar part of central map
Mar 25, 2025
32a9232
Pass the test vectors for signing of Snova.
Mar 26, 2025
4380c3a
Merge branch 'main' into pqc-snova
Mar 26, 2025
465731d
Pass all test vectors of Snova
Mar 27, 2025
2504593
Remove unused code
Mar 27, 2025
35349ab
added extra doFinal test (relates to github #2035)
dghgit Mar 27, 2025
8954c62
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Mar 27, 2025
55bea31
Initial fix in DefaultBufferedBlockCipher
Mar 27, 2025
96a59e6
Refactor in verifySignatureCore
Mar 27, 2025
64026c2
Simplify the fix
Mar 27, 2025
67fb4d8
Fix #2035 issue in AEADBaseEngine.
Mar 27, 2025
4e80c99
Fix input/output overlapping in PaddedBufferedBlockCipher
Mar 27, 2025
2214d2d
TODO: Fix the bug in Romulus-M
Mar 27, 2025
0161def
Fix the bug in Romulus-M
Mar 27, 2025
d3ed581
Refactor in snovaShake
Mar 27, 2025
7d4df68
Refactor in SnovaEngine
Mar 27, 2025
d80712e
Merge branch '2035-io-overlap' into io-overlap-aead
Mar 27, 2025
89286d2
Fix the issues in BufferedBlockCipher and CTSBlockCipher
Mar 27, 2025
9ed602e
Update segmentsOverlap
Mar 28, 2025
4a369f0
Fix KXTSBlockCipher
Mar 28, 2025
07bb6a3
Fix NISTCTSBlockCipher and OldCTSBlockCipher
Mar 28, 2025
b524d1e
Remove GF16Utils.add
Mar 28, 2025
8cbbf61
Refactor of determinant4x4
Mar 28, 2025
de9c7b8
Refactor of SnovaSigner
Mar 29, 2025
4ec69f2
input/output overlap for DefaultBufferedBlockCipher and PaddedBuffere…
ligefeiBouncycastle Mar 29, 2025
afbde47
Merge branch '2035-io-overlap' into 'main'
dghgit Mar 29, 2025
7868d58
fix in DefaultMultiBlockCipher
Mar 30, 2025
4f8ede4
Merge branch 'main' into io-overlap-dbbc-child
Mar 30, 2025
b4133b9
Add test for DefaultMultiBlockCipher
Mar 30, 2025
212f3fe
Io overlap dbbc child
ligefeiBouncycastle Mar 31, 2025
1e78389
Merge branch 'io-overlap-dbbc-child' into 'main'
dghgit Mar 31, 2025
ff08d4a
GF16
Mar 31, 2025
494e40b
Merge branch 'main' into pqc-snova
Apr 1, 2025
1bb0a76
Try to refactor MapGroup1.
Apr 1, 2025
26783d5
Add more constant values.
Apr 1, 2025
a1544a8
Remove PublicKey class from Snova
Apr 1, 2025
26ce10e
Reduce the size of SnovaKeyElements
Apr 1, 2025
8e1bb62
Merge branch 'main' into io-overlap-dbbc-child
Apr 2, 2025
7bb88a6
Update AEAD modes
Apr 2, 2025
9dda406
TODO: add Snova to PQC Provider
Apr 2, 2025
e23335e
Refactor on Snova is almost done
Apr 3, 2025
98409a8
Refactor on Snova
Apr 3, 2025
9d609da
Add Snova to PQC provider
Apr 4, 2025
f76b52a
replace Mayo.GF16Utils.inverseF with GF16.inv
Apr 4, 2025
bfa82f1
Minor changes in GF16.encode
Apr 4, 2025
c4523c8
Fix the input/output issue in ChaCha20Poly1305
Apr 4, 2025
027f515
Restore testKeyFactory
peterdettman Apr 4, 2025
9077f2f
cleaned up use of prototype seed only OID.
dghgit Apr 6, 2025
15291dc
Update parameter names
peterdettman Apr 7, 2025
46e0360
Refactor NewSignedDataTest
peterdettman Apr 7, 2025
823cbd9
Update OQS OIDs (falcon etc).
Apr 8, 2025
1e3cf00
Remove duplicated SphincsPlust OIDs
Apr 8, 2025
4200648
Add the test of OQS OIDs
Apr 8, 2025
09b0db7
Refactor of Falcon code
Apr 8, 2025
d01a0d6
Initial push of the branch
Apr 8, 2025
f82ae92
Merge branch 'main' into pqc-snova
Apr 10, 2025
1b1a40f
Add SnovaTest to jcajce.provider.test
Apr 10, 2025
7ec58ff
added constraint check on "only*Certs" fields plus test for same. Rel…
dghgit Apr 11, 2025
bdb1016
added KeyStore test for new MAC algorithm
dghgit Apr 11, 2025
89fc6f4
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Apr 11, 2025
7bc638a
Refactor PQC private key parsing
peterdettman Apr 13, 2025
ad54856
Refactoring in tsp
peterdettman Apr 13, 2025
4e2ec8b
New ASN1Util methods to help with CHOICE types
peterdettman Apr 14, 2025
dbd3462
Refactor DistributionPointName
peterdettman Apr 14, 2025
f4295a4
BCJSSE: Strip trailing dot from hostname for SNI, endpointID checks
peterdettman Apr 15, 2025
6689bc9
Update HandshakeType values
peterdettman Apr 15, 2025
bd4dccc
Example SLH-DSA credentials from draft-ietf-lamps-x509-slhdsa-04
peterdettman Apr 16, 2025
242f960
Merge related test cases
peterdettman Apr 16, 2025
14f3c26
CMS: Prepare SLH-DSA tests (not working yet)
peterdettman Apr 16, 2025
07b1001
Minor update in comments
peterdettman Apr 18, 2025
ffa16b1
Fix fieldID init in X9ECParameters
peterdettman Apr 18, 2025
aabba7e
Merge branch '1911-0-1-keyIdentifier' into 'main'
dghgit Apr 20, 2025
5452a1a
Merge branch 'falcon-code-update' into 'main'
dghgit Apr 20, 2025
547257e
Merge branch '2046-falcon-oqs-oids-update' into 'main'
dghgit Apr 20, 2025
8c13a64
Merge branch 'main' into pqc-snova
Apr 20, 2025
e8cc790
Merge branch 'pqc-snova' into 'main'
dghgit Apr 20, 2025
f84cdc7
removed legacy rainbow, moved gemss to legacy
dghgit Apr 20, 2025
c564435
Update AEADProtectedPGPSecretKeyTest
ligefeiBouncycastle Apr 20, 2025
0d7dd97
Merge branch '1911-0-2-aead-protected-pgp-secretkey-test' into 'main'
dghgit Apr 20, 2025
7f073f7
Merge branch 'io-overlap-dbbc-child' into 'main'
dghgit Apr 20, 2025
f0f6072
Java 4 compatibility.
dghgit Apr 21, 2025
fc496aa
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Apr 21, 2025
095e0cc
OpenPGP API Phase 1
ligefeiBouncycastle Apr 22, 2025
cb76e2e
Merge branch '1911-1-v6-keygen' into 'main'
dghgit Apr 22, 2025
c6d6af4
Complete code of jcajce part on cms for chacha20-poly1305
Apr 24, 2025
3e31062
added valid date for CheckNameConstraintsTest
dghgit Apr 24, 2025
e1aec63
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Apr 24, 2025
b0daf63
Merge branch 'main' into rfc-8103-1-jcajce
Apr 24, 2025
e3fa081
Add a test for Chacha20-Poly1305 in SMIME
Apr 24, 2025
eb83ae5
Merge branch 'rfc-8103-1-jcajce' into 'main'
dghgit Apr 24, 2025
46a9228
moved CMS mod OIDs to PKCS object identifiers.
dghgit Apr 24, 2025
2f4d33d
added additional overlap test.
dghgit Apr 24, 2025
a3316d9
Update pull_request_template.md
KarolinHem Apr 24, 2025
177178d
Merge branch 'main' into main
KarolinHem Apr 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''

---

**Describe the Bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected Behavior**

A clear and concise description of what you expected to happen.

**Screenshots and Logs**

If applicable, add screenshots and logs to help explain your problem.

**Product Deployment**

Please complete the following information:
- Deployment format: [e.g. software, container]
- Version [e.g. 8.0.0]

**Desktop**

Please complete the following information:
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional Context**

Add any other context about the problem here.
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
blank_issues_enabled: true

# Update url below as needed.
contact_links:
- name: GitHub Discussions
url: https://github.com/bcgit/bc-java/discussions
about: Join in-depth discussions or ask questions
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem or specific use case? Please describe.**
A clear and concise description of the problem or use case.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Product deployment**
Please complete the following information:
- Deployment format: [e.g. software, container]
- Version [e.g. 8.0.0]

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## Describe your changes

<!--- Please describe your changes in detail. Include the motivation for the changes, e.g. what problem it solves or if it fixes a bug. -->

## How has this been tested?

<!--- If relevant, please describe any tests you ran to verify your changes. -->

## Checklist before requesting a review
<!--- To check or uncheck a box, switch between "[x]" and "[ ]" below. -->

- [ ] I have performed a self-review of my code
- [ ] I have kept the patch limited to only change the parts related to the patch
- [ ] This change requires a documentation update

See also [Contributing Guidelines](../CONTRIBUTING.md).
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
echo "Run, Build Application using script"
gradle clean build
# echo "Run, Build Application using script"
# gradle clean build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
bin/
build/
*/build/
libs/*.jar
out/
*/out/
.settings/
Expand Down
75 changes: 56 additions & 19 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,67 @@
stages:
- check
- build
- test
- publish
- sync

check-code:
stage: check
script:
- "apply_overlay bc-java ./"
- ". cienv.sh; \ gradle check -x test;"

test-code-8:
stage: test
- "ecr_login"
- "ecr_pull vm_base_intel latest"
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/check_java.sh\""
artifacts:
when: always
paths:
- "core/build/reports"
- "prov/build/reports"
- "pg/build/reports"
- "pkix/build/reports"
- "mail/build/reports"
- "util/build/reports"
- "tls/build/reports"
- "mls/build/reports"

ant-build:
stage: build
needs: [ "check-code" ]
script:
- "apply_overlay bc-java ./"
- "sh gettestdata.sh"
- ". cienv-8.sh; \ gradle -stacktrace clean build;"

test-code-11:
- "ecr_login"
- "ecr_pull vm_base_intel latest"
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/build_1_8.sh\""


test-code:
stage: test
needs: [ "check-code" ]
script:
- "apply_overlay bc-java ./"
- "sh gettestdata.sh"
- ". cienv-11.sh; \ gradle -stacktrace clean build;"

test-code-17:
stage: test
- "ecr_login"
- "ecr_pull vm_base_intel latest"
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/test.sh\""
artifacts:
when: always
reports:
junit:
- "core/build/test-results/**/*.xml"
- "prov/build/test-results/**/*.xml"
- "pg/build/test-results/**/*.xml"
- "pkix/build/test-results/**/*.xml"
- "mail/build/test-results/**/*.xml"
- "util/build/test-results/**/*.xml"
- "tls/build/test-results/**/*.xml"
- "mls/build/test-results/**/*.xml"


publish:
stage: publish
script:
- "apply_overlay bc-java-pub ./"
- "ecr_login"
- "ecr_pull vm_base_intel latest"
- "ci_docker_run \"vm_base_intel:latest\" \"bc-java\" \"/workspace/bc-java/ci/pub.sh\""

spongycastle:
stage: "sync"
script:
- "apply_overlay bc-java ./"
- "sh gettestdata.sh"
- ". cienv-17.sh; \ gradle -stacktrace clean build;"
- "syncpongy.sh"
51 changes: 51 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Bouncy Castle Contributing Guidelines <!-- omit in toc -->

Thank you for contributing to Bouncy Castle!

In this guide, you get an overview of the contribution workflow from starting a discussion or opening an issue, to creating, reviewing, and merging a pull request.

For an overview of the project, see [README](README.md).

### Start a discussion
If you have a question or problem, you can [search in discussions](https://github.com/bcgit/bc-java/discussions), if someone has already found a solution to your problem.

Or you can [start a new discussion](https://github.com/bcgit/bc-java/discussions/new/choose) and ask your question.

### Create an issue

If you find a problem with Bouncy Castle, [search if an issue already exists](https://github.com/bcgit/bc-java/issues).

> **_NOTE:_** If the issue is a __potential security problem__, please contact us
before posting anything public. See [Security Policy](SECURITY.md).

If a related discussion or issue doesn't exist, and the issue is not security-related, you can [open a new issue](../../issues/new/choose). An issue can be converted into a discussion if regarded as one.

### Contribute to the code

For substantial, non-trivial contributions, you may be asked to sign a contributor assignment agreement. Optionally, you can also have your name and contact information listed in [Contributors](https://www.bouncycastle.org/contributors.html).

Please note we are unable to accept contributions which cannot be released under the [Bouncy Castle License](https://www.bouncycastle.org/licence.html). Issuing a pull request on our public github mirror is taken as agreement to issuing under the Bouncy Castle License.

#### Create a pull request

> **_NOTE:_** If the issue is a __potential security problem__, please contact us. See [Security Policy](SECURITY.md).

You are welcome to send patches, under the Bouncy Castle License, as pull requests. For more information, see [Creating a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request). For minor updates, you can instead choose to create an issue with short snippets of code. See above.

* For contributions touching multiple files try and split up the pull request, smaller changes are easier to review and test, as well as being less likely to run into merge issues.
* Create a test cases for your change, it may be a simple addition to an existing test. If you do not know how to do this, ask us and we will help you.
* If you run into any merge issues, check out this [git tutorial](https://github.com/skills/resolve-merge-conflicts) to help you resolve merge conflicts and other issues.

For more information, refer to the Bouncy Castle documentation on [Getting Started with Bouncy Castle](https://doc.primekey.com/bouncycastle/introduction#Introduction-GettingStartedwithBouncyCastle).

#### Self-review

Don't forget to self-review. Please follow these simple guidelines:
* Keep the patch limited, only change the parts related to your patch.
* Do not change other lines, such as whitespace, adding line breaks to Java doc, etc. It will make it very hard for us to review the patch.


#### Your pull request is merged

For acceptance, pull requests need to meet specific quality criteria, including tests for anything substantial. Someone on the Bouncy Castle core team will review the pull request when there is time, and let you know if something is missing or suggest improvements. If it is a useful and generic feature it will be integrated in Bouncy Castle to be available in a later release.

Loading