You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8a3265b
Browse filesBrowse the repository at this point in the historyBrowse files
Drop the duplicated C509 entry from the 1.86 additional-features list, keeping the copy that names org.bouncycastle.cbor.c509 as the package the new value types live in rather than the org.bouncycastle.c509 of the stale one.
Copy file name to clipboardExpand all lines: docs/releasenotes.html
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,6 @@ <h3>2.1.3 Additional Features and Functionality</h3>
150
150
<li>org.bouncycastle.math.ec.ECConstantTimeMultiplier is a new constant-time variable-point scalar multiplier: a fixed window with signed-odd-digit recoding, so the iteration and doubling counts are independent of the scalar, with table entries fetched through ECCurve.createCacheSafeLookupTable's masked scan. It works over both prime and binary curves (the point must lie in the subgroup of the given, odd, group order) and returns exactly the point the existing multipliers do - only the timing profile differs. Use it via the new ECAlgorithms.multiplySecret(p, k) / multiplySecret(p, k, order), or install it on a curve with ECCurve.Config.setMultiplier.</li>
151
151
<li>org.bouncycastle.util.BigIntegers.modAdd(M, X, Y) is a new constant-time modular addition for X and Y already in [0, M): the sum is formed at a fixed width and reduced by subtracting M unconditionally and keeping the result under a mask, so neither the running time nor the memory access pattern depends on the values. It is the companion to the existing BigIntegers.modOddInverse for the step before an inversion - X.add(Y).mod(M) is not a safe way to reach a constant-time inverse, because a reduction does no work when the value it is given already fits the modulus, so a sum that crosses the top of M is distinguishable from one that does not. Operands outside [0, M) are rejected rather than reduced, since reducing them is the variable-time operation being avoided.</li>
152
152
<li>org.bouncycastle.util.BigIntegers.modMult(M, X, Y) is its companion for a product, again for X and Y in [0, M) but requiring an odd M: it multiplies in Montgomery form over a fixed number of words, so every loop runs a value-independent number of times and no index depends on the operands. A product is up to twice the width of M, so unlike a sum it cannot be reduced by one conditional subtraction - the reduction is a division whose cost depends on the quotient, which is to say on the operands. The quantities derived from the public modulus alone are computed with BigInteger, as they reveal nothing, and are kept from one call to the next - callers run whole chains of order arithmetic against a handful of fixed group orders, and whether a call reuses them depends only on the modulus. This is the piece that lets a whole chain of order arithmetic be done without BigInteger.mod seeing a secret; note the classical signers (ECDSA, DSA, SM2, DSTU 4145, ECGOST 3410, EC-NR, BIP 340) still form s with BigInteger.multiply and reduce with BigInteger.mod, and are unchanged in this release.</li>
153
-
<li>Support has been added for C509 certificates - the CBOR encoding of X.509 defined in draft-ietf-cose-cbor-encoded-cert-20. A deterministic CBOR reader/writer (RFC 8949 sec. 4.2, the new org.bouncycastle.cbor package in bcutil) underpins new value types in org.bouncycastle.c509 for C509 certificates, certification requests, certification request templates, private key structures, C509PEM and COSE_C509, covering both natively signed structures (type 2, signed over the CBOR itself) and invertible CBOR re-encodings of DER X.509 / RFC 2986 (type 3), where conversion is gated on the re-encoding reproducing the input DER byte for byte. bcpkix adds operator-based holder/builder classes in org.bouncycastle.cert.c509 with lightweight and JCA/JCE verifier providers as bc/jcajce peers, ESTService.getC509CertificationRequestTemplate() for fetching a certification request template over EST (draft sec. 4.4), and all five Appendix A examples as test vectors. Note the draft is still subject to change: the API should be regarded as provisional until the RFC issues, and the encodings for values 23-25 in the draft's Signature Algorithms Registry (Figure 18) follow the DER the certificates themselves use rather than the inconsistent SEQUENCE length octet printed in the table.</li>
154
153
<li>Support has been added for C509 certificates - the CBOR encoding of X.509 defined in draft-ietf-cose-cbor-encoded-cert-20. A deterministic CBOR reader/writer (RFC 8949 sec. 4.2, the new org.bouncycastle.cbor package in bcutil) underpins new value types in org.bouncycastle.cbor.c509 for C509 certificates, certification requests, certification request templates, private key structures, C509PEM and COSE_C509, covering both natively signed structures (type 2, signed over the CBOR itself) and invertible CBOR re-encodings of DER X.509 / RFC 2986 (type 3), where conversion is gated on the re-encoding reproducing the input DER byte for byte. bcpkix adds operator-based holder/builder classes in org.bouncycastle.cert.c509 with lightweight and JCA/JCE verifier providers as bc/jcajce peers, ESTService.getC509CertificationRequestTemplate() for fetching a certification request template over EST (draft sec. 4.4), and all five Appendix A examples as test vectors. Note the draft is still subject to change: the API should be regarded as provisional until the RFC issues, and the encodings for values 23-25 in the draft's Signature Algorithms Registry (Figure 18) follow the DER the certificates themselves use rather than the inconsistent SEQUENCE length octet printed in the table.</li>
155
154
<li>The org.bouncycastle.jce.exception package (ExtException and the ExtCertPathValidatorException / ExtCertPathBuilderException / ExtCertificateEncodingException / ExtIOException subclasses) is deprecated. It existed only to attach an exception cause on pre-1.4 JVMs, which the supported runtimes now do natively; the provider cert-path and X.509 generator code that used those types now throws the standard java.security.cert exceptions, using new org.bouncycastle.jcajce.provider.util.SecurityExceptions factories (certPathValidatorException / certPathBuilderException / certificateEncodingException) where a Java-1.4-safe cause attach is still needed. Thrown exception messages and the certPath/index carried by CertPathValidatorException are unchanged; callers that caught the concrete Ext* subclasses should catch the standard supertype instead.</li>
156
155
<li>The RFC 5280 sec. 6.1.3/6.1.4 valid-policy-tree node type and its tree-manipulation helpers were previously triplicated across the provider's cert path validator, the provider's cert path reviewer and the PKIX revocation checker's reviewer. The node is now single-sourced as the public org.bouncycastle.jcajce.PKIXPolicyNode (alongside the other PKIX* JCA support types) with the shared tree operations in org.bouncycastle.jcajce.PKIXPolicyTreeUtil, and all three stacks delegate to them; org.bouncycastle.jce.provider.PKIXPolicyNode is retained as a compatibility subclass. Behaviour is unchanged.</li>
0 commit comments