Feature notes
Release notes 4.1.3.359
================================================================================
CHANGES - StreamSec Tools
(StreamSec Security Library for Embarcadero Delphi)
================================================================================
Grouped by subject and numbered straight through. Entries marked BEHAVIOUR
CHANGE alter what existing code does without any source change on your part -
read those before upgrading.
WHAT THIS FILE COVERS. Changes made SINCE release 4.1.3.358, which was
released on 2026-09-17. What that release itself brought is in
CHANGES_4.1.3.358.txt
and every earlier release is archived beside it the same way, one file per
version. So this file is always short: it is the difference between the zip
you have and the one you are looking at, and nothing else.
--------------------------------------------------------------------------------
TWO PLACES WHERE INPUT THAT SHOULD HAVE BEEN REFUSED WAS NOT: STORING A PRIVATE
KEY FAILED BECAUSE AN INFORMATION OBJECT READ PAST THE END OF ITS OWN TABLE, AND
A TRUNCATED ELLIPTIC CURVE POINT DECODED TO AN OBJECT WITH NO COORDINATES
================================================================================
Two defects in the code that turns encoded data into objects. Neither needs a
source change on your part. In both, the routine already had a way of saying
"this is not one of those", and in both it failed to take it.
1. FIXED - storing a private key could fail with the key, the format and the
caller all correct
A private key information object asks its key and parameter fields which
member of their CHOICE has been selected, and passes the answer to the
table lookup that yields that member's object identifier. A field that has
not selected one answers -1, and the lookup indexed its table with that
number without checking it - reading whatever lay in front of the table and
returning it as though it were an object identifier.
WHAT IT LOOKED LIKE. The key manager caught the resulting fault while
checking the key's format, so nothing was reported where it arose. It was
then left with no identifier for the key, SetPrivateKey returned False, and
the caller saw a private key that would not store. The most visible form
was CMS signing and enveloping failing for every key type at once - RSA,
EC, EdDSA, ML-DSA and composite alike - while the matching CERTIFICATE
operations went on working, because only the private-key path goes through
PKCS#8.
NONE OF THE USUAL SUSPECTS WAS INVOLVED: not the key file, the key format,
the passphrase, or a key-format unit missing from the project's uses
clause. The same call is made for every key type, and it is made before any
of those could matter. If certificate operations succeed for a key type
whose private key will not store, that is this defect and not a key loaded
wrongly.
WHY IT APPEARED WHEN IT DID. What lies in front of the table is decided by
the compiler and the linker, not by the library. For a long time it was a
string constant that the runtime left alone, and the read was invisible. A
toolchain whose layout puts something else there turns the same read into a
fault. So it could appear on one platform and not another, and appear after
a compiler update with no change to the library at all - which is how it
was found, on Linux64.
The lookup returns an empty identifier for a negative index, which the
caller already treats as "no object identifier". An index in range behaves
exactly as before.
2. FIXED - a truncated or unrecognised elliptic curve point decoded to an
object with no coordinates instead of to nothing
BytesToFieldElement turns an octet string into a curve point and returns
nothing when the octet string is not one. For the compressed encodings it
did. For the uncompressed encoding and the two hybrid encodings it checked
the length and, when the octet string was too short, fell out of the check
still holding the empty point it had allocated to work in - and returned
that. An octet string whose first byte named no encoding at all took the
same route.
The caller was then holding a point that tests as assigned and whose
coordinates are not. Reading anything from it - either coordinate, whether
it is the point at infinity, whether it is on the curve - dereferences
nothing. A single 04 octet was enough to produce one.
A well-formed point decodes exactly as before on every encoding, and a
well-formed point that is not on the curve is still refused by the checks
that were already refusing it. What changes is that an octet string which
is not a point decodes to nothing, which is what callers already test for.
--------------------------------------------------------------------------------
THE EMBEDDED CCADB ROOT SET
================================================================================
3. CHANGED - the embedded root set carries a fresher verification date, and
the roots themselves are unchanged
StreamSec.Mobile.CCADBRoots embeds the Mozilla root program filtered to the
websites trust bit, and reports two dates: when the set was taken, and when
it was last confirmed to be still what the root program publishes. The
second reads 2026-09-18.
THE TRUST ITSELF DOES NOT MOVE. The set was re-fetched and compared on that
date and found identical - no additions, no removals - and all 121 roots
were re-checked to be self-signed, to carry basicConstraints CA:TRUE and to
be unexpired. It is still the set established 2026-08-11, and an
application upgrading to this version trusts exactly the same certificates
as it did before. What changes is the answer TsmCCADBTrustAnchors gives
when asked how recently that was confirmed, which is the figure an auditor
asks for.