Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2178 commits
Select commit Hold shift + click to select a range
11a0bc7
Update ISAPDigest
Jan 24, 2025
f82e242
Update PhotonBeetleDigest
Jan 24, 2025
8a4cc61
Update XoodyakDigest
Jan 24, 2025
34ccfb0
Update AsconBaseDigest
Jan 24, 2025
b949a8f
Refactoring in legacy McEliece
peterdettman Jan 24, 2025
aa70711
Update SparkleDigest
Jan 24, 2025
0cdc08a
Update RomulusDigest
Jan 24, 2025
cc39f0b
Refactor around constructor and reset of digests
Jan 24, 2025
85493d1
Update legacy (and old JDK) X509SignatureUtil
peterdettman Jan 24, 2025
eda7147
Introduce Friend between PhotonBeetleDigest and PhotonBeetleEngine
Jan 24, 2025
b77d970
Refactor extensions code in X.509 types
peterdettman Jan 24, 2025
8c39ea1
Refactor on PhotonBeetleEngine and PhotonBeetleDigest
Jan 27, 2025
6391634
Refactor on Engines around xor
Jan 28, 2025
17176fc
Extract AsconPermutation from Ascon, ISAP engines and digests.
Jan 28, 2025
4bb29fd
move new byte array of mac to AsconBufferBaseEngine
Jan 28, 2025
1dc34f1
Refactor on RomulusDigest and RomulusEngine
Jan 28, 2025
1a0e7d0
Refactor on XoodyakEngine and XoodyakDigest, refactor on ISAPDigest
Jan 28, 2025
a52c46a
Remove ISAPEngine.swapInternalState
Jan 28, 2025
c2b0ed7
Remove some unnecessary code
Jan 28, 2025
9dbad2d
Add AsconPermutation.set
Jan 28, 2025
a0dd6f0
Fix the bug in RomulusEngine.RomulusT.reset
Jan 28, 2025
6869b09
Refactor ElephantEngine xorTo
Jan 28, 2025
e7fef7d
Remove aadFinished
Jan 29, 2025
9f3d11c
refactor around digests
Jan 29, 2025
5b2e973
refactor around engines
Jan 29, 2025
38a07e4
Fix the bug in SparkleDigest
Jan 29, 2025
f12f73b
Refactor in XoodyakEngine
Jan 29, 2025
0713ee7
Refactor in Engines
Jan 29, 2025
476db85
Refactor in Engines
Jan 29, 2025
6cfa1c2
Refactor in Engines
Jan 29, 2025
aba4b59
Add some comments in AEADBufferBaseEngine
Jan 29, 2025
4ed7d13
Refactoring in pqc.crypto.mldsa
peterdettman Jan 29, 2025
bee6734
Refactoring in tls.crypto.impl
peterdettman Jan 29, 2025
2ff41de
Merge remote-tracking branch 'pgpainless/fixCheckstyle' into 1976-pg-…
Jan 30, 2025
6e67c1a
Merge branch 'main' into 1958-aead-parameters
Jan 30, 2025
fa56eaa
Merge branch '1976-pg-fixcheckstyle' into 'main'
ligefeiBouncycastle Jan 30, 2025
b11ddb0
TODO: try to get the correct q
Jan 30, 2025
d53a732
hashToIntegerRange is correct. TODO: fix the curve definition and pai…
Jan 31, 2025
79e72d3
Fix step 3.
Jan 31, 2025
5174843
added exception check on UTF8 parsing to prevent escaping exceptions.
dghgit Jan 31, 2025
9d823e3
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jan 31, 2025
8ee89a4
modified to use JCA.
dghgit Jan 31, 2025
502fddd
changed methods to private
dghgit Jan 31, 2025
2a4ec8a
added use of local helper.
dghgit Feb 1, 2025
0ea89a4
added encoding preservation for ML-DSA, ML-KEM, added property for tr…
dghgit Feb 3, 2025
f8afa1f
TODO fix the bugs in SAKKEKEMExtractor
Feb 3, 2025
76d616d
added private key with public key test.
dghgit Feb 4, 2025
bf356f5
TODO pairing
Feb 4, 2025
b75fe36
Pass the test vector of SAKKE
Feb 5, 2025
96ef694
TODO: SAKKEKEMSGenerator and parameter settings
Feb 5, 2025
d404477
Remove unused functions. Format the code
Feb 5, 2025
7e41e48
minor formatting
dghgit Feb 6, 2025
0aa9d1c
minor formatting
dghgit Feb 6, 2025
c6e2abd
Set teh parameter settings of SAKKE
Feb 6, 2025
4abc7af
Let EC J-PAKE work with custom curves
peterdettman Feb 6, 2025
4189cec
Tolerate custom EC curves
peterdettman Feb 6, 2025
3559d88
Use custom curves in DualEC, FWIW
peterdettman Feb 6, 2025
463c9c6
Add javadoc and add random tests.
Feb 7, 2025
baffe64
Add key pair check in SAKKEPrivateKeyParameters.
Feb 7, 2025
6655590
Merge branch 'main' into rfc-6508-sakke
Feb 7, 2025
0957887
Test the code of Jasypt
Feb 7, 2025
f13def6
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Feb 7, 2025
7cf6f5b
Test the code of Jasypt
Feb 8, 2025
57bcec3
Refactor in permutation
Feb 8, 2025
1d372a6
Refactor in permutation
Feb 9, 2025
4127c2f
Refactor in permutation
Feb 9, 2025
66f21aa
Fix the issue and add test for #1985
Feb 10, 2025
9706d9a
dealt with expiring certificate in test
dghgit Feb 10, 2025
0ca1892
dealt with expiring certificate in test
dghgit Feb 10, 2025
b641d60
Merge branch 'main' into 1985-pbe-generator
Feb 10, 2025
2c18c6d
Merge branch 'main' into 1958-aead-parameters
Feb 10, 2025
32f1a1d
Merge branch '1985-pbe-generator' into 'main'
dghgit Feb 11, 2025
de1894d
Java 4 update
dghgit Feb 11, 2025
0b6d399
fixed checkstyle issue, initial experiment with ML-DSA seed files
dghgit Feb 11, 2025
7c22ce9
fixed checkstyle issue, initial experiment with ML-DSA seed files
dghgit Feb 11, 2025
e0cc328
Add setProvider in JcaSimpleSignerInfoVerifierBuilder for PQCSignedDa…
Feb 13, 2025
de7af47
SecretKeyPacket: Properly pass newPacketFormat down to PublicKeyPacket
vanitasvitae Feb 13, 2025
a3bde4e
PKIX: refactoring around CertPath validation
peterdettman Feb 13, 2025
fae8c45
Merge remote-tracking branch 'pgpainless/newPacketFormat' into 1993-s…
Feb 18, 2025
aa6df2d
Merge branch 'main' into rfc-6508-sakke
Feb 18, 2025
9c17ca7
Add ECCSI key generator process
Feb 18, 2025
fc91cf4
Confirm delta CRLs before skipping CRLDP
peterdettman Feb 18, 2025
b477c17
Pass the test vector of ECCSISigner
Feb 19, 2025
85f7da1
Merge branch 'main' into rfc-6508-sakke
Feb 19, 2025
3965623
Add support for different curves
Feb 20, 2025
6f8ca1a
Add java doc and more tests with different digests
Feb 20, 2025
de0a5c9
Add java doc
Feb 20, 2025
1ce9479
added support for CHOICE private key encoding.
dghgit Feb 21, 2025
86381da
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Feb 21, 2025
7822234
updated parsing to handle CHOICE in ML-DSA.
dghgit Feb 21, 2025
2e96d8e
partial update to new key encoding
dghgit Feb 21, 2025
ce4aeba
added choice key encodings similar to ML-DSA
dghgit Feb 21, 2025
d6af532
moved pubKey test for ML-DSA to apply to both encodings.
dghgit Feb 24, 2025
ca4632b
added both check for key/seed verification for ML-KEM and ML-DSA.
dghgit Feb 24, 2025
3804f98
corrected use of BOTH in MLKEMPrivateKeyParameters.
dghgit Feb 24, 2025
0b48ab0
commented out old-format encodings (earlier beta)
dghgit Feb 24, 2025
6ce85f4
Add HOWTO.md
Feb 25, 2025
5af657e
added support for id-alg-noSignature
dghgit Feb 25, 2025
56ac45a
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Feb 25, 2025
35eabaa
Refactor X9ECParameters
peterdettman Feb 25, 2025
761d964
Add getQ to ECCurve.AbstractFp
peterdettman Feb 25, 2025
7b5e242
Added module export / require validation to check stage
mwcw Feb 26, 2025
656f00a
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
mwcw Feb 26, 2025
cf561fb
Removed unnecessary rebuild in check_java.sh
mwcw Feb 26, 2025
aac5f3e
added test for trustAnchor using id-alg-noSignature
dghgit Feb 26, 2025
09976f2
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Feb 26, 2025
fa78d66
Pass Key Pair Generation of Mayo
Feb 27, 2025
bab5138
Migrate tls test data to bc-test-data
peterdettman Feb 28, 2025
e356f4a
Pass all test vectors of Mayo
Mar 3, 2025
01dbe52
Refactor for Mayo
Mar 3, 2025
d1b1204
Refactor for Mayo
Mar 3, 2025
7a48919
Refactor for Mayo
Mar 3, 2025
0a7476d
Suppress Lint warning for TrustAllX509TrustManager in JcaJceUtils
HawkItzme Mar 3, 2025
bec5d19
Refactor for Mayo
Mar 3, 2025
13d5a19
Add Mayo to PQC Provider
Mar 4, 2025
76a597b
Add Mayo to PQC Provider
Mar 4, 2025
025f99d
Refactor of Mayo
Mar 4, 2025
50f0914
Refactor of Mayo
Mar 4, 2025
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
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
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
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
3205bb1
Merge branch 'pqc-mayo-refactor' into 'main'
ligefeiBouncycastle 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
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
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
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
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
45c8e3f
Add a test case for HQCTest
Mar 19, 2025
16ba11a
Fix the bug in ReedSolomon
Mar 19, 2025
07ba85d
Merge branch 'hqc-checksum-fail' into 'main'
ligefeiBouncycastle 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
1752dbf
CMS: Basic tests for ML-DSA SignedData examples
peterdettman 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
9ec242f
generalized proxy private key public key usage.
dghgit Mar 21, 2025
c30fd65
missing file - mu bounds checking
dghgit 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
8756876
Merge branch 'rfc9708-cms-hss-lms' into 'main'
dghgit Mar 24, 2025
316c2a4
removed dependency on PQC PublicKeyFactory.
dghgit 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
c60e6c8
.gitignore for Intellij
hannesa2 Feb 15, 2021
22d3929
Action for pull request
hannesa2 Feb 15, 2021
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
  •  
  •  
  •  
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
28 changes: 28 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pull request

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: gradle/actions/wrapper-validation@v4
- name: Build with Gradle
run: ./gradlew build
- name: Archive Test report
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: BC-Test-report
path: core/build/reports/tests/test
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
bin/
build/
*/build/
libs/*.jar
out/
*/out/
.settings/
local.properties

pg/*.asc
pg/*.bak
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](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