📄 ssl-pkix.erl
字号:
'dec_title'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_X520Title'(Tlv, []).%%================================%% dnQualifier%%================================'enc_dnQualifier'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_X520dnQualifier'(Val, [<<19>>]).'dec_dnQualifier'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_X520dnQualifier'(Tlv, [19]).%%================================%% countryName%%================================'enc_countryName'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_X520countryName'(Val, [<<19>>]).'dec_countryName'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_X520countryName'(Tlv, [19]).%%================================%% serialNumber%%================================'enc_serialNumber'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_X520SerialNumber'(Val, [<<19>>]).'dec_serialNumber'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_X520SerialNumber'(Tlv, [19]).%%================================%% pseudonym%%================================'enc_pseudonym'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_X520Pseudonym'(Val, []).'dec_pseudonym'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_X520Pseudonym'(Tlv, []).%%================================%% domainComponent%%================================'enc_domainComponent'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_DomainComponent'(Val, [<<22>>]).'dec_domainComponent'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_DomainComponent'(Tlv, [22]).%%================================%% emailAddress%%================================'enc_emailAddress'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_EmailAddress'(Val, [<<22>>]).'dec_emailAddress'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_EmailAddress'(Tlv, [22]).%%================================%% dsa%%================================'enc_dsa'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_Dss-Parms'(Val, [<<48>>]);'enc_dsa'('PublicKeyType', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_DSAPublicKey'(Val, [<<2>>]).'dec_dsa'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_Dss-Parms'(Tlv, [16]);'dec_dsa'('PublicKeyType', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_DSAPublicKey'(Tlv, [2]).%%================================%% dsa-with-sha1%%================================'enc_dsa-with-sha1'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]).'dec_dsa-with-sha1'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]).%%================================%% md2-with-rsa-encryption%%================================'enc_md2-with-rsa-encryption'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]).'dec_md2-with-rsa-encryption'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]).%%================================%% md5-with-rsa-encryption%%================================'enc_md5-with-rsa-encryption'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]).'dec_md5-with-rsa-encryption'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]).%%================================%% sha1-with-rsa-encryption%%================================'enc_sha1-with-rsa-encryption'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]).'dec_sha1-with-rsa-encryption'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]).%%================================%% rsa-encryption%%================================'enc_rsa-encryption'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]);'enc_rsa-encryption'('PublicKeyType', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_RSAPublicKey'(Val, [<<48>>]).'dec_rsa-encryption'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]);'dec_rsa-encryption'('PublicKeyType', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_RSAPublicKey'(Tlv, [16]).%%================================%% dh%%================================'enc_dh'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_DomainParameters'(Val, [<<48>>]);'enc_dh'('PublicKeyType', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_DHPublicKey'(Val, [<<2>>]).'dec_dh'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_DomainParameters'(Tlv, [16]);'dec_dh'('PublicKeyType', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_DHPublicKey'(Tlv, [2]).%%================================%% kea%%================================'enc_kea'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_KEA-Parms-Id'(Val, [<<4>>]);'enc_kea'('PublicKeyType', Val, _RestPrimFieldName) -> 'enc_KEA-PublicKey'(Val, [<<2>>]).'dec_kea'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_KEA-Parms-Id'(Tlv, [4]);'dec_kea'('PublicKeyType', Bytes,_) -> Tlv = tlv_format(Bytes), 'dec_KEA-PublicKey'(Tlv, [2]).%%================================%% ecdsa-with-sha1%%================================'enc_ecdsa-with-sha1'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]).'dec_ecdsa-with-sha1'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]).%%================================%% field-prime-field%%================================'enc_field-prime-field'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_Prime-p'(Val, [<<2>>]).'dec_field-prime-field'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_Prime-p'(Tlv, [2]).%%================================%% field-characteristic-two%%================================'enc_field-characteristic-two'('Type', Val, _RestPrimFieldName) -> 'enc_Characteristic-two'(Val, [<<48>>]).'dec_field-characteristic-two'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'dec_Characteristic-two'(Tlv, [16]).%%================================%% gn-basis%%================================'enc_gn-basis'('Type', Val, _RestPrimFieldName) ->?RT_BER:encode_null(Val, [<<5>>]).'dec_gn-basis'('Type', Bytes,_) -> Tlv = tlv_format(Bytes),?RT_BER:decode_null(Tlv,[5]).%%================================%% tp-basis%%================================'enc_tp-basis'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_Trinomial'(Val, [<<2>>]).'dec_tp-basis'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_Trinomial'(Tlv, [2]).%%================================%% pp-basis%%================================'enc_pp-basis'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_Pentanomial'(Val, [<<48>>]).'dec_pp-basis'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_Pentanomial'(Tlv, [16]).%%================================%% ec-public-key%%================================'enc_ec-public-key'('Type', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_EcpkParameters'(Val, []);'enc_ec-public-key'('PublicKeyType', Val, _RestPrimFieldName) -> 'PKIX1Algorithms88':'enc_ECPoint'(Val, [<<4>>]).'dec_ec-public-key'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_EcpkParameters'(Tlv, []);'dec_ec-public-key'('PublicKeyType', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Algorithms88':'dec_ECPoint'(Tlv, [4]).%%================================%% x400-common-name%%================================'enc_x400-common-name'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_CommonName'(Val, [<<19>>]).'dec_x400-common-name'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_CommonName'(Tlv, [19]).%%================================%% x400-teletex-common-name%%================================'enc_x400-teletex-common-name'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_TeletexCommonName'(Val, [<<20>>]).'dec_x400-teletex-common-name'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_TeletexCommonName'(Tlv, [20]).%%================================%% x400-teletex-personal-name%%================================'enc_x400-teletex-personal-name'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_TeletexPersonalName'(Val, [<<49>>]).'dec_x400-teletex-personal-name'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_TeletexPersonalName'(Tlv, [17]).%%================================%% x400-pds-name%%================================'enc_x400-pds-name'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_PDSName'(Val, [<<19>>]).'dec_x400-pds-name'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_PDSName'(Tlv, [19]).%%================================%% x400-physical-delivery-country-name%%================================'enc_x400-physical-delivery-country-name'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_PhysicalDeliveryCountryName'(Val, []).'dec_x400-physical-delivery-country-name'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_PhysicalDeliveryCountryName'(Tlv, []).%%================================%% x400-postal-code%%================================'enc_x400-postal-code'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_PostalCode'(Val, []).'dec_x400-postal-code'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_PostalCode'(Tlv, []).%%================================%% x400-physical-delivery-office-name%%================================'enc_x400-physical-delivery-office-name'('Type', Val, _RestPrimFieldName) -> 'PKIX1Explicit88':'enc_PhysicalDeliveryOfficeName'(Val, [<<49>>]).'dec_x400-physical-delivery-office-name'('Type', Bytes,_) -> Tlv = tlv_format(Bytes), 'PKIX1Explicit88':'dec_PhysicalDeliveryOfficeName'(Tlv, [17]).%%================================%% x400-physical-delivery-office-number%%================================'enc_x400-physical-delivery-office-number'('Type', Val, _RestPrimFieldName)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -