From 48a399d6202a94e7bfd007f51d0de1780884593f Mon Sep 17 00:00:00 2001 From: emboss Date: Sun, 12 Jun 2011 17:03:26 +0000 Subject: * ext/openssl/ossl_pkey_dh.c: completed documentation. * ext/openssl/ossl_pkey_dsa.c: corrected examples. Improved parameter sections. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_pkey_dsa.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'ext/openssl/ossl_pkey_dsa.c') diff --git a/ext/openssl/ossl_pkey_dsa.c b/ext/openssl/ossl_pkey_dsa.c index 9e121c73a6..2a6fcfaf3e 100644 --- a/ext/openssl/ossl_pkey_dsa.c +++ b/ext/openssl/ossl_pkey_dsa.c @@ -107,7 +107,7 @@ dsa_generate(int size) * from scratch. * * === Parameters - * +size+ is an integer representing the desired key size. + * * +size+ is an integer representing the desired key size. * */ static VALUE @@ -131,9 +131,9 @@ ossl_dsa_s_generate(VALUE klass, VALUE size) * Creates a new DSA instance by reading an existing key from +string+. * * === Parameters - * +size+ is an integer representing the desired key size. - * +string+ contains a DER or PEM encoded key. - * +pass+ is a string that contains an optional password. + * * +size+ is an integer representing the desired key size. + * * +string+ contains a DER or PEM encoded key. + * * +pass+ is a string that contains an optional password. * * === Examples * DSA.new -> dsa @@ -240,8 +240,8 @@ ossl_dsa_is_private(VALUE self) * Encodes this DSA to its PEM encoding. * * === Parameters - * +cipher+ is an OpenSSL::Cipher. - * +password+ is a string containing your password. + * * +cipher+ is an OpenSSL::Cipher. + * * +password+ is a string containing your password. * * === Examples * DSA.to_pem -> aString @@ -383,7 +383,7 @@ ossl_dsa_to_text(VALUE self) * information. * * === Example - * dsa = OpenSSL::DSA.new(2048) # has public and private information + * dsa = OpenSSL::PKey::DSA.new(2048) # has public and private information * pub_key = dsa.public_key # has only the public part available * pub_key_der = pub_key.to_der # it's safe to publish this * @@ -418,10 +418,10 @@ ossl_dsa_to_public_key(VALUE self) * data. The signature is issued using the private key of this DSA instance. * * === Parameters - * +string+ is a message digest of the original input data to be signed + * * +string+ is a message digest of the original input data to be signed * * === Example - * dsa = OpenSSL::DSA.new(2048) + * dsa = OpenSSL::PKey::DSA.new(2048) * doc = "Sign me" * digest = OpenSSL::Digest::SHA1.digest(doc) * sig = dsa.syssign(digest) @@ -459,11 +459,11 @@ ossl_dsa_sign(VALUE self, VALUE data) * does so by validating +sig+ using the public key of this DSA instance. * * === Parameters - * +digest+ is a message digest of the original input data to be signed - * +sig+ is a DSA signature value + * * +digest+ is a message digest of the original input data to be signed + * * +sig+ is a DSA signature value * * === Example - * dsa = OpenSSL::DSA.new(2048) + * dsa = OpenSSL::PKey::DSA.new(2048) * doc = "Sign me" * digest = OpenSSL::Digest::SHA1.digest(doc) * sig = dsa.syssign(digest) -- cgit v1.2.3