Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1916 commits
Select commit Hold shift + click to select a range
6bcb85d
Add OperatorBcTest.testBcAEADSecretKeyEncryptorBuilder
Dec 2, 2024
6647e01
Add OperatorJcajceTest.testJcaAEADSecretKeyEncryptorBuilder
Dec 2, 2024
3b7c94f
Merge branch 'main' into 1794-auth-enveloped-recipients-kek-keyagree
Dec 2, 2024
46588f7
Merge branch 'pg-refactor-BcUtil-createStreamCipher' into pg-refactor…
Dec 3, 2024
f68a305
Fixed the bugs in BcPBEKeyEncryptionMethodGenerator.getEskAndTag
Dec 3, 2024
05ac657
added DigestAlgorithmIdentifierFinder support as well.
dghgit Dec 3, 2024
b8f9492
Merge branch 'main' into shamir-secret-splitting
Dec 3, 2024
053d87b
removed unnecessary length check in LMS PublicKeyFactory
dghgit Dec 3, 2024
d95afbf
updated BufferingContentSigner to use ExtendedContentSigner
dghgit Dec 3, 2024
eadf2be
Create APIs: SecretShare, SplitSecret and SecretSplitter. Change spli…
Dec 4, 2024
4e3d763
Add SplitSecret.recombine
Dec 4, 2024
8a190b4
Merge branch 'main' into 1857-1-javadoc
Dec 4, 2024
74b0afc
Update from #1926
Dec 4, 2024
0cd9945
Remove SecretSplitter.recombineShares
Dec 4, 2024
593bbd2
Add a simple test for ShamirSecretSplitter
Dec 5, 2024
14fbee9
Set the test method to public
Dec 5, 2024
6468b33
Prepare PublicKeyKeyEncryptionMethodGenerator for v6
vanitasvitae Dec 9, 2024
f310da4
Properly encode anonymous PKESKv6 packets
vanitasvitae Dec 9, 2024
6790031
Fix PKESKv6 / SKESKv6 generation
vanitasvitae Dec 9, 2024
d839606
Minor changes in PBEKeyEncryptionMethodGenerator, remove unused funct…
Dec 10, 2024
33cbad1
Merge branch 'pg-refactor-BcAEADUtil' into 'main'
dghgit Dec 11, 2024
f498371
Merge branch '1794-auth-enveloped-recipients-kek-keyagree' into 'main'
dghgit Dec 11, 2024
4953a48
Merge branch '1924-lightweight-aead-output-size' into 'main'
dghgit Dec 11, 2024
f0474a0
Merge branch '1857-1-javadoc' into 'main'
dghgit Dec 11, 2024
ee9a871
Merge branch 'pg-refactor-JceAEADUtil' into 'main'
dghgit Dec 11, 2024
f97b21e
Merge branch '1857-3-pgp-keypair-generator' into 'main'
dghgit Dec 11, 2024
a012951
Merge branch '1857-5-aead-reencrypt' into 'main'
dghgit Dec 11, 2024
1aeb886
Merge branch 'main' into '1857-2-pgpkeyring-generator'
dghgit Dec 11, 2024
11b7330
Merge PKESK encryption methods
vanitasvitae Dec 11, 2024
1e73d11
Add javadoc
vanitasvitae Dec 11, 2024
220bf00
Merge branch '1857-2-pgpkeyring-generator' into 'main'
dghgit Dec 11, 2024
e069a7a
Merge branch 'main' into '1857-4-api-keypairgenerator'
dghgit Dec 11, 2024
871bf4b
Fix the issue in RegressionTest
Dec 11, 2024
ef27efe
Add SecretSplitter.splitAround
Dec 12, 2024
666e548
Add SecretSplitter.resplit
Dec 12, 2024
c7f610d
Merge remote-tracking branch 'pgpainless/pkeskv6Encryption' into 1938…
Dec 12, 2024
705fbbe
Move m and n from constructor to split, splitAround and resplit funct…
Dec 12, 2024
94fadb5
Merge branch '1857-4-api-keypairgenerator' into 'main'
dghgit Dec 12, 2024
64c951f
Change optSymAlgId from byte[] to byte. Change lambda to anonymous fu…
Dec 12, 2024
5117eb5
Merge branch 'main' into 1938-v6-PKESK-encryption
Dec 12, 2024
29936b6
Add PGPKeyPairGeneratorTest to RegressionTest
Dec 12, 2024
6912a51
Add back PublicKeyKeyEncryptionMethodGenerator.WILDCARD
Dec 12, 2024
118b9ef
Refactor in PublicKeyKeyEncryptionMethodGenerator.getSessionInfo
Dec 12, 2024
cb3a8b0
Remove PublicKeyKeyEncryptionMethodGenerator.concatECDHEphKeyWithWrap…
Dec 12, 2024
4b5f3d1
Add javadoc, remove kek algorithm from PKESK generator, make encrypti…
vanitasvitae Dec 12, 2024
a8240b8
Merge remote-tracking branch 'pgpainless/pkeskv6Encryption' into 1938…
Dec 12, 2024
8cdfe0d
Seperate getSessionInfo into two versions.
Dec 12, 2024
2b2fc60
Update pub script to ensure osgi_scanning is done on signed jars as w…
mwcw Dec 13, 2024
84e6708
Refactor in PGPEncryptedDataGenerator.open
Dec 13, 2024
be646c2
Merge branch 'main' into 1938-v6-PKESK-encryption
Dec 13, 2024
ee613a6
Refactor in PGPKeyEncryptionMethodGenerator
Dec 13, 2024
4926064
Refactor in PGPKeyEncryptionMethodGenerator.open
Dec 13, 2024
a308814
Fix the bug in encryptSessionInfoWithX25519X448Key when optSymAlgId i…
Dec 13, 2024
dbe7b7e
Refactor in PGPEncryptedDataGenerator.open
Dec 13, 2024
309ce4d
removed use of junit.Assert. Minor refactoring.
dghgit Dec 13, 2024
7a6b635
fixed package name issues.
dghgit Dec 13, 2024
9921e45
added test utils
dghgit Dec 13, 2024
3630658
merge
dghgit Dec 13, 2024
9f955c8
make getAlgorithm() consistent with public key implementation
Honzaik Dec 13, 2024
3910287
removed use of junit.Assert.
dghgit Dec 13, 2024
fabed60
Merge branch 'main' into 'shamir-secret-splitting'
dghgit Dec 13, 2024
e237fb4
corrected conflict resolution
dghgit Dec 13, 2024
a3120b1
merged with main
dghgit Dec 14, 2024
cec37aa
Merge branch 'shamir-secret-splitting' into 'main'
dghgit Dec 14, 2024
d7a167b
conflict resolution
dghgit Dec 14, 2024
e80278d
Merge branch 'bc_pr_1' of https://github.com/Honzaik/bc-java into Hon…
dghgit Dec 15, 2024
49d6d15
Merge branch 'Honzaik-bc_pr_1'
dghgit Dec 15, 2024
c44344e
relates to github #1943
dghgit Dec 15, 2024
c349210
added certHolder field to copy constructor - fix for github #1941
dghgit Dec 15, 2024
8ff3e17
Use PGPDataEncryptorBuilder as parameter in PGPKeyEncryptionMethodGen…
Dec 15, 2024
24db506
Move checksum from PGPEncryptedDataGenerator to PublicKeyKeyEncryptio…
Dec 15, 2024
f857fe1
Add tests for PGPKeyEncryptionMethodGenerator and related classes
Dec 16, 2024
d5fee26
Refactor in JcePublicKeyKeyEncryptionMethodGenerator.
Dec 16, 2024
a883bf2
Fix the bug in PGPEncryptedDataGenerator.open
Dec 16, 2024
277620d
Remove unused parameters in PBEKeyEncryptionMethodGenerator.
Dec 16, 2024
6b80483
BCJSSE: Extra logging for algorithm constraints
peterdettman Dec 16, 2024
0b09053
Merge branch 'main' into 1938-extension-generator-refactor
Dec 16, 2024
cd9bd33
Copy AEADSecretKeyEncryptorBuilder from 1857 branch
Dec 16, 2024
7f1af64
Update PGPAEADDataEncryptor java doc and message in AbstractPacketTes…
Dec 16, 2024
0939cf4
Update KeyIdentifier
Dec 16, 2024
7aabfe2
Update module-info in jdk1.9 of pg package.
Dec 16, 2024
48d5627
Set PublicKeyPacket in AEADSecretKeyEncryptorBuilder.build as final
Dec 16, 2024
716cb36
Replace lambdas in JcaPGPKeyConverter with anonymous classes
Dec 18, 2024
9ef9d60
Replace lambdas in JcaPGPKeyConverter with anonymous classes
Dec 18, 2024
c609ec2
Rewrite generateCounterSigners
peterdettman Dec 18, 2024
3c52f44
Merge branch '1938-extension-generator-refactor' into 'main'
dghgit Dec 19, 2024
cf37a16
Merge branch '1587-7-keyIdentifier' into 'main'
dghgit Dec 19, 2024
81afbcf
Merge branch 'pg-JcaPGPKeyConverter-lambda' into 'main'
dghgit Dec 19, 2024
9b838d2
Merge branch '1587-8-java9-module-info' into 'main'
dghgit Dec 19, 2024
0629950
Merge branch '1587-6-aead-secretkey-encryptor-builder' into 'main'
dghgit Dec 19, 2024
d422f83
Refactor DefaultSignatureAlgorithmIdentifierFinder
peterdettman Dec 19, 2024
a370809
add support for PBMAC1 with PBKDF2 for PKCS12
Dec 19, 2024
db65337
modified HQC decaps to use constant time comparison for u, v and d
Dec 19, 2024
48167a8
Mechanism to configure AES-GCM in TLS 1.2 with custom nonce generator
crlorentzen Dec 19, 2024
f240977
updated HQC to match reference implementation 2024-10-30
Dec 20, 2024
4350053
removed extra import
Dec 20, 2024
26b77b5
removed d from encapsulation length - relates to github #1949
dghgit Dec 21, 2024
185cf12
added ML-DSA-44/Ed25519 test.
dghgit Dec 22, 2024
d3f5333
changed ML-DSA/SLH-DSA Jca signatures to return null if default 0 len…
dghgit Dec 22, 2024
fab2677
added resources to jar build - relates to github #1660
dghgit Dec 22, 2024
c10ab6a
Merge remote-tracking branch 'chchen/patch-5' into chchen-scholar-pat…
mwcw Dec 22, 2024
837b402
Updated CONTRIBUTORS.html
mwcw Dec 22, 2024
0d767fb
missing comma
mwcw Dec 22, 2024
a128c34
added package-info classes
dghgit Dec 23, 2024
ea64413
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Dec 23, 2024
2c933e0
Initial build updates
mwcw Dec 24, 2024
2018415
prevented addition of two id-oracle-pkcs12-trusted-key-usage attribut…
dghgit Dec 24, 2024
7669c14
Test for double oracle attribute issue. Relates to github #1945
dghgit Dec 24, 2024
c35119b
Merge branch 'crlorentzen-main'
dghgit Dec 24, 2024
489ff7c
added some additional work from TLS fips implementation to nonce sett…
dghgit Dec 24, 2024
a2800e6
Added system property to ignore with faulty extension bytes in OIDs. …
dghgit Dec 26, 2024
e68d93e
added support for the nested form of PBEParameterSpec. Relates to git…
dghgit Dec 26, 2024
432d431
minor reformat.
dghgit Dec 26, 2024
e50a7cc
extended wrong encoding override to deal with github #1639
dghgit Dec 26, 2024
f9ab990
regression test for github #1639
dghgit Dec 26, 2024
6c5bcfb
added support for composite private keys nested in OCTET STRING
dghgit Dec 27, 2024
d84891a
expanded PBE support - relates to github #1846
dghgit Dec 27, 2024
f79f1ab
added extra suppression for test file
dghgit Dec 27, 2024
79a81e2
moved to 1.80
dghgit Dec 29, 2024
833d50f
Java 5 updates.
dghgit Dec 29, 2024
728acd7
Java 4 updates
dghgit Dec 30, 2024
4de7061
added invalid OID override
dghgit Dec 30, 2024
0834cd5
rolled back accidental checkin.
dghgit Dec 30, 2024
b4fe683
rolled back accidental checkin (finally)
dghgit Dec 30, 2024
1f3c4d6
Merge branch 'mail-smime-auth-enveloped' of https://github.com/bukka/…
dghgit Dec 31, 2024
0106cb2
Merge branch 'bukka-mail-smime-auth-enveloped'
dghgit Dec 31, 2024
f9c89f4
minor refactoring, added contributed SMIMEEnvelopedUtil, added suppor…
dghgit Dec 31, 2024
735a9af
relates to github #1791
dghgit Dec 31, 2024
44df36c
Merge branch 'gm-signature-spi' of https://github.com/moonfruit/bc-ja…
dghgit Dec 31, 2024
6141847
Merge branch 'moonfruit-gm-signature-spi'
dghgit Dec 31, 2024
9d750bf
Merge branch 'OpenBSDBCrypt-doc' of https://github.com/Marcono1234/bc…
dghgit Dec 31, 2024
c105395
Merge branch 'Marcono1234-OpenBSDBCrypt-doc'
dghgit Dec 31, 2024
9567b14
clarified UTF-8 line to reflect use of char[] - relates to github #1742
dghgit Dec 31, 2024
112d457
relates to github #1742
dghgit Dec 31, 2024
d20a0d6
checkstyle fix.
dghgit Dec 31, 2024
2c9faf6
Fix GCFB reset after large data
tonywasher Dec 31, 2024
e6fc301
Fix the bug if block size of base in GCFBBlockCipher is not equal to 8.
Jan 2, 2025
9412f85
Modify the comments.
Jan 2, 2025
342a872
Merge branch 'main' of https://github.com/dawmit/bc-java into dawmit-…
Jan 2, 2025
fb1b3fe
Minor changes to Github PR #1842 (EC J-PAKE)
Jan 2, 2025
7c9f835
checkstyle fix
dghgit Jan 2, 2025
29b3da1
Merge branch '22-add-support-for-rfc-9579' into 'main'
dghgit Jan 4, 2025
2f2f61d
added tls/threshold packages
dghgit Jan 4, 2025
9409d79
partial update from git logs
dghgit Jan 4, 2025
c707052
Add tests of Ascon back to AsconTest
Jan 5, 2025
455e44c
TODO: Add tests to cover AEADParameters
Jan 6, 2025
a89da1e
move getMac to AEADBaseEngine, fix the bug related to Grain128AEADEngine
Jan 6, 2025
b6111f5
Add tests on AEADParameters
Jan 6, 2025
54b8279
Rename variables
Jan 6, 2025
26ac00b
Fix issues and use bigEndian to/from long to replace littleEndian in …
Jan 6, 2025
b530e83
Minor change in ISAPEngine
Jan 6, 2025
94607c5
Reformatting in tls
peterdettman Jan 6, 2025
a912b69
Cleanup TLS 1.2 GCM nonce generator stuff
peterdettman Jan 6, 2025
ced3d33
Merge branch 'main' into 1958-aead-parameters
Jan 7, 2025
620a01a
Change XoodyakEngine.message from ByteArrayOutputStream to byte[]
Jan 8, 2025
d21634c
Fix a bug when messageOff>Rkout in XoodyakEngine.
Jan 8, 2025
806a465
Set aad from ByteArrayOutputStream into byte[Rkin] for XoodyakEngine.…
Jan 8, 2025
0098895
Fix the bug in CipherTest.checkAEADParemeter
Jan 8, 2025
c9b07f6
Change PhotonBeetleEngine.aadData from ByteArrayOutputStream to byte[…
Jan 8, 2025
8161aa7
TODO: Fix the bug in PhotonBeetleEngine
Jan 8, 2025
3135e29
TODO: Fix the bug in PhotonBeetleEngine
Jan 8, 2025
44ed712
Fix the bug in PhotonBeetleEngine
Jan 8, 2025
dcf93ea
Fix elephantEngine for multiPart encryption/decryption
tonywasher Jan 5, 2025
1d5735c
Change ISAPEngine.aadData from ByteArrayOutputStream to byte[ISAP_rH_SZ]
Jan 9, 2025
f8336dc
rename ISAPEngine.aadData to buffer. absorb all aad data before proce…
Jan 9, 2025
aa4a965
Refactor on isap_mac
Jan 9, 2025
d40db8a
Remove message, outputStream from ISAPEngine.
Jan 9, 2025
b3f40e3
Merge aadData and message of XoodyakEngine into one byte array
Jan 9, 2025
1613cc3
Fix the bug in AsconAEAD128. Prepare for AEADBufferBaseEngine in Xood…
Jan 9, 2025
6971a97
added support for SHA2/SHA3/KMAC key storage and retrieval
dghgit Jan 9, 2025
e15ae8e
Merge branch 'main' into 1958-aead-parameters
Jan 9, 2025
153526f
Extract common code from PhotonBeetleEngine and XoodyakEngine to form…
Jan 10, 2025
68b9f5e
TLS: GCM nonce mechanism now needs custom JcaTlsCrypto
peterdettman Jan 10, 2025
d31da08
ISAPEngine is inherited from AEADBufferBaseEngine
Jan 10, 2025
760c99c
Refactor EC J-PAKE
peterdettman Jan 10, 2025
6dbdfb4
Fix parameter name
peterdettman Jan 10, 2025
bce43d1
Refactor on AEADBufferBaseEngine, and prepare to make SparkleEngine i…
Jan 10, 2025
d2f95c9
Refactor on AEADBufferBaseEngine, and prepare to make SparkleEngine i…
Jan 11, 2025
0ea0a5e
Resolve merge conflict
Jan 11, 2025
3c0c6e1
BCJSSE: Refactor more of ProvSSLContextSpi into ContextData
peterdettman Jan 11, 2025
cc8f38f
added missing method to Java 9 GCMUtil class.
dghgit Jan 11, 2025
ed1208c
moved missing method to Java 9 GCMFipsUtil class.
dghgit Jan 11, 2025
3b0be50
moved nonce generator method to GCMFipsUtil class (avoid dup in Java …
dghgit Jan 11, 2025
b4fbdac
Merge branch '1953-gcfb-large-data' into 'main'
dghgit Jan 11, 2025
1c03754
Merge branch 'main' into 1958-aead-parameters
dghgit Jan 11, 2025
11a6acd
removed use of Assert
dghgit Jan 11, 2025
c6d4782
removed use of Assert
dghgit Jan 11, 2025
7ac56ca
fixed method permissions.
dghgit Jan 11, 2025
b9cb354
adjusted test for expired certificate.
dghgit Jan 11, 2025
56d4f6f
removed Assert
dghgit Jan 11, 2025
ff9908f
Merge branch 'main' into 1958-aead-parameters
dghgit Jan 11, 2025
76cc096
dealt with properties encoding issue - relates to github #1660
dghgit Jan 11, 2025
3d0c6a4
added jmail mention
dghgit Jan 11, 2025
25a49a4
added check for corrupted stream and escaping NullPointer - relates t…
dghgit Jan 11, 2025
4c40f99
removed use of Assert.
dghgit Jan 11, 2025
e404498
Added some more corrupt inputs - relates to github #1888
dghgit Jan 11, 2025
811083a
Add tests to CipherTest, fix the bug in AEADBufferBaseEngine.processB…
Jan 12, 2025
ac52173
Fix the bug in AEADBufferBaseEngine.processBytes when MAC_SIZE>BlockSize
Jan 12, 2025
dfa92b8
Merge branch '1958-aead-parameters' into 'main'
dghgit Jan 12, 2025
fe144d1
Check return value
peterdettman Jan 13, 2025
7ca0f30
Update release notes
peterdettman Jan 13, 2025
daaf1f7
Added missing cast checks of PKCS12BagAttributeCarrier
dghgit Jan 13, 2025
f31f690
added removed properties copying (file corruption by copy issue)
dghgit Jan 13, 2025
7cc8bf6
updates from github
dghgit Jan 13, 2025
928626d
Abstract core KEM functionality out of DHKEM 2/2
jmcrawford45 Jan 13, 2025
0e3b490
minor re-org
dghgit Jan 13, 2025
2815611
Java 1.4 compatibility
dghgit Jan 13, 2025
5e84519
minor clean up.
dghgit Jan 14, 2025
9a36e56
Merge branch 'patch-1' of https://github.com/jmcrawford45/bc-java int…
dghgit Jan 14, 2025
c9d83fb
Merge branch 'jmcrawford45-patch-1'
dghgit Jan 14, 2025
8a81f6c
fixed patch..
dghgit Jan 14, 2025
29f141a
added additional suppressions
dghgit Jan 14, 2025
5ce0d4d
added additional suppressions
dghgit Jan 14, 2025
a19343d
Lowered tls logs to match the changes
Jan 17, 2025
e761671
added null check for algorithms (relates to github #1895)
dghgit Jan 18, 2025
9edd166
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Jan 18, 2025
c808b0a
TLS: Initial work on draft-tls-westerbaan-mldsa-00
peterdettman Jan 20, 2025
12bf4c2
Add validatilon methods to Arrays
peterdettman Jan 20, 2025
6e801d1
Fix the bug in ShamirSecretSplitterTest.testShamirSecretMultipleDivid…
Jan 21, 2025
24797f6
Update of PQC key encodings for ML-KEM and ML-DSA (no encoding preser…
dghgit Jan 21, 2025
8b813e1
Refactoring in crypto.hpke
peterdettman Jan 21, 2025
7b87489
Fix checkstyle complaining about non-static inner classes
vanitasvitae Jan 22, 2025
ee16879
Fixed MLS test: converted encoded P521 private keys to match required…
Jan 22, 2025
6fd0964
More work in crypto.hpke
peterdettman Jan 23, 2025
32608c8
Add Extensions helpers
peterdettman Jan 23, 2025
075a7bb
Simplify adding oracle trusted key usage attribute
peterdettman Jan 23, 2025
54661c8
Refactoring in openpgp.operator.bc
peterdettman Jan 23, 2025
b949a8f
Refactoring in legacy McEliece
peterdettman Jan 24, 2025
85493d1
Update legacy (and old JDK) X509SignatureUtil
peterdettman Jan 24, 2025
b77d970
Refactor extensions code in X.509 types
peterdettman Jan 24, 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
fa56eaa
Merge branch '1976-pg-fixcheckstyle' into 'main'
ligefeiBouncycastle Jan 30, 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
76d616d
added private key with public key test.
dghgit Feb 4, 2025
7e41e48
minor formatting
dghgit Feb 6, 2025
0aa9d1c
minor formatting
dghgit 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
f13def6
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
dghgit Feb 7, 2025
9706d9a
dealt with expiring certificate in test
dghgit Feb 10, 2025
4021306
add draft-kwiatkowski-tls-ecdhe-mlkem-03
yu-2h Feb 14, 2025
fab5566
modify BcTlsMLKemDomain.java
yu-2h Feb 14, 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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

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

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

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

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

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

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


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

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


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

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

Thank you for contributing to Bouncy Castle!

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

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

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

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

### Create an issue

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

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

If a related discussion or issue doesn't exist, and the issue is not security related, you can [open a new issue](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