MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / get_cipher

Method get_cipher

src/lib/pyelliptic/openssl.py:439–445  ·  view source on GitHub ↗

returns the OpenSSL cipher instance

(self, name)

Source from the content-addressed store, hash-verified

437 return int((self.BN_num_bits(x) + 7) / 8)
438
439 def get_cipher(self, name):
440 """
441 returns the OpenSSL cipher instance
442 """
443 if name not in self.cipher_algo:
444 raise Exception("Unknown cipher")
445 return self.cipher_algo[name]
446
447 def get_curve(self, name):
448 """

Callers 6

__init__Method · 0.80
get_blocksizeMethod · 0.80
gen_IVMethod · 0.80
raw_encryptMethod · 0.80
decryptMethod · 0.80
eciesEncryptFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected