Tue Jun 30 06:45:21 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>

* ext/openssl/ossl_pkey_rsa.c: Complete documentation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
emboss 2011-05-30 21:47:37 +00:00
Родитель 34913093f9
Коммит 8b3e21b23d
1 изменённых файлов: 16 добавлений и 0 удалений

Просмотреть файл

@ -570,8 +570,24 @@ Init_ossl_rsa()
mPKey = rb_define_module_under(mOSSL, "PKey");
#endif
/* Document-class: OpenSSL::PKey::RSAError
*
* Generic exception that is raised if an operation on an RSA PKey
* fails unexpectedly or in case an instantiation of an instance of RSA
* fails due to non-conformant input data.
*/
eRSAError = rb_define_class_under(mPKey, "RSAError", ePKeyError);
/* Document-class: OpenSSL::PKey::RSA
*
* RSA is an asymmetric public key algorithm that has been formalized in
* RFC 3447. It is in widespread use in public key infrastuctures (PKI)
* where certificates (cf. OpenSSL::X509::Certificate) often are issued
* on the basis of a public/private RSA key pair. RSA is used in a wide
* field of applications such as secure (symmetric) key exchange, e.g.
* when establishing a secure TLS/SSL connection. It is also used in
* various digital signature schemes.
*/
cRSA = rb_define_class_under(mPKey, "RSA", cPKey);
rb_define_singleton_method(cRSA, "generate", ossl_rsa_s_generate, -1);