Compute a signature value over data in a file.
Public Function sigSignFile ( _ szDataFile As String, _ szKeyFile As String, _ szPassword As String, _ szAlgName As String, _ Optional nOptions As Long = 0 _ ) As String
""
if not required."sha1WithRSAEncryption" "sha224WithRSAEncryption" "sha256WithRSAEncryption" "sha384WithRSAEncryption" "sha512WithRSAEncryption" "md5WithRSAEncryption" "ecdsaWithSHA1" "ecdsaWithSHA224" "ecdsaWithSHA256" "ecdsaWithSHA384" "ecdsaWithSHA512" "RSA-PSS-SHA1" "RSA-PSS-SHA224" "RSA-PSS-SHA256" "RSA-PSS-SHA384" "RSA-PSS-SHA512"
PKI_ENCODE_BASE64URL PKI_ENCODE_HEXOptions for ECDSA signatures only:
PKI_SIG_DETERMINISTIC PKI_SIG_ASN1DEROptions for RSA-PSS signatures only to set the salt length (default =
hLen
):
PKI_PSS_SALTLEN_HLEN PKI_PSS_SALTLEN_MAX PKI_PSS_SALTLEN_20 PKI_PSS_SALTLEN_ZEROand, optionally, add
PKI_MGF_MGF1SHA1
(RSA-PSS only) to force the MGF hash function to be SHA-1 (default = same as signature hash algorithm).