Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

HashDERPrefix

function HashDERPrefix(aHash: tHashAlgorithm; out aPrefix: tBytes): Boolean;
The DigestInfo DER prefix for aHash, as PKCS#1 v1.5 requires in front of the digest. Sourced from the library's own hash class, so a hash the library knows how to prefix is usable with CKM_RSA_PKCS without a second table.