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

Method final

src/lib/pyelliptic/cipher.py:64–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 return buffer.raw[0:i.value]
63
64 def final(self):
65 i = OpenSSL.c_int(0)
66 buffer = OpenSSL.malloc(b"", self.cipher.get_blocksize())
67 if (OpenSSL.EVP_CipherFinal_ex(self.ctx, OpenSSL.byref(buffer),
68 OpenSSL.byref(i))) == 0:
69 raise Exception("[OpenSSL] EVP_CipherFinal_ex FAIL ...")
70 return buffer.raw[0:i.value]
71
72 def ciphering(self, input):
73 """

Callers 1

cipheringMethod · 0.95

Calls 2

mallocMethod · 0.80
get_blocksizeMethod · 0.45

Tested by

no test coverage detected