From 631489eb5f989f06de993004ae6db58f07465ccb Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Thu, 7 May 2015 14:09:35 +0200 Subject: public_key: Add clarifications --- lib/public_key/doc/src/records.xml | 17 ++++++++++++++--- lib/public_key/doc/src/using_public_key.xml | 4 +++- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'lib/public_key/doc/src') diff --git a/lib/public_key/doc/src/records.xml b/lib/public_key/doc/src/records.xml index e9e9b231af..9536167839 100644 --- a/lib/public_key/doc/src/records.xml +++ b/lib/public_key/doc/src/records.xml @@ -96,6 +96,15 @@

| privilegeWithdrawn

| aACompromise

+ + OID_macro() + =

?OID_name()

+
+ + OID_name() + =

atom()

+
+ @@ -196,7 +205,7 @@
PKIX Certificates

Erlang representation of PKIX certificates derived from ASN.1 - specifications see also X509 certificates (RFC 5280) are as follows:

+ specifications see also X509 certificates (RFC 5280), also referred to as plain type, are as follows:

#'Certificate'{ tbsCertificate, % #'TBSCertificate'{} @@ -222,6 +231,8 @@ parameters % der_encoded() }. +

Erlang alternate representation of PKIX certificate, also referred to as otp type

+ #'OTPCertificate'{ tbsCertificate, % #'OTPTBSCertificate'{} @@ -247,8 +258,8 @@ parameters % asn1_novalue | #'Dss-Parms'{} }. -

Here, id_signature_algorithm() = ?OID name, for available OID names, for example -?id-dsa-with-sha1. That is, by prepending "?" to the OID name, represented as an Erlang atom.

+

id_signature_algorithm() = OID_macro()

+

The available OID names are as follows:

diff --git a/lib/public_key/doc/src/using_public_key.xml b/lib/public_key/doc/src/using_public_key.xml index 41a81b6dea..03e4bedf3d 100644 --- a/lib/public_key/doc/src/using_public_key.xml +++ b/lib/public_key/doc/src/using_public_key.xml @@ -381,7 +381,9 @@ Msg = public_key:decrypt_public(RsaEncrypted, PublicKey), Msg = public_key:decrypt_private(RsaEncrypted, PrivateKey),

You normally do only one of the encrypt or decrypt operations, - and the peer does the other.

+ and the peer does the other. This normaly used in legacy applications + as a primitive digital signature. +

-- cgit v1.2.3