From 9356c4b37709b236c076f95fe26637fc332a3b3d Mon Sep 17 00:00:00 2001 From: Red Date: Sun, 28 Jun 2015 10:24:59 -0400 Subject: Updated documentation to match implementation Line number references are with respect to sources in public_key.erl Changes: - pkix_sign replaced public with private (L510) (Certificates are signed by private keys) - pki_asn1_type() added 'CertificateList' (L73) - pkix_sign_types added ecdsa (L404) - pkix_verify added ec_public_key() (L530) - pkix_is_issuer added 'CertificateList' (L569) --- lib/public_key/doc/src/public_key.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/public_key/doc') diff --git a/lib/public_key/doc/src/public_key.xml b/lib/public_key/doc/src/public_key.xml index 394fe54428..209de2bdf7 100644 --- a/lib/public_key/doc/src/public_key.xml +++ b/lib/public_key/doc/src/public_key.xml @@ -108,8 +108,9 @@

| 'SubjectPublicKeyInfo'

| 'PrivateKeyInfo'

| 'CertificationRequest'

+

| 'CertificateList'

| 'ECPrivateKey'

-

| 'EcpkParameters'

+

| 'EcpkParameters'

pem_entry () = @@ -433,7 +434,7 @@ pkix_is_issuer(Cert, IssuerCert) -> boolean() Checks if IssuerCert issued Cert. - Cert = der_encoded() | #'OTPCertificate'{} + Cert = der_encoded() | #'OTPCertificate'{} | #'CertificateList'{} IssuerCert = der_encoded() | #'OTPCertificate'{} @@ -698,7 +699,7 @@ fun(#'DistributionPoint'{}, #'CertificateList'{}, pkix_sign(#'OTPTBSCertificate'{}, Key) -> der_encoded() Signs certificate. - Key = rsa_public_key() | dsa_public_key() + Key = rsa_private_key() | dsa_private_key()

Signs an 'OTPTBSCertificate'. Returns the corresponding @@ -713,7 +714,7 @@ fun(#'DistributionPoint'{}, #'CertificateList'{}, AlgorithmId = oid() Signature OID from a certificate or a certificate revocation list. DigestType = rsa_digest_type() | dss_digest_type() - SignatureType = rsa | dsa + SignatureType = rsa | dsa | ecdsa

Translates signature algorithm OID to Erlang digest and signature types. @@ -726,7 +727,7 @@ fun(#'DistributionPoint'{}, #'CertificateList'{}, Verifies PKIX x.509 certificate signature. Cert = der_encoded() - Key = rsa_public_key() | dsa_public_key() + Key = rsa_public_key() | dsa_public_key() | ec_public_key()

Verifies PKIX x.509 certificate signature.

-- cgit v1.2.3