Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2957 commits
Select commit Hold shift + click to select a range
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
2c726a9
Updated HKDF to handle list of ikms/salts (relates to github #2209)
Dec 8, 2025
e0f6b04
Initial push of NTRU+
Dec 9, 2025
89d5a23
Fix SKESK encoding for direct-S2K-encrypted messages
vanitasvitae Dec 9, 2025
ba99da5
Use utility method for random generation
peterdettman Dec 11, 2025
a066f00
Make utility methods package-access
peterdettman Dec 11, 2025
9076198
Pass the key generation part of NTRU+ 768.
Dec 11, 2025
4566a25
Pass the key generation part of NTRU+ 768.
Dec 11, 2025
46a3388
BCJSSE: Configurable (client) early key_share groups
peterdettman Dec 11, 2025
033d4de
Merge branch 'main' into kpqc-ntruplus
Dec 11, 2025
acd8f6d
made changes to flattenKeys()
Dec 12, 2025
bd1f870
Add NTRU+ to BCObjectIdentifiers. Pass all test vectors of NTRU+.
Dec 15, 2025
e645f87
Merge branch 'fixDirectS2K' of https://github.com/pgpainless/bc-java …
dghgit Dec 15, 2025
8837d91
Merge branch 'pgpainless-fixDirectS2K'
dghgit Dec 15, 2025
e4ff2c1
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 15, 2025
2ce964b
Refactor NTRU+ code
Dec 16, 2025
efccc6d
Refactoring in DSTU4145 code
peterdettman Dec 16, 2025
aa92214
BCJSSE: earlyNamedGroups => earlyKeyShares
peterdettman Dec 16, 2025
6f9e0f6
Clear SecretKey encodings after use
peterdettman Dec 16, 2025
1b6a3dc
corrected next version number
dghgit Dec 17, 2025
701686c
fixed one off error in G3413CTRBlockCipher
dghgit Dec 17, 2025
42bbafa
Refactor NTRU+ code round 2.
Dec 17, 2025
01b57fb
Refactor NTRU+ code round 3. Add NTRUPlusKeyPairGeneratorTest and NTR…
Dec 17, 2025
1078dd5
TLS: add curveSM2MLKEM768 hybrid group
Dec 11, 2025
e9087af
Merge branch 'tls-sm2-lmlkem768' into 'main'
Dec 17, 2025
1bee664
Fix list of OIDs for AuthEnveloped
peterdettman Dec 17, 2025
72b813d
Followup curveSM2MLKEM768 changes
peterdettman Dec 17, 2025
fed0e28
Refactor NTRU+ code round 4
Dec 18, 2025
3558026
Refactor NTRU+ code round 5
Dec 19, 2025
ad59e53
Avoid redundant OID (re-)creation
peterdettman Dec 19, 2025
1ed4d91
AuthEnvelopedData version is always 0 (backport to 1.2)
peterdettman Dec 19, 2025
5539168
Refactor CMSAuthenticatedDataStreamGenerator
peterdettman Dec 19, 2025
da8984b
Add CMSUtils.getEmptyParameters
peterdettman Dec 19, 2025
b6d5bd9
Add CMSAuthEnvelopedDataStreamGenerator.open taking a dataType
peterdettman Dec 19, 2025
963cce5
Merge branch 'kpqc-ntruplus' into 'main'
dghgit Dec 22, 2025
7b9461c
fixed typo in interface name.
dghgit Dec 22, 2025
998e1c5
BCJSSE: Log when default cipher suites are disabled
peterdettman Dec 24, 2025
cb8239e
Refactor PGPSessionKey and fix test
peterdettman Dec 24, 2025
0f06e15
fixed build issue for Java 5.
dghgit Dec 29, 2025
e380617
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 29, 2025
d20cdb8
refactored out common code from LDAP classes
dghgit Jan 1, 2026
cb14367
added update on 2023-33201
dghgit Jan 5, 2026
a158bda
Refactoring in cms
peterdettman Jan 5, 2026
d20911e
Use ASN1ObjectIdentifier.tryFromID
peterdettman Jan 8, 2026
e8cdf2a
Refactor ContentInfo.toASN1Primitive
peterdettman Jan 9, 2026
ebc6799
Use implicit tag for AuthEnvelopedData.authEncryptedContentInfo.encry…
peterdettman Jan 9, 2026
73937cc
Refactoring in ASN.1 and CMS generators
peterdettman Jan 9, 2026
23f8633
Fix comment
peterdettman Jan 9, 2026
aa91370
Remove redundant calls to RDN.getFirst
peterdettman Jan 9, 2026
40f7db2
cleaned up duplicated use of factory classes.
dghgit Jan 12, 2026
4eee027
CONTRIBUTORS.html
dghgit Jan 12, 2026
9fedfe5
merge fix
dghgit Jan 12, 2026
601ed4f
Add ASN1Integer valueOf methods and small constants
peterdettman Jan 12, 2026
492446f
Refactor ECPrivateKey; remove deprecated code
peterdettman Jan 12, 2026
09212a0
Fix problem with the way ECPrivateKey is recreated
peterdettman Jan 12, 2026
0cd4f25
TODO: aim2_mpc
Jan 12, 2026
54f2a41
Merge branch 'main' into sm2-key-exchange
Jan 12, 2026
428184c
Pass SM2KeyExchangeTest
Jan 13, 2026
87100fa
Refactoring in asn1.x500
peterdettman Jan 13, 2026
b328929
Add ASN.1 helper methods
peterdettman Jan 13, 2026
d7a16f0
Refactoring in ASN.1 types
peterdettman Jan 13, 2026
f2555aa
Update jdk1.4 version of IETFUtils
peterdettman Jan 13, 2026
a2c0f18
Remove j2me classes that were moved to util already
peterdettman Jan 13, 2026
a3a7497
Add SM2KeyExchangeSpec
Jan 14, 2026
8b8fb63
Remove unused ephemeral public key from SM2KeyExchangeSpec
Jan 14, 2026
8d82a65
Merge branch 'main' into sm2-key-exchange
Jan 14, 2026
ca58282
Add SM2KeyExchangeTest to RegressionTest
Jan 14, 2026
5bb9713
Refactor on GMKeyExchangeSpi
Jan 14, 2026
68b94e4
spacing cleanup
dghgit Jan 16, 2026
4017c0c
Round out SEC scheme OIDs
peterdettman Jan 20, 2026
66af7df
Add comment about probable incorrect OIDs
peterdettman Jan 20, 2026
1bda45c
Port OctetString utility methods from bc-csharp
peterdettman Jan 20, 2026
90cee3c
Refactoring in CMS
peterdettman Jan 20, 2026
90a3b17
Add TODO comments to key factories
peterdettman Jan 20, 2026
ca7c312
Refactor composite keys
peterdettman Jan 20, 2026
7526030
Refactoring in CMS
peterdettman Jan 22, 2026
9c9a60c
added private key validation for ML-KEM.
dghgit Jan 24, 2026
b506184
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jan 24, 2026
aa78c04
Refactor DHKEKGenerator ASN.1 classes
peterdettman Jan 24, 2026
9833781
Delete BrokenKDF2BytesGenerator
peterdettman Jan 24, 2026
0aa6f0a
Fix (unreachable) limit calculations
peterdettman Jan 24, 2026
119071a
Refactoring in generators
peterdettman Jan 24, 2026
011e041
Refactor ECDHKEKGenerator
peterdettman Jan 24, 2026
043caa5
added specific test for null pubExp in private CRT key.
dghgit Jan 27, 2026
9fde4fa
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jan 27, 2026
fca6d71
updated to 1.84-SNAPSHOT
dghgit Jan 27, 2026
91fcaf5
updated to use newer Exceptions method.
dghgit Jan 27, 2026
72ee97f
updated to use newer Exceptions method.
dghgit Jan 27, 2026
4d00d63
added check for null private exponent with CRT key.
dghgit Jan 27, 2026
a970f61
Fix Strings.split() to handle delimiters at position 0
Jan 27, 2026
fe7d5b4
Don't store SecureRandom in MLKEMEngine
peterdettman Jan 28, 2026
70312bf
Refactoring in ML-KEM:
peterdettman Jan 28, 2026
e217674
TODO: aim2_mpc
Jan 12, 2026
a30fcc5
Pass SM2KeyExchangeTest
Jan 13, 2026
d364edd
Add SM2KeyExchangeSpec
Jan 14, 2026
6d2dbfd
Remove unused ephemeral public key from SM2KeyExchangeSpec
Jan 14, 2026
188689e
Add SM2KeyExchangeTest to RegressionTest
Jan 14, 2026
b0c834d
Refactor on GMKeyExchangeSpi
Jan 14, 2026
5de9938
Refactor MLKEMPrivateKeyParameters
peterdettman Jan 29, 2026
a5dcd05
Merge branch 'diresh-shrestha-fix-strings-split-leading-delimiter'
dghgit Jan 30, 2026
f7d8a42
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jan 30, 2026
7ba916e
added length check for decryption payload for ML-KEM.
dghgit Feb 3, 2026
e998a59
Merge remote-tracking branch 'origin/sm2-key-exchange' into sm2-key-e…
Feb 4, 2026
8b12b89
Add SM4 wrap to SM4.java
Feb 4, 2026
4db9109
HKDF: Provider support for HKDFParameterSpec.Expand
peterdettman Feb 4, 2026
c94981f
Fix package name for jdk17 tests
peterdettman Feb 4, 2026
85e2cdd
Constant-time checks for DES weak keys
peterdettman Feb 4, 2026
a91ceab
Use one true method modifier order
peterdettman Feb 4, 2026
54d7959
Refactor provider ML-KEM code
peterdettman Feb 4, 2026
ae6d7df
Add Log to SM2 Signer for issue #2237
Feb 5, 2026
00ec829
Merge branch 'main' into sm2-key-exchange
Feb 5, 2026
ab5caf6
Refactor StandardDSAEncoding
peterdettman Feb 5, 2026
947b9cf
Add SpiUtil for checking availability of SPIs
peterdettman Feb 5, 2026
2326ee5
Refactoring in ML-KEM:
peterdettman Feb 5, 2026
762db64
ML-KEM: Add missing mappings, fix OID mappings
peterdettman Feb 5, 2026
eb7d917
Provide fallback SecureRandom in low-level KEM generators
peterdettman Feb 10, 2026
b4f167c
Expose JcaJceHelper subclass configs
peterdettman Feb 10, 2026
0fbdb60
Add SecretKeyUtil to help with key cleanup
peterdettman Feb 10, 2026
382ad29
Add AsymmetricAlgorithmProvider.addKEMAlgorithm
peterdettman Feb 10, 2026
339fd63
Use JceTlsMLKemDomain instead of KemUtil directly
peterdettman Feb 10, 2026
984f00f
Use refersToASpecificCurve for clarity
peterdettman Feb 10, 2026
a544ec1
Refactoring in provider ML-KEM code
peterdettman Feb 10, 2026
590eb54
HQC: Add missing mappings, fix OID mappings
peterdettman Feb 10, 2026
b26e96e
NTRU: Add missing mappings, fix OID mappings
peterdettman Feb 10, 2026
6ec81e9
NTRUPrime: Add missing mappings, fix OID mappings
peterdettman Feb 10, 2026
114c975
KEM class modifiers
peterdettman Feb 10, 2026
44061a7
Merge branch 'sm2-key-exchange' into 'main'
dghgit Feb 11, 2026
2561759
corrected CompositeUtil table used by key builders, added test for same.
dghgit Feb 11, 2026
8662038
added composite fix
dghgit Feb 11, 2026
0cdd69c
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Feb 11, 2026
1ae6b2d
AbstractOpenPGPDocumentSignatureGenerator: Properly apply signature c…
vanitasvitae Feb 24, 2026
d1ba4bb
Swap and simplify if statement in subkey signature chain creation
vanitasvitae Feb 24, 2026
96d5b32
Add support for simplified component binding signature history evalua…
vanitasvitae Feb 24, 2026
6ab16af
Better naming of methods and members, improve documentation
vanitasvitae Feb 25, 2026
e7918fa
Fix method names
vanitasvitae Feb 25, 2026
d9828e3
Properly set back-signature creation time from callback
vanitasvitae Feb 25, 2026
7f2a578
Move tests for ComponentSignatureEvaluator to separate class
vanitasvitae Mar 5, 2026
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