The following table shows the cross-reference between the core VB6/C functions and the .NET methods.
| Function | Equivalent .NET Method |
CIPHER_Bytes |
Cipher.Encrypt Method (Byte[], Byte[], Byte[], CipherAlgorithm, Mode)
Cipher.Decrypt Method (Byte[], Byte[], Byte[], CipherAlgorithm, Mode)
|
CIPHER_File |
Cipher.FileEncrypt Method (String, String, Byte[], Byte[], CipherAlgorithm, Mode)
Cipher.FileDecrypt Method (String, String, Byte[], Byte[], CipherAlgorithm, Mode)
|
CIPHER_Hex |
Cipher.Encrypt Method (String, String, String, CipherAlgorithm, Mode)
Cipher.Decrypt Method (String, String, String, CipherAlgorithm, Mode)
|
CIPHER_KeyWrap |
Cipher.KeyWrap Method
|
CIPHER_KeyUnwrap |
Cipher.KeyUnwrap Method
|
CMS_GetSigDataDigest |
Cms.GetSigDataDigest Method
|
CMS_MakeDetachedSig |
Cms.MakeDetachedSig Method
|
CMS_MakeEnvData |
Cms.MakeEnvData Method ( String, String, String, Cms.Options )
Cms.MakeEnvData Method ( String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions )
|
CMS_MakeEnvDataFromString |
Cms.MakeEnvDataFromString Method (String, String, String, Cms.Options)
Cms.MakeEnvDataFromString Method (String, String, String, CipherAlgorithm, Cms.KeyEncrAlgorithm, HashAlgorithm, Cms.EnvDataOptions)
|
CMS_MakeSigData |
Cms.MakeSigData Method
|
CMS_MakeSigDataFromSigValue |
Cms.MakeSigDataFromSigValue Method
|
CMS_MakeSigDataFromString |
Cms.MakeSigDataFromString Method
|
CMS_QueryEnvData |
Cms.QueryEnvData Method
|
CMS_QuerySigData |
Cms.QuerySigData Method
|
CMS_ReadEnvData |
Cms.ReadEnvDataToFile Method
|
CMS_ReadEnvDataToString |
Cms.ReadEnvDataToString Method
|
CMS_ReadSigData |
Cms.ReadSigDataToFile Method
|
CMS_ReadSigDataToString |
Cms.ReadSigDataToString Method
|
CMS_VerifySigData |
Cms.VerifySigData Method
|
CNV_B64Filter |
Cnv.Base64Filter Method
|
CNV_B64StrFromBytes |
Cnv.ToBase64 Method (Byte[])
|
CNV_ByteEncoding |
Cnv.ByteEncoding Method
|
CNV_BytesFromB64Str |
Cnv.FromBase64 Method
|
CNV_BytesFromHexStr |
Cnv.FromHex Method
|
CNV_CheckUTF8 - deprecated |
Cnv.CheckUTF8 Method (String) - deprecated
|
CNV_CheckUTF8Bytes |
Cnv.CheckUTF8 Method (Byte[])
|
CNV_HexFilter |
Cnv.HexFilter Method
|
CNV_HexStrFromBytes |
Cnv.ToHex Method
|
CNV_Latin1FromUTF8 - deprecated |
Not applicable in .NET |
CNV_Latin1FromUTF8Bytes |
Use System.Text.Encoding.UTF8.GetString(bytes).
|
CNV_UTF8FromLatin1 - deprecated |
Not applicable in .NET |
CNV_UTF8BytesFromLatin1 |
Use System.Text.Encoding.UTF8.GetBytes(Str).
|
HASH_Bytes |
Hash.BytesFromBytes Method
|
HASH_File |
Hash.BytesFromFile Method
|
HASH_HexFromBytes |
Hash.HexFromBytes Method
|
HASH_HexFromFile |
Hash.HexFromFile Method
|
HASH_HexFromHex |
Hash.HexFromHex Method
|
HMAC_Bytes |
Hmac.BytesFromBytes Method
|
HMAC_HexFromBytes |
Hmac.HexFromBytes Method
|
HMAC_HexFromHex |
Hmac.HexFromHex Method
|
OCSP_MakeRequest |
Ocsp.MakeRequest Method
|
OCSP_ReadResponse |
Ocsp.ReadResponse Method
|
PAD_BytesBlock |
Cipher.Pad Method (Byte[], CipherAlgorithm)
|
PAD_HexBlock |
Cipher.Pad Method (String, CipherAlgorithm)
|
PAD_UnpadBytes |
Cipher.Unpad Method (Byte[], CipherAlgorithm)
|
PAD_UnpadHex |
Cipher.Pad Method (String, CipherAlgorithm)
|
PEM_FileFromBinFile |
Pem.FileFromBinFile Method
|
PEM_FileToBinFile |
Pem.FileToBinFile Method
|
PFX_MakeFile |
Pfx.MakeFile Method
|
PFX_VerifySig |
Pfx.SignatureIsValid Method
|
PKI_CompileTime |
General.CompileTime Method
|
PKI_ErrorCode |
General.ErrorCode Method
|
PKI_ErrorLookup |
General.ErrorLookup Method
|
PKI_LastError |
General.LastError Method
|
PKI_LicenceType |
General.LicenceType Method
|
PKI_ModuleName |
General.ModuleName Method
|
PKI_PowerUpTests |
General.PowerUpTests Method
|
PKI_Version |
General.Version Method
|
PWD_Prompt |
Pwd.Prompt Method (Int32, String)
|
PWD_PromptEx |
Pwd.Prompt Method (Int32, String, String)
|
RNG_Bytes |
Rng.Bytes Method (Int32)
Rng.Bytes Method (Int32, Byte)
Rng.Bytes Method (Int32, String)
|
RNG_BytesWithPrompt |
Rng.BytesWithPrompt Method (Int32)
Rng.BytesWithPrompt Method (Int32, String, Rng.Strength)
|
RNG_Initialize |
Rng.Initialize Method
|
RNG_MakeSeedFile |
Rng.MakeSeedFile Method
|
RNG_Number |
Rng.Number Method
|
RNG_String |
Not applicable |
RNG_StringWithPrompt |
Not applicable |
RNG_Test |
Rng.Test Method
|
RNG_UpdateSeedFile |
Rng.UpdateSeedFile Method
|
RSA_CheckKey |
Rsa.CheckKey Method (String)
Rsa.CheckKey Method (StringBuilder)
|
RSA_DecodeMsg |
Rsa.DecodeMsgForEncryption Method
Rsa.DecodeDigestForSignature Method (Byte[], Boolean)
|
RSA_EncodeMsg |
Rsa.EncodeMsgForEncryption Method
Rsa.EncodeMsgForSignature Method
Rsa.EncodeDigestForSignature Method
|
RSA_FromXMLString |
Rsa.FromXMLString Method
|
RSA_GetPrivateKeyFromPFX |
Rsa.GetPrivateKeyFromPFX Method
|
RSA_GetPublicKeyFromCert |
Rsa.GetPublicKeyFromCert Method
|
RSA_KeyBits |
Rsa.KeyBits Method (String)
Rsa.KeyBits Method (StringBuilder)
|
RSA_KeyBytes |
Rsa.KeyBytes Method (String)
Rsa.KeyBytes Method (StringBuilder)
|
RSA_KeyHashCode |
Rsa.KeyHashCode Method (String)
Rsa.KeyHashCode Method (StringBuilder)
|
RSA_KeyMatch |
Rsa.KeyMatch Method (String)
Rsa.KeyMatch Method (StringBuilder)
|
RSA_MakeKeys |
Rsa.MakeKeys Method (String, String, Int32, Rsa.PublicExponent, Int32, String, Rsa.PbeOptions, Boolean)
Rsa.MakeKeys Method (String, String, Int32, Rsa.PublicExponent, Int32, String, Rsa.PbeOptions, Boolean)
Rsa.MakeKeys Method (String, String, Int32, Rsa.PublicExponent, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format, Boolean)
|
RSA_RawPrivate |
Rsa.RawPrivate Method (Byte[], String)
Rsa.RawPrivate Method (Byte[], String, Int32)
|
RSA_RawPublic |
Rsa.RawPublic Method (Byte[], String)
Rsa.RawPublic Method (Byte[], String, Int32)
|
RSA_ReadEncPrivateKey |
Rsa.ReadEncPrivateKey Method
|
RSA_ReadPrivateKeyInfo |
Rsa.ReadPrivateKeyInfo Method
|
RSA_ReadPublicKey |
Rsa.ReadPublicKey Method
|
RSA_SaveEncPrivateKey |
Rsa.SaveEncPrivateKey Method (String, String, Int32, String, Rsa.PbeOptions, Rsa.Format)
Rsa.SaveEncPrivateKey Method (String, String, Int32, String, CipherAlgorithm, HashAlgorithm, Rsa.Format)
|
RSA_SavePrivateKeyInfo |
Rsa.SavePrivateKeyInfo Method
|
RSA_SavePublicKey |
Rsa.SavePublicKey Method
|
RSA_ToXMLString |
Rsa.ToXMLString 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_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
|
X509_CheckCertInCRL |
X509.CheckCertInCRL Method
|
X509_GetCertFromP7Chain |
X509.GetCertFromP7Chain Method
|
X509_GetCertFromPFX |
X509.GetCertFromPFX Method
|
X509_HashIssuerAndSN |
X509.HashIssuerAndSN Method
|
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 (String, String)
X509.QueryCert Method (String, String, X509.Options)
|
X509_ReadStringFromFile |
X509.ReadStringFromFile Method
|
X509_SaveFileFromString |
X509.SaveFileFromString Method
|
X509_TextDump |
X509.TextDump Method
|
X509_ValidatePath |
X509.ValidatePath Method (String)
X509.ValidatePath Method (String, String, Boolean)
|
X509_VerifyCert |
X509.VerifyCert Method
|