ExtendToLT
function ExtendToLT(aSource, aDest: TStream; const aMaterial: tAdESValidationMaterial; out aError: string; aSignerIndex: Integer = 0): Boolean;
ExtendToLT raises an existing CMS signature to CAdES B-LT by adding the certificate-values and revocation-values UNSIGNED attributes. The signature itself is untouched, so it stays valid.
EN 319 122-1 permits at most one certificate-values and one revocation-values, so a signature that already carries either is REFUSED rather than given a second copy - a duplicate encodes perfectly well and is then rejected by every validator. Returns False and sets aError for that, and when the input is not a CMS SignedData, when the material is empty, or when an OCSPResponse cannot be unwrapped.