File tree Expand file tree Collapse file tree 6 files changed +653
-411
lines changed Expand file tree Collapse file tree 6 files changed +653
-411
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ cdef extern from '../extern/cryptoki.h':
139
139
140
140
CKR_FUNCTION_REJECTED,
141
141
142
+ CKR_OPERATION_CANCEL_FAILED,
143
+
142
144
CKR_VENDOR_DEFINED,
143
145
144
146
@@ -590,6 +592,28 @@ cdef extern from '../extern/cryptoki.h':
590
592
# All other APIs are taken from the CK_FUNCTION_LIST table
591
593
ctypedef CK_RV (* C_GetFunctionList_ptr) (CK_FUNCTION_LIST ** ) nogil
592
594
595
+ ctypedef CK_RV (* KeyOperationInit) (
596
+ CK_SESSION_HANDLE session,
597
+ CK_MECHANISM * mechanism,
598
+ CK_OBJECT_HANDLE key
599
+ ) nogil
600
+ ctypedef CK_RV (* OperationUpdateWithResult) (
601
+ CK_SESSION_HANDLE session,
602
+ CK_BYTE * part_in,
603
+ CK_ULONG part_in_len,
604
+ CK_BYTE * part_out,
605
+ CK_ULONG * part_out_len
606
+ ) nogil
607
+ ctypedef CK_RV (* OperationUpdate) (
608
+ CK_SESSION_HANDLE session,
609
+ CK_BYTE * part_in,
610
+ CK_ULONG part_in_len
611
+ ) nogil
612
+ ctypedef CK_RV (* OperationWithResult) (
613
+ CK_SESSION_HANDLE session,
614
+ CK_BYTE * part_out,
615
+ CK_ULONG * part_out_len
616
+ ) nogil
593
617
594
618
cdef inline CK_BYTE_buffer(length):
595
619
""" Make a buffer for `length` CK_BYTEs."""
You can’t perform that action at this time.
0 commit comments