Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2622 commits
Select commit Hold shift + click to select a range
c29539c
Merge branch '1911-4-keyidentifier-test' into 'main'
dghgit May 30, 2025
73c5ea8
initial pass of 1.81 release notes
dghgit May 31, 2025
67ea238
Java 5 to Java 8 updates.
dghgit May 31, 2025
019ecf5
Java 5 updates
dghgit May 31, 2025
ebb4ba3
Java 5 to Java 8 updates.
dghgit May 31, 2025
bafc09a
Java 4 compat changes
dghgit May 31, 2025
e948e5c
Add kem hqc jdk21
ligefeiBouncycastle May 31, 2025
ff89da0
Merge branch 'add-kem-hqc-jdk21' into 'main'
dghgit May 31, 2025
9f2c518
removed HQC
dghgit May 31, 2025
623e997
update PQC key encoding/decoding in Java 4
dghgit Jun 1, 2025
f0cd3da
Add CONTRIBUTORS.html and releasenotes.html
Jun 2, 2025
9499219
BCJSSE updates in release notes
peterdettman Jun 2, 2025
a0eb676
updated to use TestResourceFinder
dghgit Jun 3, 2025
18a2935
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jun 3, 2025
9ccb566
Set message and content as protected in SMIMESignedParser
ligefeiBouncycastle Jun 3, 2025
990a094
Merge branch '2074-SMIMESignedParser' into 'main'
dghgit Jun 3, 2025
cdf083e
Merge branch 'feature/pbmac1-prf' of https://github.com/mt-johan/bc-j…
dghgit Jun 3, 2025
fb96b8f
Merge branch 'mt-johan-feature/pbmac1-prf'
dghgit Jun 3, 2025
a267679
Merge branch 'patch-1' of https://github.com/oscerd/bc-java into osce…
dghgit Jun 3, 2025
596ea37
Merge branch 'oscerd-patch-1'
dghgit Jun 3, 2025
00bfeba
Formatting
peterdettman Jun 3, 2025
8ecc0b3
fixed cloner to do SHA1 as SHA1. Relates to github #2041
dghgit Jun 3, 2025
9c49ab5
final updates
dghgit Jun 3, 2025
b87169e
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jun 3, 2025
db2dfa0
Improve FalconTest
peterdettman Jun 3, 2025
8915ff2
fixed test method exposure
dghgit Jun 3, 2025
0d6042f
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jun 3, 2025
48fc269
removed old RFC kyber ASN.1 class.
dghgit Jun 3, 2025
228211e
removed old RFC kyber ASN.1 class.
dghgit Jun 3, 2025
5465005
Update SRTPProtectionProfile
peterdettman Jun 10, 2025
d24bd76
Refactor some signer init methods
peterdettman Jun 10, 2025
0a1759c
corrected module-info for MAYO and SNOVA
dghgit Jun 15, 2025
2886c5f
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jun 15, 2025
13f40a5
Fix the issue AEADBaseEngine.StreamDataOperator.processBytes does not…
Jun 16, 2025
04a2d34
UTF8 perf. opts.
peterdettman Jun 16, 2025
b06b288
Refactoring in mls.crypto.bc
peterdettman Jun 18, 2025
98044cc
Correct usage of compareTo return values
peterdettman Jun 18, 2025
eb3c9e1
Update deprecated GCMBlockCipher usages
peterdettman Jun 18, 2025
b3c70fa
Update deprecated GCMBlockCipher usages
peterdettman Jun 18, 2025
3525580
Update deprecated CCMBlockCipher usages
peterdettman Jun 18, 2025
7b237b3
Refactor SM2Signer.init
peterdettman Jun 18, 2025
af10bcc
Refactor RevocationReason
peterdettman Jun 18, 2025
37e1ac9
Extra utility method variants
peterdettman Jun 18, 2025
73a5031
Refactoring in CMS AuthEnveloped
peterdettman Jun 21, 2025
938d9f6
Refactoring around RSASSAPSSparams
peterdettman Jun 21, 2025
3f7a1a3
Refactoring in bcpg.sig
peterdettman Jun 23, 2025
dd7ea8e
Refactoring in tls
peterdettman Jun 23, 2025
15b78d2
Added ParametersWithDigest for HashMLDSASigner.java
Jun 26, 2025
d100a87
Add a comment
peterdettman Jun 30, 2025
56d2222
Add more AuthEnv OIDs, reference CMSAlgorithm
peterdettman Jun 30, 2025
b1c9b00
Simplify init of KDFCounterBytesGenerator.maxSizeExcl
peterdettman Jun 30, 2025
025e28d
More maxSizeExcl init
peterdettman Jun 30, 2025
8137055
Refactoring in pg
peterdettman Jul 1, 2025
365c6bc
Javadoc
peterdettman Jul 3, 2025
37e0e27
Use JcaX509ExtensionUtils.parseExtensionValue
peterdettman Jul 3, 2025
c2dce69
Refactor AuthorityKeyIdentifier and usage
peterdettman Jul 3, 2025
51e536f
Improvements in mail.smime
peterdettman Jul 3, 2025
3db23bf
TLS: Throw fatal decrypt_error for invalid 1.3 PSK binder
peterdettman Jul 4, 2025
0d35060
RSADigestSignerTest updates
peterdettman Jul 10, 2025
9e0bef7
Pqc MLDSA rejection testvectors
ligefeiBouncycastle May 29, 2025
f449cad
Added ML-DSA test to TlsCryptoTest.
Jul 10, 2025
1540468
Refactoring in pqc.crypto.slhdsa
peterdettman Jul 11, 2025
44bf13e
Explicit DER encoding for clarity
peterdettman Jul 14, 2025
f5ad7de
Include raw RSA test without DigestInfo encoding
peterdettman Jul 14, 2025
7d920d7
disabled mldsa in hasSignatureScheme until check/rules are added for …
Jul 14, 2025
41d35f2
Merge branch 'tls-mldsa-test' into 'main'
Jul 14, 2025
602519a
Fix a typo in SLHDSA
Jul 15, 2025
568ffae
getOptional methods should be usable with sequence/set elements
peterdettman Jul 16, 2025
785defe
merged 1.81.1 - DRBG with org.bouncycastle.drbg.effective_256bits_ent…
dghgit Jul 16, 2025
c9a1848
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jul 16, 2025
ff83bf5
ASN.1: Add getTagged method to universal types
peterdettman Jul 16, 2025
01363f2
Call BCPGOutputStream.finish for clarity
peterdettman Jul 16, 2025
5fbd878
OptionalValidity updates
peterdettman Jul 16, 2025
3a53da9
Refactor MPInteger
peterdettman Jul 16, 2025
e34ee36
reverted introduction of switch and diamond operators.
dghgit Jul 17, 2025
2953540
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jul 17, 2025
e404cef
Refactoring in OpenPGP
peterdettman Jul 17, 2025
00c0664
moved provider version to 1.0.22.
dghgit Jul 21, 2025
667251e
rolled back use of shake256 in prehash.
dghgit Jul 21, 2025
3317546
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jul 21, 2025
1119427
added ml-dsa with SHA-512 test.
dghgit Jul 22, 2025
0d55ad5
added SavableDigest support to SHA-3
dghgit Jul 23, 2025
160db88
added SavableDigest support to CSHAKE, SHAKE
dghgit Jul 23, 2025
1c5e998
DTLS: Throw TlsFatalAlertReceived when fatal alert received
peterdettman Jul 24, 2025
a4b0638
Refactor some TLS tests
peterdettman Jul 25, 2025
8e9d744
Refactoring in TLS tests
peterdettman Jul 25, 2025
12d7e77
DTLS: Keep record layer in handshake state
peterdettman Jul 25, 2025
709af67
DTLS: Set server record layer version(s) earlier
peterdettman Jul 25, 2025
48b71de
added SavableDigest support to TupleHash.
dghgit Jul 26, 2025
1e1649f
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jul 26, 2025
0fb2d26
added EncodableService interface, added Memoable/EncodableService to …
dghgit Jul 27, 2025
0e100a5
updated for EncodableService/Memoable support in SHA-3 family
dghgit Jul 27, 2025
06082b1
PartialInputStream doesn't need BCPGInputStream wrapper
peterdettman Jul 29, 2025
e05d3f5
added build method taking a pre-configured key[] to BcCMSContentEncry…
dghgit Aug 4, 2025
4919f45
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 4, 2025
9b49fab
added build method taking a pre-calculated key as SecretKey and byte[…
dghgit Aug 4, 2025
e99a4ea
TLS: Avoid nonce reuse error in JCE AEAD workaround for pre-Java7
peterdettman Aug 5, 2025
3a93977
BCJSSE: Store session bindings in a ConcurrentHashMap
peterdettman Aug 5, 2025
1c0d331
DTLS version guard when setting tls-unique
peterdettman Aug 5, 2025
6ca791b
added missing attributes relates github #2140
dghgit Aug 7, 2025
bb11073
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 7, 2025
7545e34
corrected typo relates github #2140
dghgit Aug 7, 2025
e67cccf
Github #2131
Aug 7, 2025
a1f8179
added explicit zero out for temporary PBE keys - relates to github #2143
dghgit Aug 8, 2025
3bd7525
added explicit zero out for temporary PBE keys - relates to github #2143
dghgit Aug 8, 2025
551ec1b
added explicit zero out for temporary utf8 password - relates to gith…
dghgit Aug 8, 2025
33c40d4
updated to 1.82-SNAPSHOT
dghgit Aug 8, 2025
c11ac8d
minor tweak to nohttp stanza
dghgit Aug 8, 2025
faf4e27
Remove redundant test
peterdettman Aug 8, 2025
c403460
BCJSSE: Single shared map of session bindings across session lifetime
peterdettman Aug 8, 2025
11cea86
added check to make sure MAC loaded where no data in an AEAD based st…
dghgit Aug 11, 2025
33ce50e
added zero length message test - relates to github #2139
dghgit Aug 11, 2025
d858403
refactoring of ML-KEM public key validation into PublicKeyParameters …
dghgit Aug 11, 2025
68b0feb
dealt with explicit naming for OEAP for cross-provider support - rela…
dghgit Aug 12, 2025
7287781
Add PublicKeyUtils.isEncryptionAlgorithm()
vanitasvitae Jun 16, 2025
280d3c8
OpenPGPSignature: Add customizable toAsciiArmoredString() methods
vanitasvitae Jun 16, 2025
318591c
Implement EncryptedDataPacketType.of() and expose PGPEncryptedDataLis…
vanitasvitae Jun 16, 2025
b733217
MessageEncryptionMechanism: Add factory method for SED data, toString…
vanitasvitae Jun 16, 2025
aa5b891
Turn KeyPairGeneratorCallback into an Interface.
vanitasvitae Jun 16, 2025
3d6d0cd
PGPKeyRing: Add getKeyIdentifier()
vanitasvitae Jun 16, 2025
f0d3e07
PGPPublicKey: getUserIds() -> skip non-UTF8 uids
vanitasvitae Jun 16, 2025
928639d
PGPSecretKey: Properly initialize PGPSignatureGenerator, adding suppo…
vanitasvitae Jun 16, 2025
48468fb
Fix checkstyle and compilation issues
vanitasvitae Jun 30, 2025
b759770
Properly copy salt when creating new instances of signatures
vanitasvitae Jun 30, 2025
9ecf791
Move proper SignaturePacket copying to dedicated method
vanitasvitae Jun 30, 2025
c534075
Fix merging public keys, make sure all keySigs are added to merged key
vanitasvitae Jun 30, 2025
4877c9e
Implement PGPTrust pendant to TrustPacket
vanitasvitae Jul 4, 2025
03dbe65
Update release notes for session bindings change
peterdettman Aug 13, 2025
bc89863
Merge branch '2105-pgpainless-v6' into 'main'
dghgit Aug 13, 2025
6c69082
Java 4 compatibility
dghgit Aug 13, 2025
8046a43
Added @Deprecated, java doc fixes. Relates to github #2026
dghgit Aug 13, 2025
07a52b8
Refactoring in pqc.crypto.crypto.mlkem.Poly
peterdettman Aug 13, 2025
c27e35d
Added use of InetAddress. Relates to github #2026
dghgit Aug 13, 2025
8cef288
Added use of @Deprecated. Relates to github #2026
dghgit Aug 13, 2025
48a3213
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 13, 2025
eecaf97
Added static class declarations where possible. Relates to github #2026
dghgit Aug 13, 2025
eb86764
Java 4 compat
dghgit Aug 13, 2025
ca2806b
Refactor ML-KEM public key validation (perf. opts.)
peterdettman Aug 13, 2025
611dc08
Initial GnuDivertToCard format support. Relates to github #116
dghgit Aug 13, 2025
05c8866
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 13, 2025
48695b9
Further build noise reduction. Relates to github #2026
dghgit Aug 13, 2025
9ddc55d
relates to github #2026
dghgit Aug 13, 2025
f6f4cf5
Update java doc, update initState of AsconCXof128, set AsconAEAD128 m…
Aug 14, 2025
0bd3e09
TODO: Add DecryptionFailureCounter to doFinal of decryption, and chec…
Aug 14, 2025
bf6d41f
TAdd DecryptionFailureCounter to doFinal of decryption
Aug 15, 2025
73e638d
Rename as Counter
Aug 15, 2025
043b54c
TODO: improve the Counter
Aug 15, 2025
1ef5479
Update docs for location of tls test credentials
peterdettman Aug 15, 2025
a464146
BCJSSE: SunJSSE compat. updates around AlgorithmConstraints/Decomposer
peterdettman Aug 16, 2025
05d1599
javaDoc
dghgit Aug 17, 2025
fdefdde
adjusted code so base block size explicitly called out.
dghgit Aug 17, 2025
a7a8801
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 17, 2025
6ddc87c
Finish the work on the counter
Aug 18, 2025
9544976
Move some dataLimitCounter operation to the base class.
Aug 18, 2025
704f4a7
Merge branch 'main' into 2103-romulusM-output-length
Aug 18, 2025
6546084
corrected doFinal() calculation for partial block servers.
dghgit Aug 18, 2025
7a0bed7
fixed process block calculation to ensue full buffer processing in mu…
dghgit Aug 18, 2025
1f78028
Add java doc for CMSAuthEnvelopedDataParser and CMSAuthEnvelopedDataS…
Aug 19, 2025
1a74aff
BCJSSE: Add integrity-only cipher suites from RFC 9150
peterdettman Aug 19, 2025
26688ee
MLDSA Composite signature version 7+
ligefeiBouncycastle Aug 20, 2025
afbc7a0
Merge branch 'pqc-mldsa-composite' into 'main'
dghgit Aug 20, 2025
d994470
correction to public key getEncoded() method.
dghgit Aug 20, 2025
6e1342f
removed range check as it failed to take account of buffering.
dghgit Aug 20, 2025
38a7b97
refactored getAlgorithmIdentifier() to return an AlgorithmIdentifier.
dghgit Aug 20, 2025
73c80ec
BCJSSE: Add integrity-only cipher suites from RFC 9150
peterdettman Aug 21, 2025
5dd265f
Fix release note
peterdettman Aug 21, 2025
4a723e3
Fix CMCEPrivateKeyParameters#reconstructPublicKey method
peterdettman Aug 21, 2025
49695cf
Merge branch 'main' into ascon-update
Aug 21, 2025
1163217
Roll back the change in AsconCXof128, update java doc.
Aug 21, 2025
c28c616
corrected private key encoding.
dghgit Aug 21, 2025
d1f21d7
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 21, 2025
963c9d4
ErrorProne fix.
dghgit Aug 21, 2025
d87f83d
Added marker interface for BCKeys to allow composite to fall back to …
dghgit Aug 21, 2025
b41f239
ErrorProne noise reduction.
dghgit Aug 21, 2025
dcfeab8
ErrorProne noise reduction HashSet -> Set.
dghgit Aug 22, 2025
a6b5895
Added builder carrying provider names to CompositePrivateKey.
dghgit Aug 22, 2025
5795691
ErrorProne noise reduction.
dghgit Aug 24, 2025
685f920
Added provider support for composite public key components.
dghgit Aug 24, 2025
b13684a
Misc. refactoring in tls
peterdettman Aug 25, 2025
ba462e2
BCJSSE: Keep original creation time across session lifetime
peterdettman Aug 25, 2025
a2b8f76
BCJSSE: Only update session lastAccessedTime at resumption
peterdettman Aug 25, 2025
d8677b4
Don't auto-close CBZip2InputStream at end-of-contents
peterdettman Aug 26, 2025
cc6137b
Scaffolding for new SSLSession exportKeyingMaterial methods
peterdettman Aug 26, 2025
a5ea53d
Update some jdk1.4 classes for recent changes
peterdettman Aug 27, 2025
b429e94
Added support for previous generation of Falcon OIDs for key parsing.
dghgit Aug 29, 2025
706902d
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Aug 29, 2025
869d58d
Removed println
dghgit Aug 29, 2025
3ea208d
added signature recognition for old Falcon OIDs.
dghgit Aug 29, 2025
19c27c6
Improve alt-name checks in HostnameUtil
peterdettman Aug 29, 2025
15e42c5
Optimize hostname checking for IPv6 addresses
peterdettman Aug 29, 2025
f3ec578
Improve EST hostname authorizer based on BCJSSE endpoint ID checker
peterdettman Aug 29, 2025
b85889f
Special-case exception for SunJSSE compatibility
peterdettman Aug 29, 2025
328360c
BCJSSE: Separate client/server properties for max chain length
peterdettman Aug 29, 2025
c7c676a
(D)TLS: ML-DSA prep: guards against usage pre-1.3
peterdettman Sep 4, 2025
f32259f
Update comments in tls-mldsa code
peterdettman Sep 5, 2025
c74c88c
TLS: ML-DSA support in JcaTlsCrypto (still disabled)
yu-2h Mar 11, 2025
72c5f53
added short hand oid for SHA-256 HKDF to CMS algorithms
dghgit Sep 6, 2025
7098ad4
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Sep 6, 2025
3bd7b4b
deprecated mispelt field, added correct one. Relates to github #2158
dghgit Sep 8, 2025
18692ff
deprecated mispelt field, added correct one. Relates to github #2158
dghgit Sep 8, 2025
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
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
868e9c0
Replace static OpenPGPCertificate.join() methods with non-static members
vanitasvitae Sep 27, 2025
dadbdb1
Implement join() for OpenPGPKey class
vanitasvitae Sep 27, 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
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