add comment about buf
This commit is contained in:
parent
4ddc20945e
commit
402bc5743b
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ class CtypesCrypto(object):
|
||||||
libcrypto.EVP_CipherUpdate(self._ctx, byref(buf),
|
libcrypto.EVP_CipherUpdate(self._ctx, byref(buf),
|
||||||
byref(cipher_out_len), c_char_p(data),
|
byref(cipher_out_len), c_char_p(data),
|
||||||
len(data))
|
len(data))
|
||||||
|
# buf is copied to a str object when we access buf.raw
|
||||||
return buf.raw[:cipher_out_len.value]
|
return buf.raw[:cipher_out_len.value]
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue