Better name for type conversion helper

This commit is contained in:
Helder Eijs 2018-03-06 13:48:00 +01:00
parent 617d71d1cd
commit 62ce7a97c1
35 changed files with 89 additions and 89 deletions

View file

@ -37,7 +37,7 @@ from Crypto.Cipher import _create_cipher
from Crypto.Util.py3compat import byte_string
from Crypto.Util._raw_api import (load_pycryptodome_raw_lib,
VoidPointer, SmartPointer,
c_size_t, c_char_ptr)
c_size_t, c_uint8_ptr)
_raw_cast_lib = load_pycryptodome_raw_lib(
"Crypto.Cipher._raw_cast",
@ -73,7 +73,7 @@ def _create_base_cipher(dict_parameters):
stop_operation = _raw_cast_lib.CAST_stop_operation
cipher = VoidPointer()
result = start_operation(c_char_ptr(key),
result = start_operation(c_uint8_ptr(key),
c_size_t(len(key)),
cipher.address_of())
if result: