EncodingType Enumeration
This enumeration contains string formats used in CryptoAPI. See remarks for string formats examples.
Namespace: SysadminsLV.Asn1ParserAssembly: SysadminsLV.Asn1Parser (in SysadminsLV.Asn1Parser.dll) Version: 1.2.11
Public Enumeration EncodingType
public enum class EncodingType
The following section displays example string formats.
Base64Header-----BEGIN CERTIFICATE-----
MIIEITCCA+CgAwIBAgIUKMmxmDbjbHqt+Yzwj5lflBxuQwEwCQYHKoZIzjgEAzAjMSEwHwYDVQQD
ExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTIxMTE2MTgzODMwWhcNMTIxMTIzMTgzODMw
WjAtMSswKQYDVQQDHiIAYgBiADEANAAxADkAYQAyAGMAZgBjADEAZQAwADAAOAAAMIGfMA0GCSqG
<...>
-----END CERTIFICATE-----
Base64MIIEITCCA+CgAwIBAgIUKMmxmDbjbHqt+Yzwj5lflBxuQwEwCQYHKoZIzjgEAzAjMSEwHwYDVQQD
ExhUb2tlbiBTaWduaW5nIFB1YmxpYyBLZXkwHhcNMTIxMTE2MTgzODMwWhcNMTIxMTIzMTgzODMw
WjAtMSswKQYDVQQDHiIAYgBiADEANAAxADkAYQAyAGMAZgBjADEAZQAwADAAOAAAMIGfMA0GCSqG
<...>
Base64RequestHeader-----BEGIN NEW CERTIFICATE REQUEST-----
MIIDBjCCAm8CAQAwcTERMA8GA1UEAxMIcXV1eC5jb20xDzANBgNVBAsTBkJyYWlu
czEWMBQGA1UEChMNRGV2ZWxvcE1lbnRvcjERMA8GA1UEBxMIVG9ycmFuY2UxEzAR
BgNVBAgTCkNhbGlmb3JuaWExCzAJBgNVBAYTAlVTMIGfMA0GCSqGSIb3DQEBAQUA
<...>
-----END NEW CERTIFICATE REQUEST-----
Hex3a 20 63 65 72 74 6c 69 62 5c 6c 64 61 70 2e 63
70 70 28 32 31 33 31 29 3a 20 6c 64 61 70 65 72
<...>
HexAscii3a 20 63 65 72 74 6c 69 62 5c 6c 64 61 70 2e 63 : certlib\ldap.c
70 70 28 32 31 33 31 29 3a 20 6c 64 61 70 65 72 pp(2131): ldaper
<...>
Base64CrlHeader-----BEGIN X509 CRL-----
MIIDBjCCAm8CAQAwcTERMA8GA1UEAxMIcXV1eC5jb20xDzANBgNVBAsTBkJyYWlu
czEWMBQGA1UEChMNRGV2ZWxvcE1lbnRvcjERMA8GA1UEBxMIVG9ycmFuY2UxEzAR
BgNVBAgTCkNhbGlmb3JuaWExCzAJBgNVBAYTAlVTMIGfMA0GCSqGSIb3DQEBAQUA
<...>
-----END X509 CRL-----
HexAddress0000 3a 20 63 65 72 74 6c 69 62 5c 6c 64 61 70 2e 63
0010 70 70 28 32 31 33 31 29 3a 20 6c 64 61 70 65 72
<...>
HexAsciiAddress0000 3a 20 63 65 72 74 6c 69 62 5c 6c 64 61 70 2e 63 : certlib\ldap.c
0010 70 70 28 32 31 33 31 29 3a 20 6c 64 61 70 65 72 pp(2131): ldaper
<...>
HexRaw3a20636572746c69625c6c6461702e6370702832313331293a206c6461706572<...>
Base64Header | 0 |
Base64, with certificate beginning and ending headers.
This enumeration value is identical to PemCert value.
|
Base64 | 1 |
Base64, without headers.
|
Binary | 2 |
Pure binary copy.
|
Base64RequestHeader | 3 |
The string is base64 encoded with beginning and ending certificate request headers.
This enumeration value is identical to PemNewReq value.
|
Hex | 4 |
Hexadecimal only format.
|
HexAscii | 5 |
Hexadecimal format with ASCII character display.
|
Base64Any | 6 |
Tries the following, in order:
BinaryToString method do not support this flag.
|
StringAny | 7 |
Tries the following, in order:
BinaryToString method do not support this flag.
|
HexAny | 8 | - HexAddress
- HexAsciiAddress
- Hex
- HexRaw
- HexAscii
BinaryToString method do not support this flag.
|
Base64CrlHeader | 9 |
Base64, with X.509 certificate revocation list (CRL) beginning and ending headers.
|
HexAddress | 10 |
Hex, with address display.
|
HexAsciiAddress | 11 |
Hex, with ASCII character and address display.
|
HexRaw | 12 |
A raw hexadecimal string.
|
PemCert | 21 |
Base64, with trusted certificate beginning and ending headers.
This enumeration value is identical to Base64Header value.
|
PemTrustedCert | 22 |
Base64, with trusted certificate beginning and ending headers.
|
PemNewReq | 23 |
Base64, with new certificate request beginning and ending headers.
This enumeration value is identical to Base64RequestHeader value.
|
PemReq | 24 |
Base64, with certificate request beginning and ending headers.
|
PemEvpPrivateKey | 26 |
Base64, with envelope (EnVeloPe) beginning and ending headers.
|
PemPublicKey | 27 |
Base64, with public key beginning and ending headers.
|
PemRsaPrivateKey | 28 |
Base64, with RSA private key beginning and ending headers.
|
PemRsaPublicKey | 29 |
Base64, with RSA public key beginning and ending headers.
|
PemDsaPrivateKey | 30 |
Base64, with DSA private key beginning and ending headers.
|
PemDsaPublicKey | 31 |
Base64, with DSA public key beginning and ending headers.
|
PemPkcs7 | 32 |
Base64, with PKCS#7 beginning and ending headers.
|
PemPkcs7Signed | 33 |
Base64, with signed PKCS#7 public key beginning and ending headers.
|
PemPkcs8Encrypted | 34 |
Base64, with encrypted PKCS#8 private key beginning and ending headers.
|
PemPkcs8Inf | 35 |
Base64, with unencrypted PKCS#8 private key beginning and ending headers.
|
PemDHParams | 36 |
Base64, with Diffie-Hellman (DH) parameters beginning and ending headers.
|
PemDHXParams | 37 |
Base64, with X9.42 Diffie-Hellman (DH) beginning and ending headers.
|
PemSSLSessionParams | 38 |
Base64, with SSL session parameters beginning and ending headers.
|
PemDsaParams | 38 |
Base64, with DSA parameters beginning and ending headers.
|
PemECDsaPublicKey | 40 |
Base64, with ECDSA public key beginning and ending headers.
|
PemECParams | 41 |
Base64, with EC parameters beginning and ending headers.
|
PemECPrivateKey | 42 |
Base64, with ECDSA private key beginning and ending headers.
|
PemParams | 43 |
Base64, with parameters beginning and ending headers.
|
PemCms | 44 |
Base64, with cryptographic message syntax (CMS) beginning and ending headers.
|