The following table shows the cross-reference between the core VB6/C functions and the .NET methods.
Plus, where relevant, the equivalent VBA wrapper function.
Function | Equivalent .NET Method | VBA Wrapper |
ASN1_TextDump |
Asn1.TextDump Method
|
|
ASN1_TextDumpToString |
Asn1.TextDumpToString Method
|
asn1TextDumpToString |
ASN1_Type |
Asn1.Type Method
|
asn1Type |
CIPHER_Bytes - @deprecated |
Cipher.Encrypt Method (Byte[], Byte[], Byte[], CipherAlgorithm, Mode)
Cipher.Decrypt Method (Byte[], Byte[], Byte[], CipherAlgorithm, Mode)
|
|
CIPHER_DecryptAEAD |
Cipher.DecryptAEAD Method (Byte[], Byte[], Byte[], AeadAlgorithm)
Cipher.DecryptAEAD Method (Byte[], Byte[], Byte[], Byte[], AeadAlgorithm, Cipher.Opts)
|
cipherDecryptAEAD |
CIPHER_DecryptBytes |
Cipher.Decrypt Method (Byte[], Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
|
cipherDecryptBytes |
CIPHER_DecryptHex |
Cipher.Decrypt Method (String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
|
cipherDecryptHex |
CIPHER_EncryptAEAD |
Cipher.EncryptAEAD Method (Byte[], Byte[], Byte[], AeadAlgorithm)
Cipher.EncryptAEAD Method (Byte[], Byte[], Byte[], Byte[], AeadAlgorithm, Cipher.Opts)
|
cipherEncryptAEAD |
CIPHER_EncryptBytes |
Cipher.Encrypt Method (Byte[], Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
|
cipherEncryptBytes |
CIPHER_EncryptHex |
Cipher.Encrypt Method (String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
|
cipherEncryptHex |
CIPHER_File - @deprecated |
Cipher.FileEncrypt Method
Cipher.FileDecrypt Method
|
|
CIPHER_FileDecrypt |
Cipher.FileDecrypt Method (String, String, Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
Cipher.FileDecrypt Method (String, String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
|
cipherFileDecrypt |
CIPHER_FileEncrypt |
Cipher.FileEncrypt Method (String, String, Byte[], Byte[], CipherAlgorithm, Mode, Padding, Cipher.Opts)
Cipher.FileEncrypt Method (String, String, String, String, CipherAlgorithm, Mode, Padding, Cipher.Opts)
|
cipherFileEncrypt |
CIPHER_Hex |
Cipher.Encrypt Method (String, String, String, CipherAlgorithm, Mode)
Cipher.Decrypt Method (String, String, String, CipherAlgorithm, Mode)
|
|
CIPHER_KeyUnwrap |
Cipher.KeyUnwrap Method
|
cipherKeyUnwrap |
CIPHER_KeyWrap |
Cipher.KeyWrap Method
|
cipherKeyWrap |
CMS_GetSigDataDigest |
Cms.GetSigDataDigest Method
|
cmsGetSigDataDigest |
CMS_MakeComprData |
Cms.MakeComprData Method
|
|
CMS_MakeDetachedSig |
Cms.MakeDetachedSig Method
|
|
CMS_MakeEnvData |
Cms.MakeEnvData Method ( String, String, String, CipherAlgorithm, Cms.EnvDataOptions )
Cms.MakeEnvData Method ( String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions, KdfAlg, KeyWrapAlg, String, Int32, Cms.ContentEncrAlg)
|
cmsMakeEnvData |
CMS_MakeEnvDataFromBytes |
Cms.MakeEnvDataFromBytes Method
|
cmsMakeEnvDataFromBytes |
CMS_MakeEnvDataFromString |
Cms.MakeEnvDataFromString Method (String, String, String, CipherAlgorithm, Cms.EnvDataOptions)
Cms.MakeEnvDataFromString Method (String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions, KdfAlg, KeyWrapAlg, String, Int32, Cms.ContentEncrAlg)
|
cmsMakeEnvDataFromString |
CMS_MakeSigData |
Cms.MakeSigData Method ( String, String, String, String, Cms.SigAlg, Cms.SigDataOptions)
Cms.MakeSigData Method ( String, String, String, String, HashAlgorithm, Cms.SigDataOptions)
|
|
CMS_MakeSigDataFromBytes |
Cms.MakeSigDataFromBytes Method
|
cmsMakeSigDataFromBytes |
CMS_MakeSigDataFromSigValue |
Cms.MakeSigDataFromSigValue Method
Cms.MakeSigDataFromPseudo Method
|
cmsMakeSigDataFromSigValue |
CMS_MakeSigDataFromString |
Cms.MakeSigDataFromString Method (String, String, String, String, Cms.SigAlg, Cms.SigDataOptions)
Cms.MakeSigDataFromString Method (String, String, String, String, HashAlgorithm, Cms.SigDataOptions)
|
|
CMS_QueryEnvData |
Cms.QueryEnvData Method
|
cmsQueryEnvData |
CMS_QuerySigData |
Cms.QuerySigData Method
|
cmsQuerySigData |
CMS_ReadComprData |
Cms.ReadComprData Method
|
|
CMS_ReadEnvData |
Cms.ReadEnvDataToFile Method
|
|
CMS_ReadEnvDataToBytes |
Cms.ReadEnvDataToBytes Method
|
cmsReadEnvDataToBytes |
CMS_ReadEnvDataToString |
Cms.ReadEnvDataToString Method
|
cmsReadEnvDataToString |
CMS_ReadSigData |
Cms.ReadSigDataToFile Method
|
|
CMS_ReadSigDataToBytes |
Cms.ReadSigDataToBytes Method
|
cmsReadSigDataToBytes |
CMS_ReadSigDataToString |
Cms.ReadSigDataToString Method
|
cmsReadSigDataToString |
CMS_VerifySigData |
Cms.VerifySigData Method
|
cmsVerifySigData |
CNV_B64Filter |
Cnv.Base64Filter Method
|
cnvB64Filter |
CNV_B64StrFromBytes |
Cnv.ToBase64 Method (Byte[])
Cnv.ToBase64 Method (String)
|
cnvToBase64 |
CNV_Base58FromBytes |
Cnv.ToBase58 Method
|
cnvBase58FromBytes |
CNV_Base58ToBytes |
Cnv.FromBase58 Method
|
cnvBase58ToBytes |
CNV_ByteEncoding |
Cnv.ByteEncoding Method
|
cnvByteEncoding |
CNV_BytesFromB64Str |
Cnv.FromBase64 Method
|
cnvFromBase64 |
CNV_BytesFromHexStr |
Cnv.FromHex Method
|
cnvFromHex |
CNV_CheckUTF8 - @deprecated |
Not applicable in .NET
|
|
CNV_CheckUTF8Bytes |
Cnv.CheckUTF8 Method (Byte[])
|
cnvCheckUTF8Bytes |
CNV_CheckUTF8File |
Cnv.CheckUTF8File Method
|
|
CNV_HexFilter |
Cnv.HexFilter Method
|
cnvHexFilter |
CNV_HexStrFromBytes |
Cnv.ToHex Method
|
cnvToHex |
CNV_Latin1FromUTF8 - @deprecated |
Not applicable in .NET |
|
CNV_Latin1FromUTF8Bytes |
Use System.Text.Encoding.UTF8.GetString(bytes) .
|
cnvLatin1FromUTF8Bytes |
CNV_NumFromBytes |
Cnv.NumFromBytes Method
|
cnvNumFromBytes |
CNV_NumToBytes |
Cnv.NumToBytes Method
|
cnvNumToBytes |
CNV_ReverseBytes |
Cnv.ReverseBytes Method
|
cnvReverseBytes |
CNV_ShortPathName |
Cnv.ShortPathName Method
|
|
CNV_UTF8BytesFromLatin1 |
Use System.Text.Encoding.UTF8.GetBytes(Str) .
|
cnvUTF8BytesFromLatin1 |
CNV_UTF8FromLatin1 - @deprecated |
Not applicable in .NET |
|
COMPR_Compress |
Compr.Compress Method
|
comprCompress |
COMPR_Uncompress |
Compr.Uncompress Method
|
comprUncompress |
ECC_DHSharedSecret |
Ecc.DHSharedSecret Method
|
eccDHSharedSecret |
ECC_KeyHashCode |
Ecc.KeyHashCode Method
|
eccKeyHashCode |
ECC_MakeKeys |
Ecc.MakeKeys Method
|
eccMakeKeys |
ECC_PublicKeyFromPrivate |
Ecc.PublicKeyFromPrivate Method
|
eccPublicKeyFromPrivate |
ECC_QueryKey |
Ecc.QueryKey Method
|
eccQueryKey |
ECC_ReadKeyByCurve |
Ecc.ReadKeyByCurve Method
|
eccReadKeyByCurve |
ECC_ReadPrivateKey |
Ecc.ReadPrivateKey Method
|
eccReadPrivateKey |
ECC_ReadPublicKey |
Ecc.ReadPublicKey Method
|
eccReadPublicKey |
ECC_SaveEncKey |
Ecc.SaveEncKey Method
|
eccSaveEncKey |
ECC_SaveKey |
Ecc.SaveKey Method
|
eccSaveKey |
HASH_Bytes |
Hash.BytesFromBytes Method
Hash.Double Method
|
hashBytes |
HASH_File |
Hash.BytesFromFile Method
|
hashFile |
HASH_HexFromBytes |
Hash.HexFromBytes Method
Hash.HexFromString Method
|
hashHexFromBytes |
HASH_HexFromFile |
Hash.HexFromFile Method
Hash.HexFromTextFile Method
|
hashHexFromFile |
HASH_HexFromHex |
Hash.HexFromHex Method
|
hashHexFromHex |
HASH_Length |
Hash.Length Method
|
hashLength |
HMAC_Bytes |
Hmac.BytesFromBytes Method
|
hmacBytes |
HMAC_HexFromBytes |
Hmac.HexFromBytes Method
|
hmacHexFromBytes |
HMAC_HexFromHex |
Hmac.HexFromHex Method
|
hmacHexFromHex |
KDF_Bytes |
Kdf.Bytes Method
|
kdfBytes |
HPKE_DerivePrivateKey |
Hpke.DerivePrivateKey Method
|
hpkeDerivePrivateKey |
HPKE_LabeledExpand |
Hpke.LabeledExpand Method
|
hpkeLabeledExpand |
HPKE_LabeledExtract |
Hpke.LabeledExtract Method
|
hpkeLabeledExtract |
KDF_ForCms |
Kdf.ForCms Method
|
kdfForCms |
OCSP_MakeRequest |
Ocsp.MakeRequest Method
|
ocspMakeRequest |
OCSP_ReadResponse |
Ocsp.ReadResponse Method
|
ocspReadResponse |
PAD_BytesBlock |
Cipher.Pad Method
|
padBytesBlock |
PAD_HexBlock |
Cipher.Pad Method (String, CipherAlgorithm, Padding)
|
padHexBlock |
PAD_UnpadBytes |
Cipher.Unpad Method (Byte[], CipherAlgorithm, Padding)
|
padUnpadBytes |
PAD_UnpadHex |
Cipher.Pad Method (String, CipherAlgorithm, Padding)
|
padUnpadHex |
PBE_Kdf2 |
Pbe.Kdf2 Method (Int32, Byte[], Byte[], Int32, HashAlgorithm)
|
pbeKdf2 |
PBE_Kdf2Hex |
Pbe.Kdf2 Method (Int32, String, String, Int32, HashAlgorithm)
|
pbeKdf2Hex |
PBE_Scrypt |
Pbe.Scrypt Method
|
pbeScrypt |
PBE_ScryptHex |
Pbe.Scrypt Method
|
pbeScryptHex |
PEM_FileFromBinFile
PEM_FileFromBinFileEx
|
Pem.FileFromBinFile Method Pem.FileFromBinFile Method
|
|
PEM_FileToBinFile |
Pem.FileToBinFile Method
|
|
PFX_MakeFile |
Pfx.MakeFile Method
|
pfxMakeFile |
PFX_VerifySig |
Pfx.SignatureIsValid Method
|
|
PKI_CompileTime |
General.CompileTime Method
|
pkiCompileTime |
PKI_ErrorCode |
General.ErrorCode Method
|
pkiErrorCode
|
PKI_ErrorLookup |
General.ErrorLookup Method
|
pkiErrorLookup
|
PKI_FormatErrorMessage |
General.FormatErrorMessage Method
|
errFormatErrorMessage
|
PKI_LastError |
General.LastError Method
|
pkiLastError
|
PKI_LicenceType |
General.LicenceType Method
|
pkiLicenceType |
PKI_ModuleInfo |
General.ModuleInfo Method
|
pkiModuleInfo |
PKI_ModuleName |
General.ModuleName Method
|
pkiModuleName |
PKI_Platform |
General.Platform Method
|
pkiPlatform |
PKI_PowerUpTests |
General.PowerUpTests Method
|
|
PKI_Version |
General.Version Method
|
pkiVersion |
PRF_Bytes |
Prf.Bytes Method
|
prfBytes |
PWD_Prompt
PWD_PromptEx
|
Pwd.Prompt Method
|
pwdPrompt |
RNG_Bytes |
Rng.Bytes Method (Int32)
Rng.Bytes Method (Int32, Byte)
Rng.Bytes Method (Int32, String)
|
rngBytes |
RNG_BytesWithPrompt |
Rng.BytesWithPrompt Method (Int32, Rng.Strength)
Rng.BytesWithPrompt Method (Int32, String, Rng.Strength)
|
|
RNG_Guid |
Rng.Guid Method
|
rngGuid |
RNG_Initialize |
Rng.Initialize Method
Rng.InitializeEx Method
|
rngInitialize
rngInitializeEx
|
RNG_MakeSeedFile |
Rng.MakeSeedFile Method
|
|
RNG_Number |
Rng.Number Method
Rng.Octet Method
|
|
RNG_String - @deprecated |
Not applicable |
|
RNG_StringWithPrompt - @deprecated |
Not applicable |
|
RNG_Test |
Rng.Test Method
|
|
RNG_TestDRBGVS |
Rng.TestDrbgvs Method
|
|
RNG_UpdateSeedFile |
Rng.UpdateSeedFile Method
|
|
RSA_CheckKey |
Rsa.CheckKey Method (String)
Rsa.CheckKey Method (StringBuilder)
|
|
RSA_DecodeMsg |
Rsa.DecodeMsgForEncryption Method
Rsa.DecodeDigestForSignature Method
Rsa.DecodeMsgIso9796 Method
|
rsaDecodeMsg |
RSA_Decrypt |
Rsa.Decrypt Method
|
rsaDecrypt |
RSA_EncodeMsg |
Rsa.EncodeMsgForEncryption Method
Rsa.EncodeMsgForSignature Method
Rsa.EncodeDigestForSignature Method
Rsa.EncodeMsgIso9796 Method
|
rsaEncodeMsg |
RSA_Encrypt |
Rsa.Encrypt Method
|
rsaEncrypt |
RSA_FromXMLString |
Rsa.FromXMLString Method (String)
Rsa.FromXMLString Method (String, Rsa.XmlOptions)
Rsa.FromXMLString Method (String, Boolean)
|
rsaFromXMLString |
RSA_GetPrivateKeyFromPFX |
Rsa.GetPrivateKeyFromPFX Method
|
|
RSA_GetPublicKeyFromCert - @deprecated |
Rsa.GetPublicKeyFromCert Method - @deprecated
|
|
RSA_KeyBits |
Rsa.KeyBits Method (String)
Rsa.KeyBits Method (StringBuilder)
|
rsaKeyBits |
RSA_KeyBytes |
Rsa.KeyBytes Method (String)
Rsa.KeyBytes Method (StringBuilder)
|
rsaKeyBytes |
RSA_KeyHashCode |
Rsa.KeyHashCode Method (String)
Rsa.KeyHashCode Method (StringBuilder)
|
|
RSA_KeyMatch |
Rsa.KeyMatch Method (String)
Rsa.KeyMatch Method (StringBuilder)
|
|
RSA_KeyValue |
Rsa.KeyValue Method
|
rsaKeyValue |
RSA_MakeKeys - @deprecated |
Rsa.MakeKeys Method (String, String, Int32, Rsa.PublicExponent, Int32, String, Rsa.PbeOptions, Boolean, Byte[])
Rsa.MakeKeys Method (String, String, Int32, Rsa.PublicExponent, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format, Boolean)
|
rsaMakeKeys |
RSA_MakeKeysXtd |
Rsa.MakeKeys Method (String, String, String, Int32, Rsa.PublicExponent, Rsa.PbeOptions, String, Rsa.Format, Boolean)
|
rsaMakeKeys |
RSA_PublicKeyFromPrivate |
Rsa.PublicKeyFromPrivate Method
|
rsaPublicKeyFromPrivate |
RSA_RawPrivate |
Rsa.RawPrivate Method (Byte[], String)
Rsa.RawPrivate Method (Byte[], String, Int32)
|
rsaRawPrivate |
RSA_RawPublic |
Rsa.RawPublic Method (Byte[], String)
Rsa.RawPublic Method (Byte[], String, Int32)
|
rsaRawPublic |
RSA_ReadAnyPrivateKey |
Rsa.ReadPrivateKey Method
|
rsaReadPrivateKey
rsaReadAnyPrivateKey
|
RSA_ReadAnyPublicKey |
Rsa.ReadPublicKey Method
|
rsaReadPublicKey
rsaReadAnyPublicKey
|
RSA_ReadEncPrivateKey - @deprecated |
Rsa.ReadEncPrivateKey Method - @deprecated
|
|
RSA_ReadPrivateKeyFromPFX - @deprecated |
Rsa.ReadPrivateKeyFromPFX Method - @deprecated
|
|
RSA_ReadPrivateKeyInfo - @deprecated |
Rsa.ReadPrivateKeyInfo Method - @deprecated
|
|
RSA_ReadPublicKey - @deprecated |
Rsa.ReadPublicKey Method
|
rsaReadPublicKey |
RSA_SaveEncKey |
Rsa.SaveEncKey Method
|
rsaSaveEncKey |
RSA_SaveEncPrivateKey |
Rsa.SaveEncPrivateKey Method (String, String, Int32, String, Rsa.PbeOptions, Rsa.Format)
Rsa.SaveEncPrivateKey Method (String, String, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format)
|
rsaSaveEncKey |
RSA_SavePrivateKeyInfo |
Rsa.SavePrivateKeyInfo Method
|
rsaSaveKey |
RSA_SavePublicKey |
Rsa.SavePublicKey Method
|
rsaSaveKey |
RSA_ToXMLString
|
Rsa.ToXMLString Method (String, Rsa.XmlOptions)
|
rsaToXMLString |
RSA_ToXMLStringEx
|
Rsa.ToXMLString Method (String, String, Rsa.XmlOptions)
|
rsaToXMLStringEx |
SIG_SignData |
Sig.SignData Method
Sig.SignDigest Method
|
sigSignData |
SIG_SignFile |
Sig.SignFile Method
|
sigSignFile |
SIG_VerifyData |
Sig.VerifyData Method
Sig.VerifyDigest Method
|
sigVerifyData |
SIG_VerifyFile |
Sig.VerifyFile Method (String, String, String, SigAlgorithm, Sig.VerifyOpts)
|
|
SMIME_Extract |
Smime.Extract Method
|
|
SMIME_Query |
Smime.Query Method
|
smimeQuery |
SMIME_Wrap |
Smime.Wrap Method
|
|
TDEA_B64Mode |
Tdea.Encrypt Method (String, String, Mode, String, EncodingBase)
Tdea.Decrypt Method (String, String, Mode, String, EncodingBase)
|
|
TDEA_BytesMode |
Tdea.Encrypt Method (Byte[], Byte[], Mode, Byte[])
Tdea.Decrypt Method (Byte[], Byte[], Mode, Byte[])
|
|
TDEA_File |
Tdea.FileEncrypt Method (String, String, Byte[], Mode, Byte[])
Tdea.FileDecrypt Method (String, String, Byte[], Mode, Byte[])
|
|
TDEA_HexMode |
Tdea.Encrypt Method (String, String, Mode, String)
Tdea.Decrypt Method (String, String, Mode, String)
|
|
WIPE_Data |
Wipe.Data Method
Wipe.String Method
|
wipeBytes
wipeString
|
WIPE_File |
Wipe.File Method
|
|
X509_CertExpiresOn |
X509.CertExpiresOn Method
|
|
X509_CertIssuedOn |
X509.CertIssuedOn Method
|
|
X509_CertIssuerName |
X509.CertIssuerName Method
|
|
X509_CertIsValidNow |
X509.CertIsValidNow Method
|
|
X509_CertRequest |
X509.CertRequest Method
|
|
X509_CertSerialNumber |
X509.CertSerialNumber Method
|
|
X509_CertSubjectName |
X509.CertSubjectName Method
|
|
X509_CertThumb |
X509.CertThumb Method
|
x509CertThumb |
X509_CheckCertInCRL |
X509.CheckCertInCRL Method
|
|
X509_GetCertCountInP7Chain |
X509.GetCertCountInP7Chain Method
|
|
X509_GetCertFromP7Chain |
X509.GetCertFromP7Chain Method
|
|
X509_GetCertFromPFX |
X509.GetCertFromPFX Method
X509.GetP7ChainFromPFX Method
|
|
X509_HashIssuerAndSN |
X509.HashIssuerAndSN Method
|
x509HashIssuerAndSN |
X509_KeyUsageFlags |
X509.KeyUsageFlags Method
|
|
X509_MakeCert |
X509.MakeCert Method
|
|
X509_MakeCertSelf |
X509.MakeCertSelf Method
|
|
X509_MakeCRL |
X509.MakeCRL Method
|
|
X509_QueryCert |
X509.QueryCert Method
|
x509QueryCert |
X509_ReadCertStringFromP7Chain |
X509.ReadCertStringFromP7Chain Method
|
x509ReadCertStringFromP7Chain |
X509_ReadCertStringFromPFX |
X509.ReadCertStringFromPFX Method
|
x509ReadCertStringFromPFX |
X509_ReadStringFromFile |
X509.ReadStringFromFile Method
|
x509ReadStringFromFile |
X509_SaveFileFromString |
X509.SaveFileFromString Method
|
|
X509_TextDump |
X509.TextDump Method
|
|
X509_TextDumpToString |
X509.TextDumpToString Method
|
x509TextDumpToString |
X509_ValidatePath |
X509.ValidatePath Method
|
|
X509_VerifyCert |
X509.VerifyCert Method
|
|
XOF_Bytes |
Xof.Bytes Method
|
xofBytes |