summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-03-15 17:46:23 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-03-15 17:46:23 +0100
commit4d0170d997170b02a9e33860fa55d7c9704f2ccc (patch)
treee0b7f94e5e397df79ec28c8002abcd48b8ab4bee /doc
parenta1e796500abb29401345459487e4cd87c4760087 (diff)
downloadgnutls-4d0170d997170b02a9e33860fa55d7c9704f2ccc.tar.gz
simplified text
Diffstat (limited to 'doc')
-rw-r--r--doc/cha-tokens.texi17
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/cha-tokens.texi b/doc/cha-tokens.texi
index 88dbc40ef7..2ab35ab00a 100644
--- a/doc/cha-tokens.texi
+++ b/doc/cha-tokens.texi
@@ -85,15 +85,14 @@ A function to check for a supported by GnuTLS URL is @funcref{gnutls_url_is_supp
@showfuncdesc{gnutls_url_is_supported}
Additional functions are available that will return
-information over a public key, as well as a function that given a public
-key fingerprint would provide a memorable sketch.
-
-The key_id and random_art functions are based on an SHA1 digest of the
-the public key canonicalized as a DER-formatted, ASN.1-encoded
-subjectPublicKeyInfo object. This is different from the ``common
-method'' described by section 4.2.1.2 of @xcite{RFC5280} in that
-GnuTLS includes the algorithmIdentifier (algorithm plus parameters) in
-addition to the raw key material itself.
+information over a public key, such as a unique key ID, as well as a function
+that given a public key fingerprint would provide a memorable sketch.
+
+Note that @funcref{gnutls_pubkey_get_key_id} calculates a SHA1 digest of the
+public key as a DER-formatted, subjectPublicKeyInfo object. Other implementations
+use different approaches, e.g., some use the ``common method'' described in
+section 4.2.1.2 of @xcite{RFC5280} which calculates a digest on a part of the
+subjectPublicKeyInfo object.
@showfuncD{gnutls_pubkey_get_pk_algorithm,gnutls_pubkey_get_preferred_hash_algorithm,gnutls_pubkey_get_key_id,gnutls_random_art}