Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

Product information (manufacturer, support period, integrator notes)

================================================================================
 PRODUCT INFORMATION
 The manufacturer, the support period, and what an integrator decides
 (StreamSec Security Library for Embarcadero Delphi)
================================================================================

Generated: 2026-11-09

This document is the information that accompanies the product: who made it, how
to reach us about a vulnerability, what the product is for, how long it is
supported, and - because this product is a library that goes inside somebody
else's application - what the defaults are and which decisions remain yours.

It is arranged as the items of Annex II of Regulation (EU) 2024/2847, the Cyber
Resilience Act, so that an integrator preparing their own conformity work can
find each item where they expect it. Those obligations bind products placed on
the market from 2027-12-11. This release is earlier, so the document is
provided ahead of that date rather than because it is yet required, and no
declaration of conformity is claimed for it - see section 6.

Where a subject already has its own document in this folder, this one names it
rather than repeating it. TLS.txt, SSH.txt, SFTP.txt, PKIX.txt, HTTP.txt,
HTTPSClient.txt, MAIL.txt, ACME.txt, DRBG.txt, FileJail.txt, KAPA.txt,
AsyncTLSServer.txt, QUICServer.txt, PIR.txt, QR.txt, CertificateReload.txt and
HostLookupShutdown.txt are the subsystem notes. CHANGES.txt and the archived
CHANGES_<version>.txt files are the release record; LICENSE.txt (LICENSE.RTF in
a trial) is the licence. LICENSE-CDLA-Permissive-2.0.txt concerns the CCADB root
set alone (section 10). A trial carries only PKIX.txt, SSH.txt and TLS.txt of
these notes, and none of the CHANGES files.

--------------------------------------------------------------------------------
0. SUMMARY
--------------------------------------------------------------------------------

  Manufacturer        StreamSec Handelsbolag (StreamSec HB), Sweden
  Vulnerabilities     support@streamsec.se
  This release        StreamSec Tools 4.1.5.363
  Support ends        2031-11-09, five years after this release was published
  Fixes available     at least ten years after each is issued
  Updates             free source patches in the forum's Announcements
                      section, applied by hand; or the whole current
                      release with a subscription. Nothing self-installs.
  SBOM                the trial download page, and attached to this
                      release's changelog entry in Announcements

THE ONE THING TO READ IF YOU READ NOTHING ELSE. This is a source-code library
that is compiled into your application. It makes no decision about trust, key
management or policy on your behalf, and it updates nothing by itself. It
opens no connection your code did not ask for, with one exception: its TLS
components fetch CRLs and issuer certificates while they validate a
certificate (section 9.2). Section 9 lists the defaults it does set, the basis
for each, and the decisions that are yours.

================================================================================
1. THE MANUFACTURER
================================================================================

  StreamSec Handelsbolag ("StreamSec HB")
  Telegatan 1
  272 93 Tommarp
  SWEDEN

  General enquiries   info@streamsec.se
  Sales and licensing sales@streamsec.se
  Support             support@streamsec.se
  Website             https://www.streamsec.com/

================================================================================
2. REPORTING A VULNERABILITY
================================================================================

THE SINGLE POINT OF CONTACT IS support@streamsec.se. Use it to report a
security issue or a suspected vulnerability in any StreamSec product, as well
as for installation support and ordinary defects. It is a monitored address
reaching the people who maintain the code, not a ticket queue in front of them.

WHAT TO SEND. The product and the version string (section 3), the platform and
the Delphi version, what you observed, and - if you have one - the smallest
input or sequence that reproduces it. If you believe the issue is being
exploited, say so in the subject line.

WHAT HAPPENS NEXT. We read the report on the day it arrives, acknowledge it,
and reproduce it or tell you why we cannot. Where a fix is warranted it is
published as fast as practically possible, as described in section 8.3, and
recorded in CHANGES.txt with enough detail to tell whether your own
application was affected.

THE COORDINATED VULNERABILITY DISCLOSURE POLICY IS SECURITY.txt, in the root
of this distribution. It is also published at
https://www.streamsec.com/index.php?id=security. It says what counts as a
vulnerability, how a report is handled, and when the details become public.

Reports of an actively exploited vulnerability, and severe incidents affecting
the security of this product, are also reported by StreamSec HB to the
coordinating CSIRT for Sweden (CERT-SE) and to ENISA, under Article 14 of the
Cyber Resilience Act. That obligation has applied since 2026-09-11 and the
procedure for it is in place.

================================================================================
3. THE PRODUCT, AND HOW TO IDENTIFY THE COPY YOU HAVE
================================================================================

NAME AND TYPE. StreamSec Tools 4.x, a source-code component library for
Embarcadero Delphi (TM). It is delivered as Object Pascal source, compiled by
you into your own application; there is no installer, no service and no
separate binary that a scanner could find on a deployed machine.

THIS RELEASE IS 4.1.5.363. The version is compiled in, so a copy can always
identify itself. In stVersion.pas:

    cStreamSecToolsVersion   = '4.1.5.363'
    cStreamSecToolsMajor     = 4      cStreamSecToolsRelease = 5
    cStreamSecToolsMinor     = 1      cStreamSecToolsBuild   = 363
    cStreamSecToolsReleased            the publication date, ISO 8601
    cStreamSecToolsPurl      = 'pkg:generic/streamsec/streamsec-tools@4.1.5.363'

StreamSecToolsAtLeast(aMajor,aMinor,aRelease,aBuild) answers the ordered
comparison, so an application can refuse to start against a release older than
the one it was tested with.

TO RECOVER THE VERSION FROM A SHIPPED BINARY, reference gStreamSecToolsBanner
somewhere in your application - logging it at startup is enough. Delphi links a
unit only when something uses it, so without that reference the string is not
in your executable and there is nothing to find. A version string names exactly
one distribution archive and is never reused.

IS THIS A LICENSED COPY OR AN EVALUATION ONE? A trial is DCU only - it has
no .pas sources for the library and it is a debug build. A licensed copy
carries the complete Object Pascal source. The difference decides whether
section 7 applies to you at all.

SUPPORTED COMPILERS AND PLATFORMS. Delphi XE3 through Delphi 13, as fourteen
runtime packages, StrSecIV170 through StrSecIV370. Win32 and Win64 are built
and tested; Linux64 is built and tested; macOS, iOS and Android compile, and
are exercised far less. README_<version>.txt in this folder carries the
per-compiler notes.

================================================================================
4. INTENDED PURPOSE, AND THE SECURITY IT DOES AND DOES NOT PROVIDE
================================================================================

INTENDED PURPOSE. To supply cryptographic and secure-communication building
blocks that a software developer integrates into their own product. It is not
an end-user application and not a finished service. The integrator decides the
configuration, the key management, the trust decisions, and whether to switch
on anything the library offers as opt-in or legacy.

ESSENTIAL FUNCTIONALITY. Symmetric and public-key cryptography, hashes, MACs
and key derivation, including the post-quantum algorithms ML-KEM, ML-DSA,
SLH-DSA and sntrup761; a random generator built on SP 800-90; X.509
certificate generation and path validation, CRL and OCSP, PKCS#12, PKCS#8,
PKCS#7/CMS and S/MIME, and PKCS#11 hardware tokens; TLS 1.0 through 1.3,
client and server; HTTP/1.1, HTTP/2 and HTTP/3 over QUIC, client and server,
with asynchronous TLS and QUIC servers, a REST client and server and ACME
certificate automation; SSH-2 and SFTP, client and server; SMTP, POP3 and IMAP,
clients and servers, with DKIM, SPF, DMARC and MTA-STS; single-server private
information retrieval; QR encoding, decoding and detection; and the Snif/Snip
remoting framework.

THE SECURITY PROPERTIES IT IS DESIGNED TO PROVIDE, within a correctly
configured application: confidentiality and integrity of data in transit under
the protocols named above; authentication of a peer where the application
supplies and checks the trust material; integrity and authenticity of signed
messages and documents; and confidentiality of key material held in the
process, which is wiped rather than merely released when its holder is freed.

THE OPERATIONAL ENVIRONMENT IT ASSUMES. The library runs inside your
application, in your process, with your privileges. It assumes that the network
peer and everything received from it are hostile; it does not assume anything
about the local machine. It has no defence against an attacker who already has
code execution in the same process, who can read the process's memory, or who
controls the machine's clock or entropy sources.

WHAT IT IS NOT. It is not an access-control system, a key-management service, a
secrets store, an audit system, or a policy engine. It does not decide which
peers you should trust, which algorithms your policy permits, or how long your
keys live. Those are the application's, and section 9 lists the ones the
library deliberately leaves to you.

================================================================================
5. CIRCUMSTANCES THAT CAN LEAD TO SIGNIFICANT CYBERSECURITY RISK
================================================================================

The five below are the ones that have actually caused trouble. Each is a
property of how the library is used, not a defect in it.

DEPRECATED ALGORITHMS ARE PRESENT, FOR INTEROPERABILITY, BUT NO DEFAULT
REACHES THEM. MD5, SHA-1, RIPEMD-160, single and triple DES, RC2, RC4 and small
key sizes are implemented because customers have peers that still require them.
Every setting the library chooses for you chooses against them - section 9
lists what it chooses - so a deprecated algorithm runs only because your code
named it, or because a stored form carries an older value (section 8.2).
Naming one is a decision, and the library does not second-guess it.

SOME THINGS ARE DEPRECATED OUTRIGHT, which is a stronger statement: they are
still there so that data already written with them can be read, and they
should not be chosen for anything new. The PCFB cipher modes (cmPCFB,
cmPipedPCFB); the keyed-IV ciphers; the WeakPassword key derivations tWPKDF
and tWPKDF2 with the WeakPassword families, StrSecIISecureSetup,
kdfWeakPassword and kdfWPv2; and the SET3 cipher-stream container. Entry 32
of CHANGES_4.1.4.360.txt lists these in full and says what to use instead. NOT
deprecated, in case a reader assumes anything old is: the ABC mode is kept
deliberately.

SET3 IS ON THAT LIST FOR A DIFFERENT REASON, AND THE REASON MATTERS. The
container that tEncryptStream writes and tDecryptStream reads is a StreamSec
format: nothing outside this library implements it, and it has had no review
from anyone outside StreamSec. That is why we recommend against it for new
data - not any known weakness in it. A format that exactly one implementation
reads is a liability on its own terms, whatever its cryptography proves to be:
nobody else can open your data, and no outside eyes have looked for a flaw in
how it frames what it protects. Use a standard container instead; CMS is the
one this library already implements.

The CipherStream demo still uses SET3, because the classes it demonstrates are
the ones that write it. Take the stream handling from that demo and not the
container.

VERIFICATION THAT IS OVERRIDDEN IN AN EVENT HANDLER. The certificate and
host-key callbacks exist so that an application can apply its own policy. An
application that answers "accept" unconditionally has turned authentication
off, and every guarantee in section 4 that depends on it is gone. A handler
that grants explicit trust is the application's decision and the library
honours it; see section 9.

AN OLD RELEASE LEFT IN SERVICE. Because the library is compiled into your
application, upgrading it means rebuilding and redeploying. An application
built once and never rebuilt keeps whatever the library was on the day it was
built, including any defect fixed since. Section 7 says how long a release is
supported and section 8.3 how an update reaches you.

OBSOLESCENCE OF A STANDARD. An algorithm or protocol can stop being adequate
without anything in this product being wrong. That is handled by migration
advice and by changing the default in a later release, not by a patch to an
older one - see section 7.

RANGE AND OVERFLOW CHECKING IS OFF THROUGHOUT THE LIBRARY. See section 9; it is
deliberate and it constrains how you build.

================================================================================
6. DECLARATION OF CONFORMITY
================================================================================

NO EU DECLARATION OF CONFORMITY HAS BEEN ISSUED FOR THIS RELEASE, and none is
claimed. The Cyber Resilience Act's conformity obligations apply to products
placed on the market from 2027-12-11; this release is earlier than that date.

When a declaration is issued it will be published at
https://www.streamsec.com/ and this section will carry its address. The
information in this document is provided now because an integrator preparing
for their own 2027 obligations needs it before then, not because a declaration
stands behind it today.

================================================================================
7. SUPPORT PERIOD AND SECURITY UPDATES
================================================================================

AN EVALUATION COPY IS NOT COVERED BY ANY OF THIS. The trial distributions
on the website are DCU-only debug builds licensed for evaluation. They
carry NO LONG-TERM SUPPORT, they must not be passed on, and they must
NEVER form part of a product you deploy to anyone else, in whole or in
part. Everything else in this section describes a LICENSED release. If you
are reading this inside a trial, none of it applies to the copy you have.

A PROBLEM REPORTED IN THE CURRENT VERSION OF THE TRIALS IS ADDRESSED, but
in most cases the answer will be "thank you for bringing this to our
attention, it will be fixed in the next release". A report about any
obsolete version of the trials is always answered with: download the
current version.

THE TYPE OF SUPPORT. Vulnerabilities reported in a supported release are
handled, and where a fix is warranted a security update is issued as source, in
the form described in section 8.3. Support of this kind is not conditional on a
subscription; commercial support agreements, which cover installation help,
advice and priority, are a separate matter and are described at
https://www.streamsec.com/.

THE SUPPORT PERIOD IS FIVE YEARS, AND IT RUNS FROM EACH RELEASE'S OWN
PUBLICATION DATE.

    Release 4.1.5.363, published 2026-11-09
    Support ends                 2031-11-09
    Security updates issued in that window remain obtainable
    for at least ten years from the date each is issued.

Five years is the floor the Cyber Resilience Act sets, and it is the right
figure for this product rather than merely the permitted minimum: the library
is recompiled into your application, so you take a new release when you next
build; it is tied to Delphi versions, whose own lifecycles set the practical
horizon; and releases are frequent, each superseding the last for new work. An
integrator still on a five-year-old release is normally several Delphi versions
behind as well.

Each release carries its own five years, so a release taken later carries the
period forward. Rebuilding against a current release is therefore the way to
stay in support, and it is the same action as taking a security update.

Releases published before this policy was adopted have no support period
claimed for them. Reporting obligations under Article 14 still reach every copy
ever placed on the market.

WHAT IS NOT A SECURITY FIX. A security update addresses a flaw in this product.
The following are not flaws in this product and are answered with documentation
and migration advice:

  - An algorithm, scheme or protocol that becomes obsolete - a hash whose
    collision resistance falls, a key size that stops being adequate, a
    protocol version that is deprecated. The implementation is doing what the
    standard says.
  - The arrival of a cryptographically relevant quantum computer. The remedy is
    migration to the post-quantum algorithms this library already ships,
    together with TLS 1.3 at both ends and new keys and certificates. It is not
    a patch to an older release.
  - A default that was correct when a release shipped and is no longer
    recommended. The current release changes the default; older releases keep
    theirs, and CHANGES.txt records the change.

THE BOUNDARY. An implementation error in a deprecated algorithm is still a
defect in this product and is fixed like any other while the release is in
support. Deprecation changes what we recommend, not whether the code does what
it claims.

Note that LICENSE.txt carries a ninety-day warranty. That is a contractual term
about the media and the fitness of what you bought. The support period above is
a different thing: a commitment to handle vulnerabilities and issue security
updates. Neither limits the other.

================================================================================
8. USING THE LIBRARY SECURELY
================================================================================

8.1 AT COMMISSIONING, AND THROUGH THE PRODUCT'S LIFETIME
--------------------------------------------------------------------------------

Install by adding the Source folder to your project's search path, or by
installing the runtime and design packages for your Delphi version; README_
<version>.txt has the per-compiler procedure. Nothing else is installed and
nothing is registered with the operating system.

Then, in order:

  1. Decide the defaults you are keeping and the ones you are narrowing.
     Section 9 lists them.
  2. Decide where private keys live and who may use them. A key in a PKCS#12
     file, a key in a key store and a key on a PKCS#11 token are three
     different exposures.
  3. Decide your trust anchors explicitly. Do not rely on whatever a store
     happens to contain.
  4. Decide your revocation policy, knowing that the TLS components fetch CRLs
     and issuer certificates by themselves. Section 9.2 says what that means.
  5. Rebuild and redeploy when you take a new release, and read CHANGES.txt
     for the entries marked BEHAVIOUR CHANGE before you do.

Through the lifetime: watch CHANGES.txt on each release for BEHAVIOUR CHANGE
entries, which alter what existing code does without any source change on your
part; re-read section 9 when you upgrade across a release that changed a
default; and keep a record of which release each deployed application was built
with, because that is the only way to answer later whether a given defect
reached it.

The per-subsystem documents carry the operational detail: TLS.txt for the TLS
configuration, SSH.txt and SFTP.txt for the SSH family, PKIX.txt for
certificates, CRLs, OCSP and CMS, HTTP.txt for the HTTPS stack, MAIL.txt for
the mail suite, ACME.txt for certificate automation, DRBG.txt for the random
generator and its entropy sources, FileJail.txt for filesystem confinement,
and AsyncTLSServer.txt for the asynchronous server architecture. DLL and
runtime-package hosts using bounded DNS lookups follow HostLookupShutdown.txt
for the pre-unload shutdown sequence and timeout/retry examples.
CertificateReload.txt covers following independently published PFX files,
component hot replacement and bounded worker-failure handling.

8.2 HOW CHANGES TO THE PRODUCT AFFECT THE SECURITY OF DATA
--------------------------------------------------------------------------------

Two kinds of change matter, and they are not the same.

A CHANGE YOU MAKE TO THE CONFIGURATION takes effect at the next run of your
application, and affects data protected from then on. It does not reach back:
data already encrypted, messages already signed and certificates already issued
carry the algorithms and key sizes that were in force when they were made.
Narrowing a cipher list protects new sessions and does nothing for recorded
ones; changing a key store's protection scheme does not rewrite keys already
in it.

A CHANGE THAT COMES WITH A NEW RELEASE takes effect when you rebuild. Entries
marked BEHAVIOUR CHANGE in CHANGES.txt are exactly those that alter what your
existing source already does, and they are the ones to read before upgrading.
Where a change would stop the library reading something an earlier release
wrote, the release notes say so and, where it is possible, a read-only
compatibility path is kept so that existing data is still readable while new
data is written the new way.

Formats are forward-stable in the direction that matters: a later release reads
what an earlier one wrote. The reverse is not promised.

A FORM KEEPS WHAT IT STORES, AND THIS IS THE ONE THAT DECIDES WHETHER A NEW
DEFAULT REACHES YOU AT ALL. A component that was dropped on a form has its
published properties written into the .dfm, and rebuilding against a new release
does not rewrite them. So an application whose settings live on a form keeps the
behaviour it was designed with, and a release that changes a default changes
nothing for it until someone opens the form. Where that bites:

  - every TTLSOptions property has been stored explicitly since 4.1.2.355, so a
    form carries its own cipher, group and digest policy;
  - DigestAlgorithm on the certificate generators, and ContentDigestAlg on the
    CMS components, keep the old form's value;
  - the key components' hash properties are declared with a default specifier,
    so a form that never stored one FOLLOWS the new default rather than pinning
    the old one;
  - a component your code creates at run time always gets the new defaults.

After an upgrade that moves a default, open the forms that carry these
components and re-check them, or set the property in code where you want the
library's current choice rather than the one your form remembers.

ONE MIGRATION NEEDS A LINE OF CODE. Data keyed through
TstCipher.SetKeyPassword by an earlier release was derived with the deprecated
WeakPassword derivation. To read it, set PBKDFClass := tWPKDF2 before
SetKeyPassword; leave it alone for anything new, where the default is PBKDF2.

8.3 HOW A SECURITY UPDATE IS INSTALLED
--------------------------------------------------------------------------------

There is no installer and no automatic mechanism. Nothing here downloads or
replaces itself; a security update is source that you apply and compile.

SECURITY PATCHES ARE FREE, AND THEY ARE POSTED IN PUBLIC. They go to the
Announcements section of the support forum:

    https://support.streamsec.net/forum/?cmd=viewsection&section_id=4

That section is readable without an account. Each patch is a topic naming the
releases it applies to and the defect in one line, and it is a source patch you
apply to your own copy of the Source folder by hand. Patches stay there for at
least ten years after they are issued, and they reach back well beyond the
releases currently in support.

WITH AN ACTIVE SUBSCRIPTION, TAKE THE WHOLE RELEASE INSTEAD. The current
release already contains every fix, so there is nothing to apply one by one,
and it also brings the corrections and additions that were never classed as
potentially exploitable and so were never published as patches. THEN READ THE
CHANGELOG, because a whole release brings more than the fix you came for:
every entry in CHANGES.txt marked BEHAVIOUR CHANGE alters what your existing
source already does, and all of them are recorded there.

Either way the procedure is:

  1. You are notified. The Announcements section carries it; where we can
     identify the affected users we also contact them directly.
  2. Obtain the update - the patch from Announcements, or the current release.
  3. Apply it to your copy of the Source folder.
     Read CHANGES.txt for the BEHAVIOUR CHANGE entries before you go on.
  4. Rebuild the runtime and design packages for your Delphi version, so that
     no stale compiled unit survives. A partial rebuild is the one step people
     get wrong: an application that links an old .dcu has not been updated.
  5. Recompile your application against the rebuilt units, and redeploy it.
  6. Confirm the version, by logging gStreamSecToolsBanner or by checking
     StreamSecToolsAtLeast, so that what is deployed is what you think it is.

Because step 5 is yours, an update does not reach an end user until you ship.
Build the rebuild into your own release process rather than treating it as an
exceptional event.

8.4 DECOMMISSIONING, AND REMOVING DATA SECURELY
--------------------------------------------------------------------------------

REMOVING THE LIBRARY. Uninstall the design-time package from the IDE if you
installed it, remove the Source folder from your search path, and delete it.
Nothing is left in the registry, in a service, or in a shared location; the
only traces of the library on a deployed machine are inside your own
executable.

KEY MATERIAL IN MEMORY is wiped rather than released: secret keys, passwords
and derived material are overwritten when the object holding them is destroyed.
That covers the library's own copies. A copy your application made - in a
string, in a buffer, in a log line - is yours to overwrite, and a string that
has been copied by the compiler may exist more than once.

KEY MATERIAL AND DATA ON DISK is not removed by uninstalling anything. Before
you decommission a system, deal with each of these deliberately:

  - private key files and PKCS#12 / PFX files, and any backup of them;
  - key stores and their index files;
  - certificate and CRL caches;
  - session and ticket stores, including on a TLS server;
  - mail stores and maildir trees, which contain message content;
  - configuration files holding passwords, connection strings or key paths;
  - log files, which may name key files and hosts.

Deleting a file does not erase its contents on any modern filesystem, and on
flash storage overwriting in place is not reliable either. Where the material
is worth protecting, the durable answer is that it was encrypted at rest and
that you destroy the key; failing that, use the platform's own secure-erase for
the whole volume.

A PRIVATE KEY THAT MAY HAVE BEEN EXPOSED SHOULD BE REVOKED, not merely deleted.
Deleting your copy does nothing about a copy somebody else has.

8.5 TURNING OFF AUTOMATIC UPDATES
--------------------------------------------------------------------------------

THERE IS NOTHING TO TURN OFF. The library installs nothing, contacts no update
service, and has no automatic-update default. It is source that you compile;
every change to what runs is a rebuild you perform, as section 8.3 describes.

The Cyber Resilience Act's default-automatic-update requirement is directed at
products that update themselves. This one cannot, so the opt-out it asks for
does not arise.

Two things in the library do reach the network on their own initiative, and
neither is an update mechanism: ACME certificate renewal, which you configure
and schedule deliberately (ACME.txt), and the CRL and issuer-certificate
fetch that the TLS components make by default, described in section 9.2.

================================================================================
9. FOR INTEGRATORS: THE DEFAULTS, AND WHAT IS YOURS TO DECIDE
================================================================================

This section exists because the product is intended to be integrated into
another product. It collects the defaults that matter, the basis for each, and
the decisions the library deliberately leaves to you. It is the section to read
alongside your own risk assessment.

9.1 DEFAULTS THE LIBRARY SETS
--------------------------------------------------------------------------------

WORKER PROCESS-STATE FAULTS END THE HOST PROCESS. The library classifies
EAccessViolation, EPrivilege, EStackOverflow, EExternalException and
EInvalidPointer as process-state faults. If one reaches the boundary of the
OCSP staple warm-up worker, the certificate-reloader polling worker or a mail
thread, or is raised in a mail session's own code or by a mail store's
OnCompareFolderName handler on any thread, the library logs, notifies the
application, and ends the host process with exit code 70. Observer deadlines
and a watchdog bound this reporting sequence. This policy is intended for
unattended servers, where continuing in a damaged process can be unsafe;
integrators should arrange external process supervision and restart. Outside
the mail suite it does not apply to ordinary handshake fetches or synchronous
caller paths. See CertificateReload.txt and MAIL.txt section 7.3 for the exact
boundaries, events and shutdown contract.

TLS NAMED GROUPS. The default set is P-256, P-384, P-521, X25519, X448, the
hybrids X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024, and the pure
ML-KEM groups ML-KEM-512, ML-KEM-768 and ML-KEM-1024. The ML-KEM groups take
part in TLS 1.3 only. The hybrids are on by default rather than opt-in on a
stated basis: a hybrid carries an ECDHE share and an ML-KEM share in one
key_share and derives the secret from both, so offering one is never weaker
than offering the curve alone, and a peer that does not recognise it negotiates
a classical group. Narrow the set to your policy list if you have one.

TLS KEY AGREEMENT. Forward-secret and elliptic-curve only. ECDHE is preferred;
ephemeral finite-field Diffie-Hellman is refused, as are static RSA, static DH,
static ECDH, DSS signatures and anonymous key exchange. The ffdhe groups are not
offered while DHE is refused, so narrowing here costs nothing on the wire. Put
DHE back to allowed only for a peer that offers nothing better.

TLS DIGESTS. MD5, SHA-1, SHA-224 and RIPEMD-160 are refused by default for MAC,
PRF and TLS 1.2 signature hashing. SHA-256 is preferred; SHA-384 and SHA-512 are
allowed. A ClientHello's signature_algorithms and a server's CertificateRequest
offer none of the refused ones, and a signature made over one is refused with
illegal_parameter - on the client for a ServerKeyExchange, on the server for a
CertificateVerify. One property, HashAlgorithmSHA1, governs SHA-1 and SHA-224
together. Enable a refused digest only for a specific legacy peer.

THE COMPONENTS DO NOT OVERRIDE ANY OF THAT. The TLS client, the HTTPS and REST
clients and the asynchronous TLS server take TTLSOptions as it stands, so what
section 9.1 describes is what they negotiate: the AEAD suites over ECDHE in
TLS 1.2, with the curve chosen from the group set above. On the server side an
RSA-signed suite is offered only to a client that offers RSA over SHA-256,
SHA-384 or SHA-512, and an ECDSA suite only to one that offers ECDSA over all
three.

PKCS#12 EXPORT USES PBES2. Private keys and the safe contents holding the
certificates are both protected with PBES2 - PBKDF2 over HMAC-SHA-256 at 131072
iterations, AES-256-CBC - and the file is written as PFX version 3. The legacy
schemes are still there for a reader that needs them: pass the compatibility
argument as True, or aUsePBES2 as False, and the export reverts to
pbeWithSHAAnd3-KeyTripleDES-CBC for the key and pbeWithSHAAnd40BitRC2-CBC for
the safe contents, both at 2000 iterations. Do that only when something on the
other side cannot read PBES2, and know that it is what you are choosing.

SIGNING USES SHA-256, AND SHA-1 IS REFUSED ON THE WAY IN. The certificate and
CRL generators, the RSA, DSA and ECDSA key components - RSA-PSS with MGF1 over
SHA-256 - and CMS all sign with SHA-256 unless you say otherwise; the CMS
content digest is chosen per signer. On verification there is a floor: a
signature made over MD2, MD5 or SHA-1 is refused, across certificates, CRLs,
OCSP responses, PKCS#10 requests, CMS signers and countersignatures, and
RFC 3161 timestamp tokens. RSASSA-PSS with default parameters counts as SHA-1
for this. The floor has one exemption, and it is not a weakness: an object
checked against ITSELF - a self-signed trust anchor as its own issuer, a
PKCS#10 proof of possession - is not subject to it, because a collision gains
an attacker nothing where only the key holder can sign, and an anchor is
trusted for being in the trust store rather than for its own signature.

A PASSWORD-KEYED CIPHER DERIVES WITH PBKDF2. TstCipher and its relatives
default PBKDFClass to PBKDF2 (RFC 8018) with HMAC-SHA-256 and 131072
iterations, which is what SetKeyPassword uses. Reading data keyed by an earlier
release needs the line in section 8.2.

RANGE AND OVERFLOW CHECKING IS OFF THROUGHOUT THE LIBRARY, in ver.inc.
Overflow checking in particular must be off: several arithmetic routines rely
on wrapping. This is a property of the library's own units and does not change
your project's settings, but it does mean that a build which forces checks on
globally across the library's sources will raise where the code intends to
wrap. Leave the library's own directives alone.

TLS SERVERS REQUEST AND REQUIRE A CLIENT CERTIFICATE BY DEFAULT. If you are
building a server that should accept anonymous clients, turn that off
explicitly.

SSH SERVERS GIVE A CLIENT 120 S TO LOG IN. The SSH server's LoginGraceTime
(milliseconds, default 120000, as in OpenSSH) counts from the moment a
connection is taken on and covers the whole login, host-key confirmation and
password entry included; 0 is no limit. Each connection has a thread of its
own and the number of connections logging in at once is not limited, so
lower it where nobody logs in by hand.

9.2 DECISIONS THAT ARE YOURS
--------------------------------------------------------------------------------

EXPLICIT TRUST. The certificate and host-key callbacks let your application
accept material the library's own validation rejected. When your handler does
that, the result is a trust decision your application made, and the library
carries it out. A grant settles trust and nothing else: a TLS client goes on
to refuse a server certificate, trusted explicitly or not, whose extended key
usage or key usage does not allow its use by a server, or that matches none of
the DNSNameToCheck, IPToCheck and URIToCheck values set for the connection.
Explicit trust is the intended mechanism for pinning, for a private CA reached
out of band, and for first-use host-key acceptance. It is also the single
easiest way to disable authentication completely. Whatever your handler does,
do it on the material in front of it rather than unconditionally.

POST-QUANTUM GROUP SELECTION. The hybrids are on by default, which protects a
session recorded today against a future quantum adversary as far as key
agreement is concerned. Whether long-term confidentiality is a requirement for
your data must be decided case by case. If you cannot decide it for all of your
application's users, make the setting configurable per installation or per
instance rather than choosing for them.

REVOCATION POLICY. Whether a certificate's revocation status must be checked,
whether a missing or unreachable status is fatal, and how stale a CRL may be,
are policy questions the library does not answer for you.

THE AUTOMATIC CRL AND ISSUER-CERTIFICATE FETCH. If a certificate conveys a URL
for its CRL, the CRL is fetched using the library's own platform-independent
HTTP client. The TLS components do this by default, as client and as server,
while they validate a certificate: when OCSP has not settled the certificate's
status and no fresh CRL from its issuer is held, they fetch from the first
http or https address in its CRL distribution points. In the same way, when a
certificate's issuer is not in the store, they fetch the issuer from the
certificate's caIssuers address, and so on up the chain for at most eight
certificates. The handshake waits for the fetch.

The certificate whose extensions drive the fetch can be one a peer has just
presented, and the fetch happens while that certificate is still being
validated, before it is anchored to any trusted root. A peer can therefore
choose a host, port and path that your application contacts. The response
never reaches the peer: a fetched CRL is used only if its signature and
freshness check out, and a fetched issuer only if it is the certificate's
issuer by name and signature. The request is a plain HTTP/1.0 GET. An https
address is fetched over a TLS session from the component marked
IsGlobalServer, and fails if there is none. The response is read until the
server closes the connection, with no limit on its size, and the time limit
applies to each read: the assigned Ocsp component's Timeout, otherwise 15
seconds. Under the default soft-fail policy a fetch that fails does not fail
the validation. A failed issuer address is not tried again for five minutes.

To avoid the CRL fetch, hold a fresh CRL from every CA whose certificates you
validate. RevocationPolicy rpIgnore also stops it, together with revocation
checking itself. No published property turns the issuer fetch off: a peer
that presents a certificate whose issuer you do not hold can make your
application fetch from the address that certificate names.

WHICH ALGORITHMS YOUR POLICY PERMITS. The library implements a wide catalogue,
including algorithms kept for interoperability with obsolete peers. Narrowing it
to what your policy allows is your decision, and beyond the defaults in 9.1 the
library refuses only one thing on your behalf: the signature floor described
there. If you have to read material signed over MD5 or SHA-1 that has no SHA-2
replacement, SelectLegacySignatureHashes turns the floor off and
SelectSignatureHashFloor turns it back on. Both are PROCESS-WIDE and not per
object, so a call to the first one lowers the bar for every verification your
application makes until it calls the second. Turn it off around the read that
needs it, not at startup.

SSH ALGORITHMS. Unlike TLS, SSH has no defaults for you to inherit. Every
cipher, MAC and key-exchange selection on the SSH client and server starts
empty, the host-key offer follows the keys your application loads, and only
compression starts selected, at "none". An SSH endpoint therefore negotiates
nothing until your application selects its algorithms, in the order it prefers
them. SSH.txt section 3 lists what the library registers, in an order that
leads with the post-quantum key exchanges and the AEAD ciphers. It also
registers SHA-1 and CBC names for interoperability with older peers; select
those only for a peer that needs them.

KEY LIFETIME, ROTATION AND STORAGE. Where keys live, how long they live, who
may use them and how they are backed up are yours. A PKCS#11 token keeps a
private key off the machine entirely and is supported for exactly that reason.

9.3 COMPILE-TIME OPT-OUTS
--------------------------------------------------------------------------------

Define these in your project if you need them. Each removes code rather than
switching behaviour at run time.

  ST4_NO_ASM             removes ALL of the library's assembler, on every
                         platform, and with it every other opt-out below. The
                         portable Pascal implementations remain. Use it when
                         your build or your review will not accept hand-written
                         assembler.
  ST4_NO_AVX2            removes the AVX2 arms, including the private
                         information retrieval scan kernel. A Linux64 build
                         then needs no stPirAvx2Func.o - see PIR.txt.
  ST4_NO_LINUX64_AESNI   removes the Linux64 AES-NI path, which is linked from
                         a prebuilt object.
  ST4_NO_AES_CT          removes the constant-time AES implementation. Do not
                         define it without a reason: what runs instead is a
                         table-driven AES, which is not constant time.
  ST4_NO_GHASH_CT        removes the constant-time GHASH, with the same caution.
  ST4_NO_ARM_CRYPTO      removes the ARM cryptographic-extension paths.

On Linux64 a normal build links prebuilt objects - stAESNIFunc.o, stGHashFunc.o
and, where the relevant units are used, stMLKEMAvx2Func.o and stPirAvx2Func.o.
They ship in the same folder as the sources and must be on the object path, or
the link fails rather than falling back. The sources they were assembled from
ship beside them.

================================================================================
10. THE SOFTWARE BILL OF MATERIALS
================================================================================

A CycloneDX 1.6 document is produced for every release, named
StreamSec_Tools_<version>.cdx.json. It carries the release archive's SHA-256,
in the component hash and in the package URL's checksum qualifier, so the
document can be tied to the exact archive it describes.

WHERE TO GET IT. The most recent one is linked from the trial download page at
https://www.streamsec.com/. Since 4.1.4.360 each release's SBOM is also
attached to that release's own changelog entry in the Announcements section of
the support forum, which is where to look for the SBOM of a release that is not
the newest:

    https://support.streamsec.net/forum/?cmd=viewsection&section_id=4

It is short, and that is the point: the library has no dependency on OpenSSL,
on the Windows CryptoAPI, or on any package ecosystem. What it does list is the
small amount of third-party material that is genuinely in the tree, each with
its licence and with a note on whether a normal build links it at all. Which of
these a build contains depends on what your application links and on whether it
uses runtime packages; the reachability notes in that document let you work that
out. What each licence asks is in its own text.

One of them is worth stating here. The CCADB root set compiled into
StreamSec.Mobile.CCADBRoots (used by TsmCCADBTrustAnchors and AddCCADBRoots) is
data from the Common CA Database. LICENSE-CDLA-Permissive-2.0.txt holds the text
of the licence the CCADB names for its data, the Community Data License
Agreement - Permissive, Version 2.0, and the addresses of the sources, among
them the CCADB's own Data Usage Terms. It also says which binaries carry the
certificates. A runtime package built from the supplied StrSecIV<nnn>.dpk, as
in the trials, does, whether or not the application that loads it uses the
component; a package you build yourself does only if it contains the unit (not
measured). What the sources ask, and when, is for you to read in them. What a
trial may be used for is in its LICENSE.RTF and in section 7.

The SBOM is not inside the release archive. It carries the archive's hash, so
it can only exist once the archive does.

================================================================================