X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=ctypescrypto%2Fpkey.py;h=9257dfbcce2a4ccd3546dfa493f4e1eb873ed86f;hb=5eb6b4548beeacbd191b9c49a9b6cb7acf339837;hp=fdf384d3f446c2f97c43e2531e7a457dc9749cb7;hpb=ec92bf04b008b0401014cae90fa2dfca18efa02c;p=oss%2Fctypescrypto.git diff --git a/ctypescrypto/pkey.py b/ctypescrypto/pkey.py index fdf384d..9257dfb 100644 --- a/ctypescrypto/pkey.py +++ b/ctypescrypto/pkey.py @@ -36,10 +36,10 @@ class PKey(object): self.key=ptr self.cansign=cansign if not privkey is None or not pubkey is None: - raise TypeError("Just one of pubkey or privkey can be specified") + raise TypeError("Just one of ptr, pubkey or privkey can be specified") elif not privkey is None: if not pubkey is None: - raise TypeError("Just one of pubkey or privkey can be specified") + raise TypeError("Just one of ptr, pubkey or privkey can be specified") b=Membio(privkey) self.cansign=True if format == "PEM": @@ -152,7 +152,7 @@ class PKey(object): rsa_keygen_bits=number - size of key to be generated rsa_keygen_pubexp - RSA public expontent(default 65537) - Algorithn specific parameters for DSA,DH and EC + Algorithm specific parameters for DSA,DH and EC paramsfrom=PKey object