CAdESLevelOf
function CAdESLevelOf(aSource: TStream; aSignerIndex: Integer = 0): tCAdESLevel; overload;
CAdESLevelOf reports the baseline level the BYTES reach - what was actually produced, not what was configured. aSignerIndex selects the SignerInfo. Returns calNone for anything that is not a baseline CAdES signature, and for input that is not a CMS SignedData at all.
function CAdESLevelOf(const aCms: OctetString; aSignerIndex: Integer = 0): tCAdESLevel; overload;