Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2822 commits
Select commit Hold shift + click to select a range
bd60123
Merge branch 'ascon-update' into 'main'
dghgit Sep 9, 2025
aa379f3
Merge branch '2133-javadoc-cms-streams' into 'main'
dghgit Sep 9, 2025
8067e71
Merge branch '2103-romulusM-output-length' into 'main'
dghgit Sep 9, 2025
475d5ed
added javadoc and sources jars
dghgit Sep 9, 2025
dcfff3d
added set for DigestInfoCalculatorProvider - relates to github #2156
dghgit Sep 10, 2025
ec6f757
tls-mldsa updates from testing
peterdettman Sep 10, 2025
489e627
Java 4 Compatibility.
dghgit Sep 11, 2025
ae607c9
Java 4 Compatibility.
dghgit Sep 11, 2025
9ffcb59
removed pqc legacy package.
dghgit Sep 11, 2025
a5a03cf
dealt with ErrorProne warnings
dghgit Sep 11, 2025
97c7934
Java 4 updates.
dghgit Sep 11, 2025
44c8689
Java 1.1 updates.
dghgit Sep 11, 2025
4fe963d
Formatting
peterdettman Sep 11, 2025
c1c490d
BCJSSE: Finalize and enable ML-DSA support
peterdettman Sep 11, 2025
3bda4b5
Include mldsa signature schemes in default sig algs
peterdettman Sep 11, 2025
edc97e2
Update release notes
peterdettman Sep 11, 2025
6058e18
moved to 1.82
dghgit Sep 12, 2025
eaeca64
Add PQ algorithms
peterdettman Sep 12, 2025
e48d1e2
corrected variable use.
dghgit Sep 12, 2025
d062884
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Sep 12, 2025
0aa463e
migrated StringBuffer to StringBuilder - relates to github #2106
dghgit Sep 13, 2025
40ed011
removed use of deprecated class
dghgit Sep 13, 2025
c855976
added parameter setting to allow for pre-hash calculation - relates t…
dghgit Sep 13, 2025
1a47dd0
error prone fix.
dghgit Sep 13, 2025
d252f96
merge of github #2123 with minor corrections
dghgit Sep 14, 2025
b127c52
fixed probable null pointer issue - relates to github #1907
dghgit Sep 14, 2025
59df791
Merge branch 'add-bom' of https://github.com/runeflobakk/bc-java into…
dghgit Sep 14, 2025
1834526
Merge branch 'runeflobakk-add-bom'
dghgit Sep 14, 2025
0c824b6
set name of artifact to bc-<version>-bom
dghgit Sep 14, 2025
2ac0e18
corrected CertPath issue - relates to github #2152
dghgit Sep 14, 2025
c4af489
added purpose check, marked deprecated method
dghgit Sep 14, 2025
cd723a2
Added publish.gradle stub
mwcw Sep 15, 2025
bf2443b
added named PREHASH algorithms - relates to github #2162
dghgit Sep 16, 2025
09c1f52
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Sep 16, 2025
f3f3841
further clean up of old algorithm names
dghgit Sep 16, 2025
fc6c4c7
added PQC sigs
dghgit Sep 16, 2025
4b8fc15
updated with current 1.82 PRs and bug fixes
dghgit Sep 16, 2025
a864750
updated from PR list
dghgit Sep 16, 2025
9240e48
removed unnecessary public "internal" method.
dghgit Sep 16, 2025
b83a951
Pqc hqc update v5
ligefeiBouncycastle Sep 16, 2025
37cdf64
Merge branch 'pqc-hqc-update-v5' into 'main'
dghgit Sep 16, 2025
491bd5b
minor compatibility fixes.
dghgit Sep 16, 2025
33f4ae5
minor compatibility fixes.
dghgit Sep 16, 2025
4261058
Delay KangarooAbsorb until needed, to avoid 168 erroneous 0-byte-padding
jonmv Sep 16, 2025
363a9da
removed overlap check (unsafe)
dghgit Sep 17, 2025
de42702
partial addition of Java25 support
dghgit Sep 17, 2025
5c2b6ee
corrected overlap test to use doFinal(), oh dear...
dghgit Sep 17, 2025
bdc46ee
added missing fields
dghgit Sep 18, 2025
126ac9e
added BOM contrib
dghgit Sep 18, 2025
c31eba6
rotated release notes for 1.83
dghgit Sep 18, 2025
742579b
cleaned up imports.
dghgit Sep 21, 2025
f309403
fixed typo date -> data
dghgit Sep 22, 2025
6f53ba1
Fix NPE and add extra checks
peterdettman Sep 22, 2025
0fb2ec1
Fix javadoc
peterdettman Sep 22, 2025
4c6811e
Improve OAEP parameters matching
peterdettman Sep 22, 2025
9a62750
Refactor constant-time comparison
peterdettman Sep 23, 2025
af6cd72
Refactor ASN1Null parsing
peterdettman Sep 23, 2025
22fc1ea
1.0.22 now released to FIPS, moved provider version to 1.0.23.
dghgit Sep 25, 2025
97412b2
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Sep 25, 2025
66b02f8
OpenPGPKeyReader: Use consistent method name parseKeyOrCertificate()
vanitasvitae Sep 27, 2025
904ee4a
comment update.
dghgit Sep 28, 2025
8f1b358
Release key exchange earlier
peterdettman Sep 29, 2025
f1e2937
Report extension type in unsupported_extension error messages
peterdettman Sep 30, 2025
696b373
Some error messages in tls
peterdettman Sep 30, 2025
bd28358
Move ReflectionUtil to org.bouncycastle.tls
peterdettman Oct 1, 2025
bba445e
Add PrivateKeyUtil class
peterdettman Oct 1, 2025
03e8aeb
moved ML-DSA to SHA-512 as the default message digest (CNSA compliance)
dghgit Oct 2, 2025
a05312a
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Oct 2, 2025
2e93e0e
Force specific sig alg names for ML-DSA
peterdettman Oct 4, 2025
98e862d
Add MessageSignerAdapter
peterdettman Oct 6, 2025
b5fb497
Read jdk.tls.maxHandshakeMessageSize system property every SSLContext…
peterdettman Oct 6, 2025
5aeba12
BCJSSE: Initial implementation of SLH-DSA support
peterdettman Oct 6, 2025
30a4b18
added generic composite algorithm.
dghgit Oct 6, 2025
ebb64fd
Fix naming convention for SLH-DSA certificate resources
peterdettman Oct 6, 2025
aab0448
(D)TLS: JcaTlsCrypto dynamically checks ML-DSA, SLH-DSA support
peterdettman Oct 7, 2025
d82149c
moved to beta
dghgit Oct 10, 2025
7eee23b
updated with COMPOSITE sig addition
dghgit Oct 10, 2025
17f55c5
added id-alg-unsigned and use for it with empty signatures for X.509.
dghgit Oct 10, 2025
2115e40
added refs to composite sigs and alt-unsigned
dghgit Oct 10, 2025
502942b
Re-use current time
peterdettman Oct 12, 2025
ed2bcc4
Fix NPE when testing passphrase for stripped secret keys
vanitasvitae Oct 13, 2025
b63a31b
Update javadoc about meaning of zero timeout
peterdettman Oct 13, 2025
e29f5c6
added some short hand constants.
dghgit Oct 14, 2025
869bbff
added implementation of the direct method for doing POP on a KEM key …
dghgit Oct 14, 2025
1cdf7be
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Oct 14, 2025
7578581
fixed some errors related to ASN.1 encoding issues.
dghgit Oct 14, 2025
0f7a397
added ref to CMP direct POP update
dghgit Oct 15, 2025
1da7a51
corrected name of OID to RFC 9883 spelling.
dghgit Oct 16, 2025
12c823c
corrected name of ASN.1 structure to RFC 9883 spelling. Updated PQC P…
dghgit Oct 16, 2025
8e3a22c
Simplify reflective call to destroy
peterdettman Oct 16, 2025
caf23e3
Revert "Move ReflectionUtil to org.bouncycastle.tls"
peterdettman Oct 16, 2025
e010a8a
removed TODO (already done).
dghgit Oct 17, 2025
b8434f8
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Oct 17, 2025
63d00e4
removed use of PrivateKeyInfo to recover private key algorithm in Com…
dghgit Oct 18, 2025
0f33f19
Merge branch 'fixStrippedKeyUnlockNPE' of https://github.com/pgpainle…
dghgit Oct 18, 2025
d0a802b
Merge branch 'pgpainless-fixStrippedKeyUnlockNPE'
dghgit Oct 18, 2025
e5d15d8
update for stripped PGP keys
dghgit Oct 18, 2025
da2e764
added UnrecoverableKeyException cause for "wrong password" on PKCS12 …
dghgit Oct 18, 2025
69518ce
added explicit cause test back in - relates to github #2082
dghgit Oct 18, 2025
18b8192
ErrorProne reduction
dghgit Oct 18, 2025
61c40f4
added UnrecoverableKeyException bad key decryption on PKCS12 KeyStore…
dghgit Oct 19, 2025
9fec6b2
removed printStackTrace() - relates to github #2082
dghgit Oct 19, 2025
c629ba0
Refactoring in pqc.crypto.mldsa
peterdettman Oct 20, 2025
074f32b
JavaDoc.
dghgit Oct 20, 2025
fc91714
Added final composite OIDs.
dghgit Oct 20, 2025
d1c0380
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Oct 20, 2025
a8a2266
Added final composite OIDs to external, simple correctness test.
dghgit Oct 20, 2025
88725a9
Added composite oids
dghgit Oct 21, 2025
3d9111d
First round at upgrading to draft-13 with IANA oids and new labels.
dghgit Oct 21, 2025
e23ce04
Filled in hardcoded oids with new ones - upgrading to draft-13.
dghgit Oct 21, 2025
ffd38e6
Fixed MLDSA65 with 4096 PSS at upgrading to draft-13.
dghgit Oct 21, 2025
e40db55
Updated labels for draft 13.
dghgit Oct 21, 2025
0a88fed
OpenPGPKey.getSecretKeys(): Preserve order of keys
vanitasvitae Oct 21, 2025
7592e7e
OpenPGPCertificate.getPublicKeys(): Preserve order of items
vanitasvitae Oct 21, 2025
27f6831
added mention of composite update
dghgit Oct 21, 2025
315de69
Fix ClassCastException when trying to verify misplaced subkey binding…
vanitasvitae Oct 21, 2025
00f728f
Fixed typo Ed -> ED
dghgit Oct 22, 2025
7c4d661
Fixed support for COMPOSITE as algorithm name.
dghgit Oct 22, 2025
77f6705
added algorithm name to OID lookup
dghgit Oct 22, 2025
5385397
removed duplicate code.
dghgit Oct 22, 2025
54c330f
removed accidental checked in code.
dghgit Oct 22, 2025
827bbce
added back domain setting
dghgit Oct 22, 2025
7d2e736
added test of test vectors to test body
dghgit Oct 23, 2025
9b3216d
relocated class - added getContextFrom()
dghgit Oct 24, 2025
a7b56ba
added test for use of context by reflection
dghgit Oct 24, 2025
e473a06
added reflection based setting of signature context for ML-DSA and SL…
dghgit Oct 24, 2025
0226bd9
added use of new SpecUtil class, removed use of deprecated one.
dghgit Oct 24, 2025
b0c629c
added system/security property to disable Lenstra check where appropr…
dghgit Oct 24, 2025
eb5b0fd
added SHA512/224, SHA512/256 PBE.
dghgit Oct 25, 2025
5f54a7e
added oids for RIPEMD160, SHA512/224, SHA512/256
dghgit Oct 25, 2025
9119f25
Merge remote-tracking branch 'jonmv/jonmv/avoid-too-eager-absorbtion-…
Oct 26, 2025
73ded27
Minor changes in Kangaroo
Oct 26, 2025
0411027
BCJSSE: Log ClientHello and ServerHello extension types (FINEST)
peterdettman Oct 27, 2025
8f0f285
Use clientHelloExtensions local in processServerHello
peterdettman Oct 27, 2025
6234265
BCJSSE: Log inbound handshake messages (FINEST)
peterdettman Oct 27, 2025
c040eb3
Refactoring in TlsProtocol
peterdettman Oct 27, 2025
86e904a
Merge branch '2172-kangaroo'
peterdettman Oct 30, 2025
bfb80ae
SM2 user ID length checks
peterdettman Oct 30, 2025
49eb0d5
SM2 user ID length checks
peterdettman Oct 30, 2025
3de437e
replaced ascii domain seperators with Hex strings.
dghgit Oct 31, 2025
471bec3
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Oct 31, 2025
fe1fc6c
Added HKDF, PBEPBKDF2 and SCRYPT implementations for KDF (JDK25)
Oct 31, 2025
727e864
Updated to gradle 9.
mwcw Nov 2, 2025
444055e
relates to github #2186: moved ML-DSA, SLH-DSA to use SignatureSpi.
dghgit Nov 2, 2025
d280bae
Update main source sets in prov
mwcw Nov 2, 2025
68d5152
added test 25 stanza to tls subproject
mwcw Nov 2, 2025
2ff23dd
ErrorProne fixes.
dghgit Nov 3, 2025
910d21d
Add EC support curves to the attributes
Nov 5, 2025
a852df9
Merge remote-tracking branch 'origin/main' into java-25-kdf
Nov 5, 2025
63fc71c
Reverted to gradle 9.1.0, added HKDF to prov
Nov 6, 2025
319394e
Switched package from symmetric to kdf, added KDF_PACKAGE to BouncyCa…
Nov 6, 2025
34a691c
Disabled checkCRLCompositeCreation() and checkCompositeSignatureCerti…
Nov 6, 2025
a29b3fc
Added BCKey to BCPQCKeys, fixed CertTest, and CompositeSignaturesTest
Nov 7, 2025
0e64b9f
added PBKDF2 tests and missing SHA512-224/256 PBE implementations.
dghgit Nov 10, 2025
c26bdb4
Merge branch '31-support-curve' into 'main'
dghgit Nov 10, 2025
3b7d0d5
removed use of <> operator
dghgit Nov 10, 2025
b6f76e8
Fix SAKKE curve parameters
peterdettman Nov 10, 2025
eafbf9f
SAKKE perf. opts.
peterdettman Nov 10, 2025
3e761ae
Configure basepoints
peterdettman Nov 10, 2025
61b5fb6
Refactor point validation
peterdettman Nov 10, 2025
a477132
Changed reference to core source.
mwcw Nov 11, 2025
61c60c5
Added reference for java 21
mwcw Nov 11, 2025
d0d4345
Use two-arg sequence constructor
peterdettman Nov 11, 2025
65c3dc4
BCJSSE: Fix supported_versions creation for renegotiation handshake
peterdettman Nov 11, 2025
32ee0bb
minor refactor.
dghgit Nov 19, 2025
9571359
removed use of boolean.
dghgit Nov 19, 2025
baff1d8
Update releasenotes.html
Nov 19, 2025
34c4cc2
Update CONTRIBUTORS.html.html
Nov 19, 2025
a047534
Merge branch 'main' into java-25-kdf
Nov 19, 2025
dfe8c05
increased RSA key size and added skip tests for Java 25 compatibility.
dghgit Nov 20, 2025
e10d552
cleaned up tests
dghgit Nov 20, 2025
d8724e9
draft-ietf-lamps-dilithium-certificates-07 => RFC 9881
peterdettman Nov 20, 2025
b63220b
Added gate to prevent publish and spongy sync when not on main branch
Nov 20, 2025
d8cc442
Java 25 gradle updates
dghgit Nov 21, 2025
4affef3
Java 25 updates
dghgit Nov 21, 2025
1dc502f
Java 25 compatibility (ML-DSA declaration)
dghgit Nov 21, 2025
0bd52f8
Java 25 (no TLS_RSA)
dghgit Nov 21, 2025
42f9324
error prone/Java 25 fixes
dghgit Nov 21, 2025
432969d
removed inclusion of assertTrue
dghgit Nov 21, 2025
0dd35f4
moved provider to 1.83.
dghgit Nov 22, 2025
d8996da
Fix the issue in ECAlgorithmParametersTest
Nov 22, 2025
d9da0ba
added java 25 files
dghgit Nov 22, 2025
91ed2b0
Merge branch 'main' into java-25-kdf
Nov 22, 2025
175a269
Merge branch 'java-25-kdf' into 'main'
dghgit Nov 22, 2025
4de02c7
Merge branch 'support-curves-test'
Nov 22, 2025
09c9e9c
fixed typo
dghgit Nov 22, 2025
72b2fd7
moved spec classes to org.bouncycastle.jcajce.spec
dghgit Nov 22, 2025
8ede5c2
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Nov 22, 2025
568a493
dropped SNAPSHOT
dghgit Nov 22, 2025
ac1856d
BCJSSE updates in release notes
peterdettman Nov 23, 2025
62b0d50
Merge branch 'fixClassCastExceptionMisplacedBindingSig' of https://gi…
dghgit Nov 24, 2025
4f26d4c
Merge branch 'pgpainless-fixClassCastExceptionMisplacedBindingSig'
dghgit Nov 24, 2025
3dabf75
Merge branch 'parseKeyOrCertificate' of https://github.com/pgpainless…
dghgit Nov 24, 2025
dbbe975
Merge branch 'pgpainless-parseKeyOrCertificate'
dghgit Nov 24, 2025
4af8518
Merge branch 'fixGetSecretKeysOrder' of https://github.com/pgpainless…
dghgit Nov 24, 2025
942d04a
Merge branch 'pgpainless-fixGetSecretKeysOrder'
dghgit Nov 24, 2025
774f590
Added AnnotatedPrivateKey check (relates to github #2200).
dghgit Nov 24, 2025
962639e
Example ML-KEM credentials from draft-ietf-lamps-kyber-certificates-11
peterdettman Nov 24, 2025
75eb3fb
moved to OSGI plugin 7.1.0
dghgit Nov 25, 2025
22794e1
Further KDF work.
dghgit Nov 25, 2025
a50a8dc
error prone fix
dghgit Nov 25, 2025
400e147
error prone cleanup
dghgit Nov 25, 2025
11d7ddd
BCJSSE: Don't enable ML-DSA signature schemes by default
peterdettman Nov 25, 2025
edd3d90
(D)TLS: Only offer reneg info with pre-1.3
peterdettman Nov 25, 2025
65dcde7
added CMS lookups for composite signatures and digests.
dghgit Nov 25, 2025
29bf82a
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Nov 25, 2025
7092e5e
Java 4, Java 5 compatibility changes.
dghgit Nov 25, 2025
b2c14ba
added arg check to engineGenerateSecret
dghgit Nov 26, 2025
04ffb14
Java 5 compatibility tweak
dghgit Nov 26, 2025
c1cc4c0
removed stray printStackTrace
dghgit Nov 26, 2025
518d846
ant updates (tls distro)
dghgit Nov 27, 2025
4b3d2c4
updated release notes
dghgit Nov 27, 2025
d4cc961
turned off debug
dghgit Nov 27, 2025
fd968a1
changed RSA signature algorithm names to use "withRSA" rather than "w…
dghgit Nov 30, 2025
3685f9d
moved to next version
dghgit Nov 30, 2025
43d757a
Refactoring in tls.test
peterdettman Dec 1, 2025
e965064
Refactor TlsClientProtocol
peterdettman Dec 1, 2025
6097233
TLS: Defer sealHashAlgorithms to after ClientHello retry
peterdettman Dec 1, 2025
17576ed
removed unneeded byte[] copyOfRange
dghgit Dec 2, 2025
c7567ff
reduction of memory usage.
dghgit Dec 2, 2025
98d81fc
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 2, 2025
73345af
Blake2bDigest: defensive improvements and cleanup
lomigmegard Nov 27, 2025
31a2228
Add compare(Unsigned) to Integers/Longs
peterdettman Dec 2, 2025
5546501
Add/fix High/Low methods of Pack
peterdettman Dec 2, 2025
ba68235
Refactoring in BLAKE2
peterdettman Dec 2, 2025
c4819e1
Update CONTRIBUTORS for BLAKE2 PR
peterdettman Dec 2, 2025
f74366c
Fix the issue of XMSSPrivateKeyParameters when try to build BDS with …
Dec 3, 2025
57ab020
merge of 1982 CMS branch, relates to github #1982
dghgit Dec 3, 2025
3c31f1f
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 3, 2025
61cfdaa
Merge branch 'main' into 2197-xmss-bds-initial
Dec 3, 2025
a8f5a15
Fix the issue of XMSSPrivateKeyTest
Dec 3, 2025
5a4ccfd
minor refactoring
dghgit Dec 3, 2025
c2e3896
Merge branch '2197-xmss-bds-initial' into 'main'
dghgit Dec 3, 2025
8d339ef
TLS: Add negotiatedGroup property to SecurityParameters (TLS 1.3+)
peterdettman Dec 3, 2025
51a9046
Rename java21 to java17 in prov
Dec 3, 2025
ede7a3e
fix the issue in CompositeSignaturesTest
Dec 3, 2025
d8d7a39
roll back changes on CompositeSignaturesTest
Dec 4, 2025
d6ddffb
update build.gradle in prov for java 17, by using targetCompatibility…
Dec 4, 2025
b139a91
change prov:test21 to prov:test17
Dec 4, 2025
a451b69
Fix the issue in KeyManagerFactoryTest for java.security that may blo…
Dec 4, 2025
8f2fbfd
Fix the issue in Grain128, for the output bit s94 instead of s95.
Dec 4, 2025
4926983
Merge branch 'prov-17-21-update' into 'main'
dghgit Dec 4, 2025
eda52bc
Rollback the code in KeyManagerFactoryTest that the new test should b…
Dec 4, 2025
b425743
refactored counter code.
dghgit Dec 4, 2025
7e6e864
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 4, 2025
bda52d5
corrected bit block size.
dghgit Dec 4, 2025
648f842
Update stream output for Grain128a
Dec 4, 2025
9171ce2
expanded range of e generation.
dghgit Dec 4, 2025
bdc9703
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 4, 2025
8d62129
Make negotiated group in SecurityParameters available from SSLEngine
theobisproject Dec 15, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
*.swp
*.iml
*/*.iml
*.ipr
*.iws

bin/
build/
*/build/
libs/*.jar
out/
*/out/
.settings/
Expand All @@ -21,7 +24,7 @@ pg/*.bak
pg/*.bpg
pg/*.txt

.idea
.idea/

codesigning.jks

Expand Down
79 changes: 60 additions & 19 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,71 @@
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
rules:
- if: $CI_COMMIT_BRANCH == "main"
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"
rules:
- if: $CI_COMMIT_BRANCH == "main"
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](https://github.com/bcgit/bc-java/issues/new). 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