X-Git-Url: https://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fpkey.py;h=10366ee0b318e1947b4448a1be4f9419884af5b3;hb=911a7fb801bfd74cb50b08fa77ae5c50d1890d8d;hp=f011443a2173ede8058e21c4323ba2967462ace2;hpb=b4ee51a0aca14c0af5853545b9e524cc1b57b656;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/pkey.py b/ctypescrypto/pkey.py index f011443..10366ee 100644 --- a/ctypescrypto/pkey.py +++ b/ctypescrypto/pkey.py @@ -1,10 +1,9 @@ """ -low-level private/public keypair operation +This module provides interface for low-level private/public keypair operation PKey object of this module is wrapper around OpenSSL EVP_PKEY object. """ -This module provides interface for from ctypes import c_char_p,c_void_p,byref,c_int,c_long, c_longlong, create_string_buffer,CFUNCTYPE,POINTER from ctypescrypto import libcrypto @@ -16,11 +15,11 @@ class PKeyError(LibCryptoError): CALLBACK_FUNC=CFUNCTYPE(c_int,c_char_p,c_int,c_int,c_char_p) def password_callback(buf,length,rwflag,u): -""" -Example password callback for private key. Assumes that -password is store in the userdata parameter, so allows to pass password -from constructor arguments to the libcrypto keyloading functions -""" + """ + Example password callback for private key. Assumes that + password is store in the userdata parameter, so allows to pass password + from constructor arguments to the libcrypto keyloading functions + """ cnt=len(u) if length