Commit graph

22 commits

Author SHA1 Message Date
Mateusz Piotrowski
9e1bda4000 java/bouncycastle15: Make sure we don't miss jars with future updates
The do-install-* targets will now automatically install all the
relevant files provided by the port.

Also while here:

- Replace PORTDOCS with pkg-plist entries for greater control over the
  docs.
- Move ZIPSRC-only install targets to ZIPSRC_ALL_TARGET.
- Sort pkg-plist.
- Add a comment explaining why the port installs the bundled version of
  bcprov.jar.
- Install additional documentation (docs and tls/docs).

Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
2021-11-25 01:58:09 +01:00
Mateusz Piotrowski
f9cf7de02f java/bouncycastle15: Install bcutil.jar and bcjmail.jar
MFH:		2021Q4
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
2021-11-25 01:58:09 +01:00
Mateusz Piotrowski
71a10a9b37 java/bouncycastle15: Simplify install target for ZIPSRC
MFH:		2021Q4
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
2021-11-25 01:58:08 +01:00
Mateusz Piotrowski
e82d4ec5e0 java/bouncycastle15: Refresh pkg-descr and update license info
MFH:		2021Q4
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
2021-11-25 01:58:08 +01:00
Mateusz Piotrowski
374e9ed352 java/bouncycastle15: Pet portfmt and portclippy
MFH:		2021Q4
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
2021-11-25 01:58:07 +01:00
Kyle Evans
8bf8574f5c security/bouncycastle15: update to 1.69
Changelog:
- https://bouncycastle.org/releasenotes.html

Security:	89d5bca6-0150-11ec-bf0c-080027eedc6a
Security:	70e71a24-0151-11ec-bf0c-080027eedc6a
MFH:		2021Q3
Sponsored by:	Modirum MDPay
Sponsored by:	Klara, Inc.
2021-08-19 22:40:35 -05:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Eugene Grosbein
40fc5b7456 java/bouncycastle15: give up maintainership
I have not used the software for years and now
I'm not in position to test and update it.
2020-07-11 13:16:13 +00:00
Jung-uk Kim
5a52a08234 Clean up after java/openjdk6 and java/openjdk6-jre removal
java/openjdk6 support was removed from Mk/bsd.java.mk (r512662) and
java/openjdk6 and java/openjdk6-jre were removed from the ports tree
(r512663).  Now this patch completely removes remaining stuff from the
ports tree.

PR:			241953 (exp-run)
Reviewed by:		glewis
Approved by:		portmgr (antoine)
Differential Revision:	https://reviews.freebsd.org/D22342
2019-11-26 21:46:12 +00:00
Eugene Grosbein
bfca5d2c6e java/bouncycastle15: install signed bcprov.jar
Previous revision 497549 switched to install bcprov.jar build from sources
instead of bundled version. However, the bundled version of JAR file is signed
that is essential as is provides an implementation of a Provider
in the Java Cryptography Architecture. For details, refer to
https://docs.oracle.com/javase/8/docs/technotes/guides/security/crypto/HowToImplAProvider.html

Partially back out that revision to install bundled bcprov.jar as before.

Thanks to Alex Dupre for reporting this.

Reported by:	ale
2019-04-03 18:07:41 +00:00
Eugene Grosbein
4c48543153 java/bouncycastle15: update to version 1.61
This release adds support for the qTESLA signature alogirithm
and the password hashing algorithm Argon2. Support for endpoint
ID validation has been added to the BCJSSE, and the TLS/BCJSEE API's
journey to TLS 1.3 has continued.

Support has been added to the provider for the Ed25519 and Ed448
signature algorithms and provider support has also been added
for X25519 and X448.

A new API for directly parsing and creating S/MIME documents has been added
to the PKIX APIs. In terms of bug fixes, the TLS api will now tolerate
unrecognized hash algorithms and SNI types.

An issue that meant XMSS/XMSS^MT private keys would sometime reload
incorrectly has been fixed.

RFC3211WrapEngine will now properly handle messages longer than 127 bytes,
and an endianness issue for encoding parameters longer than 255 bytes
for CSHAKE has been fixed, some CMP parsing issues have been found and
dealt with, the co-factors for id-tc26-gost-3410-12-256-paramSetA and
id-tc26-gost-3410-12-512-paramSetC have been corrected and more
work has been done on EC key encoding to make sure named curve
parameters are preserved where possible. BCFKS key stores can
now be signature protected rather than passord protected.

See also https://www.bouncycastle.org/releasenotes.html

Also, the port now installs version of bcprov.jar built from sources
removing code since older java/bouncycastle port that installs
bcprov.jar bundled with distfile.
2019-04-02 06:57:18 +00:00
Alex Dupre
801759c3ea Remove java/jaf port, since the Java Activation Framework is included by
default in the JRE since Java 6 and we don't support Java 5 anymore.

Reviewed by:	eugen
2018-07-16 16:59:24 +00:00
Eugene Grosbein
a1b0b79573 bouncycastle15: update to version 1.60
This release deals with two CVEs: one affecting RSA key pair generation
where the certainty value is being tweaked in the light-weight API,
and the other on properly validating an XMSS/XMSS^MT private key on reload.

In terms of improvements, the BCJSSE now supports SNI,
CMS now supports SHA-3 signatures, the Unified Model is now fully supported
for Diffie-Hellman with ephemeral keys, and PGP EC operations can support
a wider range of curves. Issues have also been fixed in EST,
CRMF request generation, and low-level support has been added for EdDSA.

Further details on other additions and bug fixes can be found in the
release notes at:

https://www.bouncycastle.org/releasenotes.html

Security:	CVE-2018-1000180
Security:	CVE-2018-1000613
MFH:		2018Q3
2018-07-15 15:00:50 +00:00
Eugene Grosbein
efadb98a29 bouncycastle15: update to version 1.59
This release fixes CVE-2017-13098 ("ROBOT"), a Bleichenbacher oracle in TLS
when RSA key exchange is negotiated. This potentially affected BCJSSE servers
and any other TLS servers configured to use JCE for the underlying crypto -
note the two TLS implementations using the BC lightweight APIs
are not affected by this.

Some of additional fixes, features and functionality:

* GOST3410-94 private keys encoded using ASN.1 INTEGER are now accepted
  in private key info objects; GOST3412-2015 has been added
  to the JCE provider and the lightweight API.
* SCRYPT is now supported as a SecretKeyFactory in the provider and
  in the PKCS8 APIs.
* The BCJSSE provider now supports Server Name Indication,
  session resumption in clients, the jdk.tls.namedGroups and
  org.bouncycastle.jsse.ec.disableChar2 system properties.
* ECGOST-2012 public keys were being encoded with the wrong OID
  for the digest parameter in the algorithm parameter set. This has been fixed.
* The BCJSSE SSLEngine implementation now correctly wraps/unwraps
  application data only in whole records.

Further details on other additions and bug fixes can be found in the
release notes at:

https://www.bouncycastle.org/releasenotes.html

Security:	CVE-2017-13098
2017-12-29 09:21:11 +00:00
Mark Linimon
3ef3461740 For ports that are explicitly enabled on armv6, also enable them
on armv7.  This has not been tested with an -exp run but should
"do no harm".

PR:		221894 (partial)
2017-10-10 21:31:30 +00:00
Eugene Grosbein
fdcf879213 Update to version 1.58
The main focus in this release is on features. Considerable work has
been done on improving the TLS/DTLS API and the BCJSSE. Support for
ECGOST3410-2012 has been added for both signing and key
agreement/exchange. The DSTU-7564 digest and DSTU-7624 (Kalyna) cipher
have also been added. Support for XMSS and XMSS^MT has been added to the
BCPQC provider and certificate support for the BCPQC algorithms is much
improved.

Further details on other additions and bug fixes can be found in the
release notes at:

https://www.bouncycastle.org/releasenotes.html
2017-08-22 16:51:42 +00:00
Eugene Grosbein
72482226ac Fix build of java/bouncycastle15 on armv6:
remove fork="true" in javac and fork="yes" in junit tasks (ant/bc+-build.xml)

Original report:

  If java/bouncycastle15 is build on armv6 with openjdk18, the build stops with
  This command is not for general use and should only be run as the result of a call to ProcessBuilder.start() or Runtime.exec() in a java application

PR:		220612
Submitted by:	Gerrit Beine <mail+freebsd@gerritbeine.de> (based on)
Approved by:	az (mentor)
2017-07-11 05:38:31 +00:00
Eugene Grosbein
879be60945 Update java/bouncycastle15 upto 1.57 2017-05-20 17:41:42 +00:00
Eugene Grosbein
813f9303d3 Switch MAINTAINER to my new account for my ports.
Reviewed by:	az

M    devel/py-application/Makefile
M    devel/py-xcaplib/Makefile
M    java/bouncycastle15/Makefile
M    net/py-msrplib/Makefile
2017-03-11 18:54:45 +00:00
Kurt Jaeger
51bf76507f java/bouncycastle15: update 1.55 -> 1.56
port changes:
- upstream updated list of its MASTER_SITES (bouncycastle.gva.es
  is gone, downloads.bouncycastle.org changed to www.bouncycastle.org);
- pkg-descr updated to reflect current features;
- installation of zipped bundled sources made optional, enabled by
  default to match previous behavior.

Some of new version changes:
- a new API for DTLS/TLS and a JSSE provider suitable for Java 5 and later;
- support for RFC 7539 ChaCha20 and Poly1305 has also been added
  and general support for SHA-3 in the PKIX APIs has been improved;

Full details of the release:

PR:		215507
Changes:	https://www.bouncycastle.org/releasenotes.html
Security:       CVE-2016-1000338, CVE-2016-1000339, CVE-2016-1000340,
		CVE-2016-1000341, CVE-2016-1000342, CVE-2016-1000343,
		CVE-2016-1000344, CVE-2016-1000345, CVE-2016-1000346,
		CVE-2016-1000352
Submitted by:	Eugene Grosbein <ports@grosbein.net> (maintainer)
2016-12-27 16:37:39 +00:00
Dmitry Marakasov
f2e8103b09 - Update to 1.55
PR:		212133
Submitted by:	ports@grosbein.net (maintainer)
2016-08-25 10:35:41 +00:00
Vsevolod Stakhov
be6a98c4e8 Version 1.54 of the Bouncy Castle Crypto APIs.
The FreeBSD Ports Collection already has 1.45 version of the Bouncy Castle and
this new port is based on java/bouncycastle.

Newer versions are not API-compatible with that older one. Some say they should
be given 2.x version numbers. So, this new version comes as distinct port
java/bouncycastle15 instead of update for existing java/bouncycastle15 to keep
old API version available.

This is neccessary dependency for other port updates, e.g. newer version of
iText PDF (devel/itext) requires new API of modern Bouncy Castle versions.

PR:		211316
Submitted by:	Eugen Grosbein <eugen=at=grosbein.net>
2016-07-29 11:23:55 +00:00