@@ -110,7 +110,7 @@ PyObject *aws_py_hash_update(PyObject *self, PyObject *args) {
110110 const char * to_hash_c_str ;
111111 Py_ssize_t to_hash_len ;
112112
113- if (!PyArg_ParseTuple (args , "Oy #" , & hash_capsule , & to_hash_c_str , & to_hash_len )) {
113+ if (!PyArg_ParseTuple (args , "Os #" , & hash_capsule , & to_hash_c_str , & to_hash_len )) {
114114 return PyErr_AwsLastError ();
115115 }
116116
@@ -179,7 +179,7 @@ PyObject *aws_py_sha256_hmac_new(PyObject *self, PyObject *args) {
179179 const char * secret_ptr ;
180180 Py_ssize_t secret_len ;
181181
182- if (!PyArg_ParseTuple (args , "y #" , & secret_ptr , & secret_len )) {
182+ if (!PyArg_ParseTuple (args , "s #" , & secret_ptr , & secret_len )) {
183183 return PyErr_AwsLastError ();
184184 }
185185
@@ -202,7 +202,7 @@ PyObject *aws_py_hmac_update(PyObject *self, PyObject *args) {
202202 const char * to_hmac_ptr ;
203203 Py_ssize_t to_hmac_len ;
204204
205- if (!PyArg_ParseTuple (args , "Oy #" , & hmac_capsule , & to_hmac_ptr , & to_hmac_len )) {
205+ if (!PyArg_ParseTuple (args , "Os #" , & hmac_capsule , & to_hmac_ptr , & to_hmac_len )) {
206206 return PyErr_AwsLastError ();
207207 }
208208
@@ -273,7 +273,7 @@ PyObject *aws_py_rsa_private_key_from_pem_data(PyObject *self, PyObject *args) {
273273 (void )self ;
274274
275275 struct aws_byte_cursor pem_data_cur ;
276- if (!PyArg_ParseTuple (args , "y #" , & pem_data_cur .ptr , & pem_data_cur .len )) {
276+ if (!PyArg_ParseTuple (args , "s #" , & pem_data_cur .ptr , & pem_data_cur .len )) {
277277 return NULL ;
278278 }
279279
@@ -323,7 +323,7 @@ PyObject *aws_py_rsa_public_key_from_pem_data(PyObject *self, PyObject *args) {
323323 (void )self ;
324324
325325 struct aws_byte_cursor pem_data_cur ;
326- if (!PyArg_ParseTuple (args , "y #" , & pem_data_cur .ptr , & pem_data_cur .len )) {
326+ if (!PyArg_ParseTuple (args , "s #" , & pem_data_cur .ptr , & pem_data_cur .len )) {
327327 return NULL ;
328328 }
329329
@@ -366,7 +366,7 @@ PyObject *aws_py_rsa_private_key_from_der_data(PyObject *self, PyObject *args) {
366366 (void )self ;
367367
368368 struct aws_byte_cursor der_data_cur ;
369- if (!PyArg_ParseTuple (args , "y #" , & der_data_cur .ptr , & der_data_cur .len )) {
369+ if (!PyArg_ParseTuple (args , "s #" , & der_data_cur .ptr , & der_data_cur .len )) {
370370 return NULL ;
371371 }
372372
@@ -394,7 +394,7 @@ PyObject *aws_py_rsa_public_key_from_der_data(PyObject *self, PyObject *args) {
394394 (void )self ;
395395
396396 struct aws_byte_cursor der_data_cur ;
397- if (!PyArg_ParseTuple (args , "y #" , & der_data_cur .ptr , & der_data_cur .len )) {
397+ if (!PyArg_ParseTuple (args , "s #" , & der_data_cur .ptr , & der_data_cur .len )) {
398398 return NULL ;
399399 }
400400
0 commit comments