Documentation ¶
Index ¶
- Constants
- Variables
- func Curve(name string) string
- func CurveNameFromOID(id asn1.ObjectIdentifier) string
- func FieldTypeFromOid(id asn1.ObjectIdentifier) string
- func FromAsn1Tag(class, tag int) string
- func FromCurveParams(params *elliptic.CurveParams) string
- func FromRDNSequence(rdns pkix.RDNSequence) string
- func FromRawDN(dn []byte) string
Constants ¶
View Source
const ( DSA = "DSA" ECDSA = "ECDSA" EdDSA = "EdDSA" ECDH = "ECDH" HMAC = "HMAC" MGF1 = "MGF1" RSA = "RSA" RSA_PKCS15 = "RSA PKCS1 v1.5" RSA_PSS = "RSA PSS" MD4 = "MD4" MD5 = "MD5" SHA1 = "SHA-1" SHA224 = "SHA-224" SHA256 = "SHA-256" SHA384 = "SHA-384" SHA512 = "SHA-512" MD5SHA1 = "MD5+SHA1" RIPEMD160 = "RIPEMD-160" SHA3_224 = "SHA3-224" SHA3_256 = "SHA3-256" SHA3_384 = "SHA3-384" SHA3_512 = "SHA3-512" SHA512_224 = "SHA-512/224" SHA512_256 = "SHA-512/256" BLAKE2s_256 = "BLAKE2s-256" BLAKE2b_256 = "BLAKE2b-256" BLAKE2b_384 = "BLAKE2b-384" BLAKE2b_512 = "BLAKE2b-512" )
View Source
const ( Secp192r1 = "P-192 (secp192r1, prime192v1)" Sect163k1 = "sect163k1" Sect163r2 = "sect163r2" Secp224r1 = "P-224 (secp224r1)" Sect233k1 = "sect233k1" Sect233r1 = "sect233r1" Secp256r1 = "P-256 (secp256r1, prime256v1)" Sect283k1 = "sect283k1" Sect283r1 = "sect283r1" Secp384r1 = "P-384 (secp384r1)" Sect409k1 = "sect409k1" Sect409r1 = "sect409r1" Secp521r1 = "P-521 (secp521r1)" Sect571k1 = "sect571k1" Sect571r1 = "sect571r1" X25519 = "X25519" X448 = "X448" Ed25519 = "Ed25519" Ed448 = "Ed448" )
Variables ¶
View Source
var X500AttrTypesByOid = map[string]string{ oid.X500AttrObjectClass.String(): "objectClass", oid.X500AttrAliasedEntryName.String(): "aliasedEntryName", oid.X500AttrKnowledgeInformation.String(): "knowledgeInformation", oid.X500AttrCommonName.String(): "CN", oid.X500AttrSurname.String(): "surname", oid.X500AttrSerialNumber.String(): "serialNumber", oid.X500AttrCountryName.String(): "C", oid.X500AttrLocalityName.String(): "L", oid.X500AttrStateOrProvinceName.String(): "ST", oid.X500AttrStreetAddress.String(): "streetAddress", oid.X500AttrOrganizationName.String(): "O", oid.X500AttrOrganizationUnitName.String(): "OU", oid.X500AttrTitle.String(): "title", oid.X500AttrDescription.String(): "description", oid.X500AttrSearchGuide.String(): "searchGuide", oid.X500AttrBusinessCategory.String(): "businessCategory", oid.X500AttrPostalAddress.String(): "postalAddress", oid.X500AttrPostalCode.String(): "postalCode", oid.X500AttrPostOfficeBox.String(): "postOfficeBox", oid.X500AttrPhysicalDeliveryOfficeName.String(): "physicalDeliveryOfficeName", oid.X500AttrTelephoneNumber.String(): "telephoneNumber", oid.X500AttrTelexNumber.String(): "telexNumber", oid.X500AttrTeletexTerminalIdentifier.String(): "teletexTerminalIdentifier", oid.X500AttrFacsimileTelephoneNumber.String(): "facsimileTelephoneNumber", oid.X500AttrX121Address.String(): "x121Address", oid.X500AttrInternationalISDNNumber.String(): "internationalISDNNumber", oid.X500AttrRegisteredAddress.String(): "registeredAddress", oid.X500AttrDestinationIndicator.String(): "destinationIndicator", oid.X500AttrPreferredDeliveryMethod.String(): "preferredDeliveryMethod", oid.X500AttrPresentationAddress.String(): "presentationAddress", oid.X500AttrSupportedApplicationContext.String(): "supportedApplicationContext", oid.X500AttrMember.String(): "member", oid.X500AttrOwner.String(): "owner", oid.X500AttrRoleOccupant.String(): "roleOccupant", oid.X500AttrSeeAlso.String(): "seeAlso", oid.X500AttrUserPassword.String(): "userPassword", oid.X500AttrUserCertificate.String(): "userCertificate", oid.X500AttrCACertificate.String(): "cACertificate", oid.X500AttrAuthorityRevocationList.String(): "authorityRevocationList", oid.X500AttrCertificateRevocationList.String(): "certificateRevocationList", oid.X500AttrCrossCertificatePair.String(): "crossCertificatePair", oid.X500AttrName.String(): "name", oid.X500AttrGivenName.String(): "givenName", oid.X500AttrInitials.String(): "initials", oid.X500AttrGenerationQualifier.String(): "generationQualifier", oid.X500AttrUniqueIdentifier.String(): "uniqueIdentifier", oid.X500AttrDnQualifier.String(): "dnQualifier", oid.X500AttrEnhancedSearchGuide.String(): "enhancedSearchGuide", oid.X500AttrProtocolInformation.String(): "protocolInformation", oid.X500AttrDistinguishedName.String(): "distinguishedName", oid.X500AttrUniqueMember.String(): "uniqueMember", oid.X500AttrHouseIdentifier.String(): "houseIdentifier", oid.X500AttrSupportedAlgorithms.String(): "supportedAlgorithms", oid.X500AttrDeltaRevocationList.String(): "deltaRevocationList", oid.X500AttrDmdName.String(): "dmdName", oid.X500AttrClearance.String(): "clearance", oid.X500AttrDefaultDirQop.String(): "defaultDirQop", oid.X500AttrAttributeIntegrityInfo.String(): "attributeIntegrityInfo", oid.X500AttrAttributeCertificate.String(): "attributeCertificate", oid.X500AttrAttributeCertificateRevocationList.String(): "attributeCertificateRevocationList", oid.X500AttrConfKeyInfo.String(): "confKeyInfo", oid.X500AttrAACertificate.String(): "aACertificate", oid.X500AttrAttributeDescriptorCertificate.String(): "attributeDescriptorCertificate", oid.X500AttrAttributeAuthorityRevocationList.String(): "attributeAuthorityRevocationList", oid.X500AttrFamilyInformation.String(): "family-information", oid.X500AttrPseudonym.String(): "pseudonym", oid.X500AttrCommunicationsService.String(): "communicationsService", oid.X500AttrCommunicationsNetwork.String(): "communicationsNetwork", oid.X500AttrCertificationPracticeStmt.String(): "certificationPracticeStmt", oid.X500AttrCertificatePolicy.String(): "certificatePolicy", oid.X500AttrPkiPath.String(): "pkiPath", oid.X500AttrPrivPolicy.String(): "privPolicy", oid.X500AttrRole.String(): "role", oid.X500AttrDelegationPath.String(): "delegationPath", oid.X500AttrProtPrivPolicy.String(): "protPrivPolicy", oid.X500AttrXMLPrivilegeInfo.String(): "xMLPrivilegeInfo", oid.X500AttrXmlPrivPolicy.String(): "xmlPrivPolicy", oid.X500AttrUuidpair.String(): "uuidpair", oid.X500AttrTagOid.String(): "tagOid", oid.X500AttrUiiFormat.String(): "uiiFormat", oid.X500AttrUiiInUrh.String(): "uiiInUrh", oid.X500AttrContentUrl.String(): "contentUrl", oid.X500AttrPermission.String(): "permission", oid.X500AttrUri.String(): "uri", oid.X500AttrPwdAttribute.String(): "pwdAttribute", oid.X500AttrUserPwd.String(): "userPwd", oid.X500AttrUrn.String(): "urn", oid.X500AttrUrl.String(): "url", oid.X500AttrUtmCoordinates.String(): "utmCoordinates", oid.X500AttrUrnC.String(): "urnC", oid.X500AttrUii.String(): "uii", oid.X500AttrEpc.String(): "epc", oid.X500AttrTagAfi.String(): "tagAfi", oid.X500AttrEpcFormat.String(): "epcFormat", oid.X500AttrEpcInUrn.String(): "epcInUrn", oid.X500AttrLdapUrl1.String(): "ldapUrl", oid.X500AttrLdapUrl2.String(): "ldapUrl", oid.X500AttrOrganizationIdentifier.String(): "organizationIdentifier", }
Functions ¶
func CurveNameFromOID ¶
func CurveNameFromOID(id asn1.ObjectIdentifier) string
func FieldTypeFromOid ¶
func FieldTypeFromOid(id asn1.ObjectIdentifier) string
func FromAsn1Tag ¶
func FromCurveParams ¶
func FromCurveParams(params *elliptic.CurveParams) string
func FromRDNSequence ¶ added in v0.7.0
func FromRDNSequence(rdns pkix.RDNSequence) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.