summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-30 07:38:31 +0100
committerRemi Collet <remi@remirepo.net>2020-12-30 07:38:31 +0100
commit31ea900983b3cfd621319205b194059c5fb8ece5 (patch)
tree5464f454b9f6d59cd192ea2f0803dbafd07efe51
new package
-rw-r--r--.gitignore9
-rw-r--r--Makefile4
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION1835
-rw-r--r--php-pecl-pkcs11.spec225
5 files changed, 2077 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..01f0400
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+clog
+package-*.xml
+*.tgz
+*.tar.bz2
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..13af741
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
+
diff --git a/PHPINFO b/PHPINFO
new file mode 100644
index 0000000..a2db9ad
--- /dev/null
+++ b/PHPINFO
@@ -0,0 +1,4 @@
+
+pkcs11
+
+PKCS#11 support => enabled
diff --git a/REFLECTION b/REFLECTION
new file mode 100644
index 0000000..47f7d27
--- /dev/null
+++ b/REFLECTION
@@ -0,0 +1,1835 @@
+Extension [ <persistent> extension #94 pkcs11 version 0.1 ] {
+
+ - Constants [784] {
+ Constant [ int Pkcs11\CKM_RSA_PKCS_KEY_PAIR_GEN ] { 0 }
+ Constant [ int Pkcs11\CKM_RSA_PKCS ] { 1 }
+ Constant [ int Pkcs11\CKM_RSA_9796 ] { 2 }
+ Constant [ int Pkcs11\CKM_RSA_X_509 ] { 3 }
+ Constant [ int Pkcs11\CKM_MD2_RSA_PKCS ] { 4 }
+ Constant [ int Pkcs11\CKM_MD5_RSA_PKCS ] { 5 }
+ Constant [ int Pkcs11\CKM_SHA1_RSA_PKCS ] { 6 }
+ Constant [ int Pkcs11\CKM_RIPEMD128_RSA_PKCS ] { 7 }
+ Constant [ int Pkcs11\CKM_RIPEMD160_RSA_PKCS ] { 8 }
+ Constant [ int Pkcs11\CKM_RSA_PKCS_OAEP ] { 9 }
+ Constant [ int Pkcs11\CKM_RSA_X9_31_KEY_PAIR_GEN ] { 10 }
+ Constant [ int Pkcs11\CKM_RSA_X9_31 ] { 11 }
+ Constant [ int Pkcs11\CKM_SHA1_RSA_X9_31 ] { 12 }
+ Constant [ int Pkcs11\CKM_RSA_PKCS_PSS ] { 13 }
+ Constant [ int Pkcs11\CKM_SHA1_RSA_PKCS_PSS ] { 14 }
+ Constant [ int Pkcs11\CKM_DSA_KEY_PAIR_GEN ] { 16 }
+ Constant [ int Pkcs11\CKM_DSA ] { 17 }
+ Constant [ int Pkcs11\CKM_DSA_SHA1 ] { 18 }
+ Constant [ int Pkcs11\CKM_DSA_SHA224 ] { 19 }
+ Constant [ int Pkcs11\CKM_DSA_SHA256 ] { 20 }
+ Constant [ int Pkcs11\CKM_DSA_SHA384 ] { 21 }
+ Constant [ int Pkcs11\CKM_DSA_SHA512 ] { 22 }
+ Constant [ int Pkcs11\CKM_DSA_SHA3_224 ] { 24 }
+ Constant [ int Pkcs11\CKM_DSA_SHA3_256 ] { 25 }
+ Constant [ int Pkcs11\CKM_DSA_SHA3_384 ] { 26 }
+ Constant [ int Pkcs11\CKM_DSA_SHA3_512 ] { 27 }
+ Constant [ int Pkcs11\CKM_DH_PKCS_KEY_PAIR_GEN ] { 32 }
+ Constant [ int Pkcs11\CKM_DH_PKCS_DERIVE ] { 33 }
+ Constant [ int Pkcs11\CKM_X9_42_DH_KEY_PAIR_GEN ] { 48 }
+ Constant [ int Pkcs11\CKM_X9_42_DH_DERIVE ] { 49 }
+ Constant [ int Pkcs11\CKM_X9_42_DH_HYBRID_DERIVE ] { 50 }
+ Constant [ int Pkcs11\CKM_X9_42_MQV_DERIVE ] { 51 }
+ Constant [ int Pkcs11\CKM_SHA256_RSA_PKCS ] { 64 }
+ Constant [ int Pkcs11\CKM_SHA384_RSA_PKCS ] { 65 }
+ Constant [ int Pkcs11\CKM_SHA512_RSA_PKCS ] { 66 }
+ Constant [ int Pkcs11\CKM_SHA256_RSA_PKCS_PSS ] { 67 }
+ Constant [ int Pkcs11\CKM_SHA384_RSA_PKCS_PSS ] { 68 }
+ Constant [ int Pkcs11\CKM_SHA512_RSA_PKCS_PSS ] { 69 }
+ Constant [ int Pkcs11\CKM_SHA224_RSA_PKCS ] { 70 }
+ Constant [ int Pkcs11\CKM_SHA224_RSA_PKCS_PSS ] { 71 }
+ Constant [ int Pkcs11\CKM_SHA512_224 ] { 72 }
+ Constant [ int Pkcs11\CKM_SHA512_224_HMAC ] { 73 }
+ Constant [ int Pkcs11\CKM_SHA512_224_HMAC_GENERAL ] { 74 }
+ Constant [ int Pkcs11\CKM_SHA512_224_KEY_DERIVATION ] { 75 }
+ Constant [ int Pkcs11\CKM_SHA512_256 ] { 76 }
+ Constant [ int Pkcs11\CKM_SHA512_256_HMAC ] { 77 }
+ Constant [ int Pkcs11\CKM_SHA512_256_HMAC_GENERAL ] { 78 }
+ Constant [ int Pkcs11\CKM_SHA512_256_KEY_DERIVATION ] { 79 }
+ Constant [ int Pkcs11\CKM_SHA512_T ] { 80 }
+ Constant [ int Pkcs11\CKM_SHA512_T_HMAC ] { 81 }
+ Constant [ int Pkcs11\CKM_SHA512_T_HMAC_GENERAL ] { 82 }
+ Constant [ int Pkcs11\CKM_SHA512_T_KEY_DERIVATION ] { 83 }
+ Constant [ int Pkcs11\CKM_SHA3_256_RSA_PKCS ] { 96 }
+ Constant [ int Pkcs11\CKM_SHA3_384_RSA_PKCS ] { 97 }
+ Constant [ int Pkcs11\CKM_SHA3_512_RSA_PKCS ] { 98 }
+ Constant [ int Pkcs11\CKM_SHA3_256_RSA_PKCS_PSS ] { 99 }
+ Constant [ int Pkcs11\CKM_SHA3_384_RSA_PKCS_PSS ] { 100 }
+ Constant [ int Pkcs11\CKM_SHA3_512_RSA_PKCS_PSS ] { 101 }
+ Constant [ int Pkcs11\CKM_SHA3_224_RSA_PKCS ] { 102 }
+ Constant [ int Pkcs11\CKM_SHA3_224_RSA_PKCS_PSS ] { 103 }
+ Constant [ int Pkcs11\CKM_RC2_KEY_GEN ] { 256 }
+ Constant [ int Pkcs11\CKM_RC2_ECB ] { 257 }
+ Constant [ int Pkcs11\CKM_RC2_CBC ] { 258 }
+ Constant [ int Pkcs11\CKM_RC2_MAC ] { 259 }
+ Constant [ int Pkcs11\CKM_RC2_MAC_GENERAL ] { 260 }
+ Constant [ int Pkcs11\CKM_RC2_CBC_PAD ] { 261 }
+ Constant [ int Pkcs11\CKM_RC4_KEY_GEN ] { 272 }
+ Constant [ int Pkcs11\CKM_RC4 ] { 273 }
+ Constant [ int Pkcs11\CKM_DES_KEY_GEN ] { 288 }
+ Constant [ int Pkcs11\CKM_DES_ECB ] { 289 }
+ Constant [ int Pkcs11\CKM_DES_CBC ] { 290 }
+ Constant [ int Pkcs11\CKM_DES_MAC ] { 291 }
+ Constant [ int Pkcs11\CKM_DES_MAC_GENERAL ] { 292 }
+ Constant [ int Pkcs11\CKM_DES_CBC_PAD ] { 293 }
+ Constant [ int Pkcs11\CKM_DES2_KEY_GEN ] { 304 }
+ Constant [ int Pkcs11\CKM_DES3_KEY_GEN ] { 305 }
+ Constant [ int Pkcs11\CKM_DES3_ECB ] { 306 }
+ Constant [ int Pkcs11\CKM_DES3_CBC ] { 307 }
+ Constant [ int Pkcs11\CKM_DES3_MAC ] { 308 }
+ Constant [ int Pkcs11\CKM_DES3_MAC_GENERAL ] { 309 }
+ Constant [ int Pkcs11\CKM_DES3_CBC_PAD ] { 310 }
+ Constant [ int Pkcs11\CKM_DES3_CMAC_GENERAL ] { 311 }
+ Constant [ int Pkcs11\CKM_DES3_CMAC ] { 312 }
+ Constant [ int Pkcs11\CKM_CDMF_KEY_GEN ] { 320 }
+ Constant [ int Pkcs11\CKM_CDMF_ECB ] { 321 }
+ Constant [ int Pkcs11\CKM_CDMF_CBC ] { 322 }
+ Constant [ int Pkcs11\CKM_CDMF_MAC ] { 323 }
+ Constant [ int Pkcs11\CKM_CDMF_MAC_GENERAL ] { 324 }
+ Constant [ int Pkcs11\CKM_CDMF_CBC_PAD ] { 325 }
+ Constant [ int Pkcs11\CKM_DES_OFB64 ] { 336 }
+ Constant [ int Pkcs11\CKM_DES_OFB8 ] { 337 }
+ Constant [ int Pkcs11\CKM_DES_CFB64 ] { 338 }
+ Constant [ int Pkcs11\CKM_DES_CFB8 ] { 339 }
+ Constant [ int Pkcs11\CKM_MD2 ] { 512 }
+ Constant [ int Pkcs11\CKM_MD2_HMAC ] { 513 }
+ Constant [ int Pkcs11\CKM_MD2_HMAC_GENERAL ] { 514 }
+ Constant [ int Pkcs11\CKM_MD5 ] { 528 }
+ Constant [ int Pkcs11\CKM_MD5_HMAC ] { 529 }
+ Constant [ int Pkcs11\CKM_MD5_HMAC_GENERAL ] { 530 }
+ Constant [ int Pkcs11\CKM_SHA_1 ] { 544 }
+ Constant [ int Pkcs11\CKM_SHA_1_HMAC ] { 545 }
+ Constant [ int Pkcs11\CKM_SHA_1_HMAC_GENERAL ] { 546 }
+ Constant [ int Pkcs11\CKM_RIPEMD128 ] { 560 }
+ Constant [ int Pkcs11\CKM_RIPEMD128_HMAC ] { 561 }
+ Constant [ int Pkcs11\CKM_RIPEMD128_HMAC_GENERAL ] { 562 }
+ Constant [ int Pkcs11\CKM_RIPEMD160 ] { 576 }
+ Constant [ int Pkcs11\CKM_RIPEMD160_HMAC ] { 577 }
+ Constant [ int Pkcs11\CKM_RIPEMD160_HMAC_GENERAL ] { 578 }
+ Constant [ int Pkcs11\CKM_SHA256 ] { 592 }
+ Constant [ int Pkcs11\CKM_SHA256_HMAC ] { 593 }
+ Constant [ int Pkcs11\CKM_SHA256_HMAC_GENERAL ] { 594 }
+ Constant [ int Pkcs11\CKM_SHA224 ] { 597 }
+ Constant [ int Pkcs11\CKM_SHA224_HMAC ] { 598 }
+ Constant [ int Pkcs11\CKM_SHA224_HMAC_GENERAL ] { 599 }
+ Constant [ int Pkcs11\CKM_SHA384 ] { 608 }
+ Constant [ int Pkcs11\CKM_SHA384_HMAC ] { 609 }
+ Constant [ int Pkcs11\CKM_SHA384_HMAC_GENERAL ] { 610 }
+ Constant [ int Pkcs11\CKM_SHA512 ] { 624 }
+ Constant [ int Pkcs11\CKM_SHA512_HMAC ] { 625 }
+ Constant [ int Pkcs11\CKM_SHA512_HMAC_GENERAL ] { 626 }
+ Constant [ int Pkcs11\CKM_SECURID_KEY_GEN ] { 640 }
+ Constant [ int Pkcs11\CKM_SECURID ] { 642 }
+ Constant [ int Pkcs11\CKM_HOTP_KEY_GEN ] { 656 }
+ Constant [ int Pkcs11\CKM_HOTP ] { 657 }
+ Constant [ int Pkcs11\CKM_ACTI ] { 672 }
+ Constant [ int Pkcs11\CKM_ACTI_KEY_GEN ] { 673 }
+ Constant [ int Pkcs11\CKM_SHA3_256 ] { 688 }
+ Constant [ int Pkcs11\CKM_SHA3_256_HMAC ] { 689 }
+ Constant [ int Pkcs11\CKM_SHA3_256_HMAC_GENERAL ] { 690 }
+ Constant [ int Pkcs11\CKM_SHA3_256_KEY_GEN ] { 691 }
+ Constant [ int Pkcs11\CKM_SHA3_224 ] { 693 }
+ Constant [ int Pkcs11\CKM_SHA3_224_HMAC ] { 694 }
+ Constant [ int Pkcs11\CKM_SHA3_224_HMAC_GENERAL ] { 695 }
+ Constant [ int Pkcs11\CKM_SHA3_224_KEY_GEN ] { 696 }
+ Constant [ int Pkcs11\CKM_SHA3_384 ] { 704 }
+ Constant [ int Pkcs11\CKM_SHA3_384_HMAC ] { 705 }
+ Constant [ int Pkcs11\CKM_SHA3_384_HMAC_GENERAL ] { 706 }
+ Constant [ int Pkcs11\CKM_SHA3_384_KEY_GEN ] { 707 }
+ Constant [ int Pkcs11\CKM_SHA3_512 ] { 720 }
+ Constant [ int Pkcs11\CKM_SHA3_512_HMAC ] { 721 }
+ Constant [ int Pkcs11\CKM_SHA3_512_HMAC_GENERAL ] { 722 }
+ Constant [ int Pkcs11\CKM_SHA3_512_KEY_GEN ] { 723 }
+ Constant [ int Pkcs11\CKM_CAST_KEY_GEN ] { 768 }
+ Constant [ int Pkcs11\CKM_CAST_ECB ] { 769 }
+ Constant [ int Pkcs11\CKM_CAST_CBC ] { 770 }
+ Constant [ int Pkcs11\CKM_CAST_MAC ] { 771 }
+ Constant [ int Pkcs11\CKM_CAST_MAC_GENERAL ] { 772 }
+ Constant [ int Pkcs11\CKM_CAST_CBC_PAD ] { 773 }
+ Constant [ int Pkcs11\CKM_CAST3_KEY_GEN ] { 784 }
+ Constant [ int Pkcs11\CKM_CAST3_ECB ] { 785 }
+ Constant [ int Pkcs11\CKM_CAST3_CBC ] { 786 }
+ Constant [ int Pkcs11\CKM_CAST3_MAC ] { 787 }
+ Constant [ int Pkcs11\CKM_CAST3_MAC_GENERAL ] { 788 }
+ Constant [ int Pkcs11\CKM_CAST3_CBC_PAD ] { 789 }
+ Constant [ int Pkcs11\CKM_CAST5_KEY_GEN ] { 800 }
+ Constant [ int Pkcs11\CKM_CAST128_KEY_GEN ] { 800 }
+ Constant [ int Pkcs11\CKM_CAST5_ECB ] { 801 }
+ Constant [ int Pkcs11\CKM_CAST128_ECB ] { 801 }
+ Constant [ int Pkcs11\CKM_CAST5_CBC ] { 802 }
+ Constant [ int Pkcs11\CKM_CAST128_CBC ] { 802 }
+ Constant [ int Pkcs11\CKM_CAST5_MAC ] { 803 }
+ Constant [ int Pkcs11\CKM_CAST128_MAC ] { 803 }
+ Constant [ int Pkcs11\CKM_CAST5_MAC_GENERAL ] { 804 }
+ Constant [ int Pkcs11\CKM_CAST128_MAC_GENERAL ] { 804 }
+ Constant [ int Pkcs11\CKM_CAST5_CBC_PAD ] { 805 }
+ Constant [ int Pkcs11\CKM_CAST128_CBC_PAD ] { 805 }
+ Constant [ int Pkcs11\CKM_RC5_KEY_GEN ] { 816 }
+ Constant [ int Pkcs11\CKM_RC5_ECB ] { 817 }
+ Constant [ int Pkcs11\CKM_RC5_CBC ] { 818 }
+ Constant [ int Pkcs11\CKM_RC5_MAC ] { 819 }
+ Constant [ int Pkcs11\CKM_RC5_MAC_GENERAL ] { 820 }
+ Constant [ int Pkcs11\CKM_RC5_CBC_PAD ] { 821 }
+ Constant [ int Pkcs11\CKM_IDEA_KEY_GEN ] { 832 }
+ Constant [ int Pkcs11\CKM_IDEA_ECB ] { 833 }
+ Constant [ int Pkcs11\CKM_IDEA_CBC ] { 834 }
+ Constant [ int Pkcs11\CKM_IDEA_MAC ] { 835 }
+ Constant [ int Pkcs11\CKM_IDEA_MAC_GENERAL ] { 836 }
+ Constant [ int Pkcs11\CKM_IDEA_CBC_PAD ] { 837 }
+ Constant [ int Pkcs11\CKM_GENERIC_SECRET_KEY_GEN ] { 848 }
+ Constant [ int Pkcs11\CKM_CONCATENATE_BASE_AND_KEY ] { 864 }
+ Constant [ int Pkcs11\CKM_CONCATENATE_BASE_AND_DATA ] { 866 }
+ Constant [ int Pkcs11\CKM_CONCATENATE_DATA_AND_BASE ] { 867 }
+ Constant [ int Pkcs11\CKM_XOR_BASE_AND_DATA ] { 868 }
+ Constant [ int Pkcs11\CKM_EXTRACT_KEY_FROM_KEY ] { 869 }
+ Constant [ int Pkcs11\CKM_SSL3_PRE_MASTER_KEY_GEN ] { 880 }
+ Constant [ int Pkcs11\CKM_SSL3_MASTER_KEY_DERIVE ] { 881 }
+ Constant [ int Pkcs11\CKM_SSL3_KEY_AND_MAC_DERIVE ] { 882 }
+ Constant [ int Pkcs11\CKM_SSL3_MASTER_KEY_DERIVE_DH ] { 883 }
+ Constant [ int Pkcs11\CKM_TLS_PRE_MASTER_KEY_GEN ] { 884 }
+ Constant [ int Pkcs11\CKM_TLS_MASTER_KEY_DERIVE ] { 885 }
+ Constant [ int Pkcs11\CKM_TLS_KEY_AND_MAC_DERIVE ] { 886 }
+ Constant [ int Pkcs11\CKM_TLS_MASTER_KEY_DERIVE_DH ] { 887 }
+ Constant [ int Pkcs11\CKM_TLS_PRF ] { 888 }
+ Constant [ int Pkcs11\CKM_SSL3_MD5_MAC ] { 896 }
+ Constant [ int Pkcs11\CKM_SSL3_SHA1_MAC ] { 897 }
+ Constant [ int Pkcs11\CKM_MD5_KEY_DERIVATION ] { 912 }
+ Constant [ int Pkcs11\CKM_MD2_KEY_DERIVATION ] { 913 }
+ Constant [ int Pkcs11\CKM_SHA1_KEY_DERIVATION ] { 914 }
+ Constant [ int Pkcs11\CKM_SHA256_KEY_DERIVATION ] { 915 }
+ Constant [ int Pkcs11\CKM_SHA384_KEY_DERIVATION ] { 916 }
+ Constant [ int Pkcs11\CKM_SHA512_KEY_DERIVATION ] { 917 }
+ Constant [ int Pkcs11\CKM_SHA224_KEY_DERIVATION ] { 918 }
+ Constant [ int Pkcs11\CKM_SHA3_256_KEY_DERIVATION ] { 919 }
+ Constant [ int Pkcs11\CKM_SHA3_224_KEY_DERIVATION ] { 920 }
+ Constant [ int Pkcs11\CKM_SHA3_384_KEY_DERIVATION ] { 921 }
+ Constant [ int Pkcs11\CKM_SHA3_512_KEY_DERIVATION ] { 922 }
+ Constant [ int Pkcs11\CKM_SHAKE_128_KEY_DERIVATION ] { 923 }
+ Constant [ int Pkcs11\CKM_SHAKE_256_KEY_DERIVATION ] { 924 }
+ Constant [ int Pkcs11\CKM_SHA3_256_KEY_DERIVE ] { 919 }
+ Constant [ int Pkcs11\CKM_SHA3_224_KEY_DERIVE ] { 920 }
+ Constant [ int Pkcs11\CKM_SHA3_384_KEY_DERIVE ] { 921 }
+ Constant [ int Pkcs11\CKM_SHA3_512_KEY_DERIVE ] { 922 }
+ Constant [ int Pkcs11\CKM_SHAKE_128_KEY_DERIVE ] { 923 }
+ Constant [ int Pkcs11\CKM_SHAKE_256_KEY_DERIVE ] { 924 }
+ Constant [ int Pkcs11\CKM_PBE_MD2_DES_CBC ] { 928 }
+ Constant [ int Pkcs11\CKM_PBE_MD5_DES_CBC ] { 929 }
+ Constant [ int Pkcs11\CKM_PBE_MD5_CAST_CBC ] { 930 }
+ Constant [ int Pkcs11\CKM_PBE_MD5_CAST3_CBC ] { 931 }
+ Constant [ int Pkcs11\CKM_PBE_MD5_CAST5_CBC ] { 932 }
+ Constant [ int Pkcs11\CKM_PBE_MD5_CAST128_CBC ] { 932 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_CAST5_CBC ] { 933 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_CAST128_CBC ] { 933 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_RC4_128 ] { 934 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_RC4_40 ] { 935 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_DES3_EDE_CBC ] { 936 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_DES2_EDE_CBC ] { 937 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_RC2_128_CBC ] { 938 }
+ Constant [ int Pkcs11\CKM_PBE_SHA1_RC2_40_CBC ] { 939 }
+ Constant [ int Pkcs11\CKM_PKCS5_PBKD2 ] { 944 }
+ Constant [ int Pkcs11\CKM_PBA_SHA1_WITH_SHA1_HMAC ] { 960 }
+ Constant [ int Pkcs11\CKM_WTLS_PRE_MASTER_KEY_GEN ] { 976 }
+ Constant [ int Pkcs11\CKM_WTLS_MASTER_KEY_DERIVE ] { 977 }
+ Constant [ int Pkcs11\CKM_WTLS_MASTER_KEY_DERIVE_DH_ECC ] { 978 }
+ Constant [ int Pkcs11\CKM_WTLS_PRF ] { 979 }
+ Constant [ int Pkcs11\CKM_WTLS_SERVER_KEY_AND_MAC_DERIVE ] { 980 }
+ Constant [ int Pkcs11\CKM_WTLS_CLIENT_KEY_AND_MAC_DERIVE ] { 981 }
+ Constant [ int Pkcs11\CKM_TLS12_MAC ] { 984 }
+ Constant [ int Pkcs11\CKM_TLS12_KDF ] { 985 }
+ Constant [ int Pkcs11\CKM_TLS12_MASTER_KEY_DERIVE ] { 992 }
+ Constant [ int Pkcs11\CKM_TLS12_KEY_AND_MAC_DERIVE ] { 993 }
+ Constant [ int Pkcs11\CKM_TLS12_MASTER_KEY_DERIVE_DH ] { 994 }
+ Constant [ int Pkcs11\CKM_TLS12_KEY_SAFE_DERIVE ] { 995 }
+ Constant [ int Pkcs11\CKM_TLS_MAC ] { 996 }
+ Constant [ int Pkcs11\CKM_TLS_KDF ] { 997 }
+ Constant [ int Pkcs11\CKM_KEY_WRAP_LYNKS ] { 1024 }
+ Constant [ int Pkcs11\CKM_KEY_WRAP_SET_OAEP ] { 1025 }
+ Constant [ int Pkcs11\CKM_CMS_SIG ] { 1280 }
+ Constant [ int Pkcs11\CKM_KIP_DERIVE ] { 1296 }
+ Constant [ int Pkcs11\CKM_KIP_WRAP ] { 1297 }
+ Constant [ int Pkcs11\CKM_KIP_MAC ] { 1298 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_KEY_GEN ] { 1360 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_ECB ] { 1361 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_CBC ] { 1362 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_MAC ] { 1363 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_MAC_GENERAL ] { 1364 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_CBC_PAD ] { 1365 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_ECB_ENCRYPT_DATA ] { 1366 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_CBC_ENCRYPT_DATA ] { 1367 }
+ Constant [ int Pkcs11\CKM_CAMELLIA_CTR ] { 1368 }
+ Constant [ int Pkcs11\CKM_ARIA_KEY_GEN ] { 1376 }
+ Constant [ int Pkcs11\CKM_ARIA_ECB ] { 1377 }
+ Constant [ int Pkcs11\CKM_ARIA_CBC ] { 1378 }
+ Constant [ int Pkcs11\CKM_ARIA_MAC ] { 1379 }
+ Constant [ int Pkcs11\CKM_ARIA_MAC_GENERAL ] { 1380 }
+ Constant [ int Pkcs11\CKM_ARIA_CBC_PAD ] { 1381 }
+ Constant [ int Pkcs11\CKM_ARIA_ECB_ENCRYPT_DATA ] { 1382 }
+ Constant [ int Pkcs11\CKM_ARIA_CBC_ENCRYPT_DATA ] { 1383 }
+ Constant [ int Pkcs11\CKM_SEED_KEY_GEN ] { 1616 }
+ Constant [ int Pkcs11\CKM_SEED_ECB ] { 1617 }
+ Constant [ int Pkcs11\CKM_SEED_CBC ] { 1618 }
+ Constant [ int Pkcs11\CKM_SEED_MAC ] { 1619 }
+ Constant [ int Pkcs11\CKM_SEED_MAC_GENERAL ] { 1620 }
+ Constant [ int Pkcs11\CKM_SEED_CBC_PAD ] { 1621 }
+ Constant [ int Pkcs11\CKM_SEED_ECB_ENCRYPT_DATA ] { 1622 }
+ Constant [ int Pkcs11\CKM_SEED_CBC_ENCRYPT_DATA ] { 1623 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_KEY_GEN ] { 4096 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_ECB64 ] { 4097 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_CBC64 ] { 4098 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_OFB64 ] { 4099 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_CFB64 ] { 4100 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_CFB32 ] { 4101 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_CFB16 ] { 4102 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_CFB8 ] { 4103 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_WRAP ] { 4104 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_PRIVATE_WRAP ] { 4105 }
+ Constant [ int Pkcs11\CKM_SKIPJACK_RELAYX ] { 4106 }
+ Constant [ int Pkcs11\CKM_KEA_KEY_PAIR_GEN ] { 4112 }
+ Constant [ int Pkcs11\CKM_KEA_KEY_DERIVE ] { 4113 }
+ Constant [ int Pkcs11\CKM_KEA_DERIVE ] { 4114 }
+ Constant [ int Pkcs11\CKM_FORTEZZA_TIMESTAMP ] { 4128 }
+ Constant [ int Pkcs11\CKM_BATON_KEY_GEN ] { 4144 }
+ Constant [ int Pkcs11\CKM_BATON_ECB128 ] { 4145 }
+ Constant [ int Pkcs11\CKM_BATON_ECB96 ] { 4146 }
+ Constant [ int Pkcs11\CKM_BATON_CBC128 ] { 4147 }
+ Constant [ int Pkcs11\CKM_BATON_COUNTER ] { 4148 }
+ Constant [ int Pkcs11\CKM_BATON_SHUFFLE ] { 4149 }
+ Constant [ int Pkcs11\CKM_BATON_WRAP ] { 4150 }
+ Constant [ int Pkcs11\CKM_ECDSA_KEY_PAIR_GEN ] { 4160 }
+ Constant [ int Pkcs11\CKM_EC_KEY_PAIR_GEN ] { 4160 }
+ Constant [ int Pkcs11\CKM_ECDSA ] { 4161 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA1 ] { 4162 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA224 ] { 4163 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA256 ] { 4164 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA384 ] { 4165 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA512 ] { 4166 }
+ Constant [ int Pkcs11\CKM_EC_KEY_PAIR_GEN_W_EXTRA_BITS ] { 5131 }
+ Constant [ int Pkcs11\CKM_ECDH1_DERIVE ] { 4176 }
+ Constant [ int Pkcs11\CKM_ECDH1_COFACTOR_DERIVE ] { 4177 }
+ Constant [ int Pkcs11\CKM_ECMQV_DERIVE ] { 4178 }
+ Constant [ int Pkcs11\CKM_ECDH_AES_KEY_WRAP ] { 4179 }
+ Constant [ int Pkcs11\CKM_RSA_AES_KEY_WRAP ] { 4180 }
+ Constant [ int Pkcs11\CKM_JUNIPER_KEY_GEN ] { 4192 }
+ Constant [ int Pkcs11\CKM_JUNIPER_ECB128 ] { 4193 }
+ Constant [ int Pkcs11\CKM_JUNIPER_CBC128 ] { 4194 }
+ Constant [ int Pkcs11\CKM_JUNIPER_COUNTER ] { 4195 }
+ Constant [ int Pkcs11\CKM_JUNIPER_SHUFFLE ] { 4196 }
+ Constant [ int Pkcs11\CKM_JUNIPER_WRAP ] { 4197 }
+ Constant [ int Pkcs11\CKM_FASTHASH ] { 4208 }
+ Constant [ int Pkcs11\CKM_AES_XTS ] { 4209 }
+ Constant [ int Pkcs11\CKM_AES_XTS_KEY_GEN ] { 4210 }
+ Constant [ int Pkcs11\CKM_AES_KEY_GEN ] { 4224 }
+ Constant [ int Pkcs11\CKM_AES_ECB ] { 4225 }
+ Constant [ int Pkcs11\CKM_AES_CBC ] { 4226 }
+ Constant [ int Pkcs11\CKM_AES_MAC ] { 4227 }
+ Constant [ int Pkcs11\CKM_AES_MAC_GENERAL ] { 4228 }
+ Constant [ int Pkcs11\CKM_AES_CBC_PAD ] { 4229 }
+ Constant [ int Pkcs11\CKM_AES_CTR ] { 4230 }
+ Constant [ int Pkcs11\CKM_AES_GCM ] { 4231 }
+ Constant [ int Pkcs11\CKM_AES_CCM ] { 4232 }
+ Constant [ int Pkcs11\CKM_AES_CTS ] { 4233 }
+ Constant [ int Pkcs11\CKM_AES_CMAC ] { 4234 }
+ Constant [ int Pkcs11\CKM_AES_CMAC_GENERAL ] { 4235 }
+ Constant [ int Pkcs11\CKM_AES_XCBC_MAC ] { 4236 }
+ Constant [ int Pkcs11\CKM_AES_XCBC_MAC_96 ] { 4237 }
+ Constant [ int Pkcs11\CKM_AES_GMAC ] { 4238 }
+ Constant [ int Pkcs11\CKM_BLOWFISH_KEY_GEN ] { 4240 }
+ Constant [ int Pkcs11\CKM_BLOWFISH_CBC ] { 4241 }
+ Constant [ int Pkcs11\CKM_TWOFISH_KEY_GEN ] { 4242 }
+ Constant [ int Pkcs11\CKM_TWOFISH_CBC ] { 4243 }
+ Constant [ int Pkcs11\CKM_BLOWFISH_CBC_PAD ] { 4244 }
+ Constant [ int Pkcs11\CKM_TWOFISH_CBC_PAD ] { 4245 }
+ Constant [ int Pkcs11\CKM_DES_ECB_ENCRYPT_DATA ] { 4352 }
+ Constant [ int Pkcs11\CKM_DES_CBC_ENCRYPT_DATA ] { 4353 }
+ Constant [ int Pkcs11\CKM_DES3_ECB_ENCRYPT_DATA ] { 4354 }
+ Constant [ int Pkcs11\CKM_DES3_CBC_ENCRYPT_DATA ] { 4355 }
+ Constant [ int Pkcs11\CKM_AES_ECB_ENCRYPT_DATA ] { 4356 }
+ Constant [ int Pkcs11\CKM_AES_CBC_ENCRYPT_DATA ] { 4357 }
+ Constant [ int Pkcs11\CKM_GOSTR3410_KEY_PAIR_GEN ] { 4608 }
+ Constant [ int Pkcs11\CKM_GOSTR3410 ] { 4609 }
+ Constant [ int Pkcs11\CKM_GOSTR3410_WITH_GOSTR3411 ] { 4610 }
+ Constant [ int Pkcs11\CKM_GOSTR3410_KEY_WRAP ] { 4611 }
+ Constant [ int Pkcs11\CKM_GOSTR3410_DERIVE ] { 4612 }
+ Constant [ int Pkcs11\CKM_GOSTR3411 ] { 4624 }
+ Constant [ int Pkcs11\CKM_GOSTR3411_HMAC ] { 4625 }
+ Constant [ int Pkcs11\CKM_GOST28147_KEY_GEN ] { 4640 }
+ Constant [ int Pkcs11\CKM_GOST28147_ECB ] { 4641 }
+ Constant [ int Pkcs11\CKM_GOST28147 ] { 4642 }
+ Constant [ int Pkcs11\CKM_GOST28147_MAC ] { 4643 }
+ Constant [ int Pkcs11\CKM_GOST28147_KEY_WRAP ] { 4644 }
+ Constant [ int Pkcs11\CKM_CHACHA20_KEY_GEN ] { 4645 }
+ Constant [ int Pkcs11\CKM_CHACHA20 ] { 4646 }
+ Constant [ int Pkcs11\CKM_POLY1305_KEY_GEN ] { 4647 }
+ Constant [ int Pkcs11\CKM_POLY1305 ] { 4648 }
+ Constant [ int Pkcs11\CKM_DSA_PARAMETER_GEN ] { 8192 }
+ Constant [ int Pkcs11\CKM_DH_PKCS_PARAMETER_GEN ] { 8193 }
+ Constant [ int Pkcs11\CKM_X9_42_DH_PARAMETER_GEN ] { 8194 }
+ Constant [ int Pkcs11\CKM_DSA_PROBABILISTIC_PARAMETER_GEN ] { 8195 }
+ Constant [ int Pkcs11\CKM_DSA_PROBABLISTIC_PARAMETER_GEN ] { 8195 }
+ Constant [ int Pkcs11\CKM_DSA_SHAWE_TAYLOR_PARAMETER_GEN ] { 8196 }
+ Constant [ int Pkcs11\CKM_DSA_FIPS_G_GEN ] { 8197 }
+ Constant [ int Pkcs11\CKM_AES_OFB ] { 8452 }
+ Constant [ int Pkcs11\CKM_AES_CFB64 ] { 8453 }
+ Constant [ int Pkcs11\CKM_AES_CFB8 ] { 8454 }
+ Constant [ int Pkcs11\CKM_AES_CFB128 ] { 8455 }
+ Constant [ int Pkcs11\CKM_AES_CFB1 ] { 8456 }
+ Constant [ int Pkcs11\CKM_AES_KEY_WRAP ] { 8457 }
+ Constant [ int Pkcs11\CKM_AES_KEY_WRAP_PAD ] { 8458 }
+ Constant [ int Pkcs11\CKM_AES_KEY_WRAP_KWP ] { 8459 }
+ Constant [ int Pkcs11\CKM_RSA_PKCS_TPM_1_1 ] { 16385 }
+ Constant [ int Pkcs11\CKM_RSA_PKCS_OAEP_TPM_1_1 ] { 16386 }
+ Constant [ int Pkcs11\CKM_SHA_1_KEY_GEN ] { 16387 }
+ Constant [ int Pkcs11\CKM_SHA224_KEY_GEN ] { 16388 }
+ Constant [ int Pkcs11\CKM_SHA256_KEY_GEN ] { 16389 }
+ Constant [ int Pkcs11\CKM_SHA384_KEY_GEN ] { 16390 }
+ Constant [ int Pkcs11\CKM_SHA512_KEY_GEN ] { 16391 }
+ Constant [ int Pkcs11\CKM_SHA512_224_KEY_GEN ] { 16392 }
+ Constant [ int Pkcs11\CKM_SHA512_256_KEY_GEN ] { 16393 }
+ Constant [ int Pkcs11\CKM_SHA512_T_KEY_GEN ] { 16394 }
+ Constant [ int Pkcs11\CKM_NULL ] { 16395 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_160 ] { 16396 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_160_HMAC ] { 16397 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_160_HMAC_GENERAL ] { 16398 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_160_KEY_DERIVE ] { 16399 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_160_KEY_GEN ] { 16400 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_256 ] { 16401 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_256_HMAC ] { 16402 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_256_HMAC_GENERAL ] { 16403 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_256_KEY_DERIVE ] { 16404 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_256_KEY_GEN ] { 16405 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_384 ] { 16406 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_384_HMAC ] { 16407 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_384_HMAC_GENERAL ] { 16408 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_384_KEY_DERIVE ] { 16409 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_384_KEY_GEN ] { 16410 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_512 ] { 16411 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_512_HMAC ] { 16412 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_512_HMAC_GENERAL ] { 16413 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_512_KEY_DERIVE ] { 16414 }
+ Constant [ int Pkcs11\CKM_BLAKE2B_512_KEY_GEN ] { 16415 }
+ Constant [ int Pkcs11\CKM_SALSA20 ] { 16416 }
+ Constant [ int Pkcs11\CKM_CHACHA20_POLY1305 ] { 16417 }
+ Constant [ int Pkcs11\CKM_SALSA20_POLY1305 ] { 16418 }
+ Constant [ int Pkcs11\CKM_X3DH_INITIALIZE ] { 16419 }
+ Constant [ int Pkcs11\CKM_X3DH_RESPOND ] { 16420 }
+ Constant [ int Pkcs11\CKM_X2RATCHET_INITIALIZE ] { 16421 }
+ Constant [ int Pkcs11\CKM_X2RATCHET_RESPOND ] { 16422 }
+ Constant [ int Pkcs11\CKM_X2RATCHET_ENCRYPT ] { 16423 }
+ Constant [ int Pkcs11\CKM_X2RATCHET_DECRYPT ] { 16424 }
+ Constant [ int Pkcs11\CKM_XEDDSA ] { 16425 }
+ Constant [ int Pkcs11\CKM_HKDF_DERIVE ] { 16426 }
+ Constant [ int Pkcs11\CKM_HKDF_DATA ] { 16427 }
+ Constant [ int Pkcs11\CKM_HKDF_KEY_GEN ] { 16428 }
+ Constant [ int Pkcs11\CKM_SALSA20_KEY_GEN ] { 16429 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA3_224 ] { 4167 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA3_256 ] { 4168 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA3_384 ] { 4169 }
+ Constant [ int Pkcs11\CKM_ECDSA_SHA3_512 ] { 4170 }
+ Constant [ int Pkcs11\CKM_EC_EDWARDS_KEY_PAIR_GEN ] { 4181 }
+ Constant [ int Pkcs11\CKM_EC_MONTGOMERY_KEY_PAIR_GEN ] { 4182 }
+ Constant [ int Pkcs11\CKM_EDDSA ] { 4183 }
+ Constant [ int Pkcs11\CKM_SP800_108_COUNTER_KDF ] { 940 }
+ Constant [ int Pkcs11\CKM_SP800_108_FEEDBACK_KDF ] { 941 }
+ Constant [ int Pkcs11\CKM_SP800_108_DOUBLE_PIPELINE_KDF ] { 942 }
+ Constant [ int Pkcs11\CKM_VENDOR_DEFINED ] { 2147483648 }
+ Constant [ int Pkcs11\CKF_RW_SESSION ] { 2 }
+ Constant [ int Pkcs11\CKF_SERIAL_SESSION ] { 4 }
+ Constant [ int Pkcs11\CKF_RNG ] { 1 }
+ Constant [ int Pkcs11\CKF_WRITE_PROTECTED ] { 2 }
+ Constant [ int Pkcs11\CKF_LOGIN_REQUIRED ] { 4 }
+ Constant [ int Pkcs11\CKF_USER_PIN_INITIALIZED ] { 8 }
+ Constant [ int Pkcs11\CKF_RESTORE_KEY_NOT_NEEDED ] { 32 }
+ Constant [ int Pkcs11\CKF_CLOCK_ON_TOKEN ] { 64 }
+ Constant [ int Pkcs11\CKF_PROTECTED_AUTHENTICATION_PATH ] { 256 }
+ Constant [ int Pkcs11\CKF_DUAL_CRYPTO_OPERATIONS ] { 512 }
+ Constant [ int Pkcs11\CKF_TOKEN_INITIALIZED ] { 1024 }
+ Constant [ int Pkcs11\CKF_SECONDARY_AUTHENTICATION ] { 2048 }
+ Constant [ int Pkcs11\CKF_USER_PIN_COUNT_LOW ] { 65536 }
+ Constant [ int Pkcs11\CKF_USER_PIN_FINAL_TRY ] { 131072 }
+ Constant [ int Pkcs11\CKF_USER_PIN_LOCKED ] { 262144 }
+ Constant [ int Pkcs11\CKF_USER_PIN_TO_BE_CHANGED ] { 524288 }
+ Constant [ int Pkcs11\CKF_SO_PIN_COUNT_LOW ] { 1048576 }
+ Constant [ int Pkcs11\CKF_SO_PIN_FINAL_TRY ] { 2097152 }
+ Constant [ int Pkcs11\CKF_SO_PIN_LOCKED ] { 4194304 }
+ Constant [ int Pkcs11\CKF_SO_PIN_TO_BE_CHANGED ] { 8388608 }
+ Constant [ int Pkcs11\CKF_ERROR_STATE ] { 16777216 }
+ Constant [ int Pkcs11\CKU_SO ] { 0 }
+ Constant [ int Pkcs11\CKU_USER ] { 1 }
+ Constant [ int Pkcs11\CKU_CONTEXT_SPECIFIC ] { 2 }
+ Constant [ int Pkcs11\CKS_RO_PUBLIC_SESSION ] { 0 }
+ Constant [ int Pkcs11\CKS_RO_USER_FUNCTIONS ] { 1 }
+ Constant [ int Pkcs11\CKS_RW_PUBLIC_SESSION ] { 2 }
+ Constant [ int Pkcs11\CKS_RW_USER_FUNCTIONS ] { 3 }
+ Constant [ int Pkcs11\CKS_RW_SO_FUNCTIONS ] { 4 }
+ Constant [ int Pkcs11\CKA_CLASS ] { 0 }
+ Constant [ int Pkcs11\CKA_TOKEN ] { 1 }
+ Constant [ int Pkcs11\CKA_PRIVATE ] { 2 }
+ Constant [ int Pkcs11\CKA_LABEL ] { 3 }
+ Constant [ int Pkcs11\CKA_APPLICATION ] { 16 }
+ Constant [ int Pkcs11\CKA_VALUE ] { 17 }
+ Constant [ int Pkcs11\CKA_OBJECT_ID ] { 18 }
+ Constant [ int Pkcs11\CKA_CERTIFICATE_TYPE ] { 128 }
+ Constant [ int Pkcs11\CKA_ISSUER ] { 129 }
+ Constant [ int Pkcs11\CKA_SERIAL_NUMBER ] { 130 }
+ Constant [ int Pkcs11\CKA_AC_ISSUER ] { 131 }
+ Constant [ int Pkcs11\CKA_OWNER ] { 132 }
+ Constant [ int Pkcs11\CKA_ATTR_TYPES ] { 133 }
+ Constant [ int Pkcs11\CKA_TRUSTED ] { 134 }
+ Constant [ int Pkcs11\CKA_CERTIFICATE_CATEGORY ] { 135 }
+ Constant [ int Pkcs11\CKA_JAVA_MIDP_SECURITY_DOMAIN ] { 136 }
+ Constant [ int Pkcs11\CKA_URL ] { 137 }
+ Constant [ int Pkcs11\CKA_HASH_OF_SUBJECT_PUBLIC_KEY ] { 138 }
+ Constant [ int Pkcs11\CKA_HASH_OF_ISSUER_PUBLIC_KEY ] { 139 }
+ Constant [ int Pkcs11\CKA_NAME_HASH_ALGORITHM ] { 140 }
+ Constant [ int Pkcs11\CKA_CHECK_VALUE ] { 144 }
+ Constant [ int Pkcs11\CKA_KEY_TYPE ] { 256 }
+ Constant [ int Pkcs11\CKA_SUBJECT ] { 257 }
+ Constant [ int Pkcs11\CKA_ID ] { 258 }
+ Constant [ int Pkcs11\CKA_SENSITIVE ] { 259 }
+ Constant [ int Pkcs11\CKA_ENCRYPT ] { 260 }
+ Constant [ int Pkcs11\CKA_DECRYPT ] { 261 }
+ Constant [ int Pkcs11\CKA_WRAP ] { 262 }
+ Constant [ int Pkcs11\CKA_UNWRAP ] { 263 }
+ Constant [ int Pkcs11\CKA_SIGN ] { 264 }
+ Constant [ int Pkcs11\CKA_SIGN_RECOVER ] { 265 }
+ Constant [ int Pkcs11\CKA_VERIFY ] { 266 }
+ Constant [ int Pkcs11\CKA_VERIFY_RECOVER ] { 267 }
+ Constant [ int Pkcs11\CKA_DERIVE ] { 268 }
+ Constant [ int Pkcs11\CKA_START_DATE ] { 272 }
+ Constant [ int Pkcs11\CKA_END_DATE ] { 273 }
+ Constant [ int Pkcs11\CKA_MODULUS ] { 288 }
+ Constant [ int Pkcs11\CKA_MODULUS_BITS ] { 289 }
+ Constant [ int Pkcs11\CKA_PUBLIC_EXPONENT ] { 290 }
+ Constant [ int Pkcs11\CKA_PRIVATE_EXPONENT ] { 291 }
+ Constant [ int Pkcs11\CKA_PRIME_1 ] { 292 }
+ Constant [ int Pkcs11\CKA_PRIME_2 ] { 293 }
+ Constant [ int Pkcs11\CKA_EXPONENT_1 ] { 294 }
+ Constant [ int Pkcs11\CKA_EXPONENT_2 ] { 295 }
+ Constant [ int Pkcs11\CKA_COEFFICIENT ] { 296 }
+ Constant [ int Pkcs11\CKA_PUBLIC_KEY_INFO ] { 297 }
+ Constant [ int Pkcs11\CKA_PRIME ] { 304 }
+ Constant [ int Pkcs11\CKA_SUBPRIME ] { 305 }
+ Constant [ int Pkcs11\CKA_BASE ] { 306 }
+ Constant [ int Pkcs11\CKA_PRIME_BITS ] { 307 }
+ Constant [ int Pkcs11\CKA_SUBPRIME_BITS ] { 308 }
+ Constant [ int Pkcs11\CKA_SUB_PRIME_BITS ] { 308 }
+ Constant [ int Pkcs11\CKA_VALUE_BITS ] { 352 }
+ Constant [ int Pkcs11\CKA_VALUE_LEN ] { 353 }
+ Constant [ int Pkcs11\CKA_EXTRACTABLE ] { 354 }
+ Constant [ int Pkcs11\CKA_LOCAL ] { 355 }
+ Constant [ int Pkcs11\CKA_NEVER_EXTRACTABLE ] { 356 }
+ Constant [ int Pkcs11\CKA_ALWAYS_SENSITIVE ] { 357 }
+ Constant [ int Pkcs11\CKA_KEY_GEN_MECHANISM ] { 358 }
+ Constant [ int Pkcs11\CKA_MODIFIABLE ] { 368 }
+ Constant [ int Pkcs11\CKA_COPYABLE ] { 369 }
+ Constant [ int Pkcs11\CKA_DESTROYABLE ] { 370 }
+ Constant [ int Pkcs11\CKA_ECDSA_PARAMS ] { 384 }
+ Constant [ int Pkcs11\CKA_EC_PARAMS ] { 384 }
+ Constant [ int Pkcs11\CKA_EC_POINT ] { 385 }
+ Constant [ int Pkcs11\CKA_SECONDARY_AUTH ] { 512 }
+ Constant [ int Pkcs11\CKA_AUTH_PIN_FLAGS ] { 513 }
+ Constant [ int Pkcs11\CKA_ALWAYS_AUTHENTICATE ] { 514 }
+ Constant [ int Pkcs11\CKA_WRAP_WITH_TRUSTED ] { 528 }
+ Constant [ int Pkcs11\CKA_WRAP_TEMPLATE ] { 1073742353 }
+ Constant [ int Pkcs11\CKA_UNWRAP_TEMPLATE ] { 1073742354 }
+ Constant [ int Pkcs11\CKA_DERIVE_TEMPLATE ] { 1073742355 }
+ Constant [ int Pkcs11\CKA_OTP_FORMAT ] { 544 }
+ Constant [ int Pkcs11\CKA_OTP_LENGTH ] { 545 }
+ Constant [ int Pkcs11\CKA_OTP_TIME_INTERVAL ] { 546 }
+ Constant [ int Pkcs11\CKA_OTP_USER_FRIENDLY_MODE ] { 547 }
+ Constant [ int Pkcs11\CKA_OTP_CHALLENGE_REQUIREMENT ] { 548 }
+ Constant [ int Pkcs11\CKA_OTP_TIME_REQUIREMENT ] { 549 }
+ Constant [ int Pkcs11\CKA_OTP_COUNTER_REQUIREMENT ] { 550 }
+ Constant [ int Pkcs11\CKA_OTP_PIN_REQUIREMENT ] { 551 }
+ Constant [ int Pkcs11\CKA_OTP_COUNTER ] { 558 }
+ Constant [ int Pkcs11\CKA_OTP_TIME ] { 559 }
+ Constant [ int Pkcs11\CKA_OTP_USER_IDENTIFIER ] { 554 }
+ Constant [ int Pkcs11\CKA_OTP_SERVICE_IDENTIFIER ] { 555 }
+ Constant [ int Pkcs11\CKA_OTP_SERVICE_LOGO ] { 556 }
+ Constant [ int Pkcs11\CKA_OTP_SERVICE_LOGO_TYPE ] { 557 }
+ Constant [ int Pkcs11\CKA_GOSTR3410_PARAMS ] { 592 }
+ Constant [ int Pkcs11\CKA_GOSTR3411_PARAMS ] { 593 }
+ Constant [ int Pkcs11\CKA_GOST28147_PARAMS ] { 594 }
+ Constant [ int Pkcs11\CKA_HW_FEATURE_TYPE ] { 768 }
+ Constant [ int Pkcs11\CKA_RESET_ON_INIT ] { 769 }
+ Constant [ int Pkcs11\CKA_HAS_RESET ] { 770 }
+ Constant [ int Pkcs11\CKA_PIXEL_X ] { 1024 }
+ Constant [ int Pkcs11\CKA_PIXEL_Y ] { 1025 }
+ Constant [ int Pkcs11\CKA_RESOLUTION ] { 1026 }
+ Constant [ int Pkcs11\CKA_CHAR_ROWS ] { 1027 }
+ Constant [ int Pkcs11\CKA_CHAR_COLUMNS ] { 1028 }
+ Constant [ int Pkcs11\CKA_COLOR ] { 1029 }
+ Constant [ int Pkcs11\CKA_BITS_PER_PIXEL ] { 1030 }
+ Constant [ int Pkcs11\CKA_CHAR_SETS ] { 1152 }
+ Constant [ int Pkcs11\CKA_ENCODING_METHODS ] { 1153 }
+ Constant [ int Pkcs11\CKA_MIME_TYPES ] { 1154 }
+ Constant [ int Pkcs11\CKA_MECHANISM_TYPE ] { 1280 }
+ Constant [ int Pkcs11\CKA_REQUIRED_CMS_ATTRIBUTES ] { 1281 }
+ Constant [ int Pkcs11\CKA_DEFAULT_CMS_ATTRIBUTES ] { 1282 }
+ Constant [ int Pkcs11\CKA_SUPPORTED_CMS_ATTRIBUTES ] { 1283 }
+ Constant [ int Pkcs11\CKA_ALLOWED_MECHANISMS ] { 1073743360 }
+ Constant [ int Pkcs11\CKA_PROFILE_ID ] { 1537 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_BAG ] { 1538 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_BAGSIZE ] { 1539 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_BOBS1STMSG ] { 1540 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_CKR ] { 1541 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_CKS ] { 1542 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_DHP ] { 1543 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_DHR ] { 1544 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_DHS ] { 1545 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_HKR ] { 1546 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_HKS ] { 1547 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_ISALICE ] { 1548 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_NHKR ] { 1549 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_NHKS ] { 1550 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_NR ] { 1551 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_NS ] { 1552 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_PNS ] { 1553 }
+ Constant [ int Pkcs11\CKA_X2RATCHET_RK ] { 1554 }
+ Constant [ int Pkcs11\CKA_VENDOR_DEFINED ] { 2147483648 }
+ Constant [ int Pkcs11\CKO_DATA ] { 0 }
+ Constant [ int Pkcs11\CKO_CERTIFICATE ] { 1 }
+ Constant [ int Pkcs11\CKO_PUBLIC_KEY ] { 2 }
+ Constant [ int Pkcs11\CKO_PRIVATE_KEY ] { 3 }
+ Constant [ int Pkcs11\CKO_SECRET_KEY ] { 4 }
+ Constant [ int Pkcs11\CKO_HW_FEATURE ] { 5 }
+ Constant [ int Pkcs11\CKO_DOMAIN_PARAMETERS ] { 6 }
+ Constant [ int Pkcs11\CKO_MECHANISM ] { 7 }
+ Constant [ int Pkcs11\CKO_OTP_KEY ] { 8 }
+ Constant [ int Pkcs11\CKO_VENDOR_DEFINED ] { 2147483648 }
+ Constant [ int Pkcs11\CKK_RSA ] { 0 }
+ Constant [ int Pkcs11\CKK_DSA ] { 1 }
+ Constant [ int Pkcs11\CKK_DH ] { 2 }
+ Constant [ int Pkcs11\CKK_ECDSA ] { 3 }
+ Constant [ int Pkcs11\CKK_EC ] { 3 }
+ Constant [ int Pkcs11\CKK_X9_42_DH ] { 4 }
+ Constant [ int Pkcs11\CKK_KEA ] { 5 }
+ Constant [ int Pkcs11\CKK_GENERIC_SECRET ] { 16 }
+ Constant [ int Pkcs11\CKK_RC2 ] { 17 }
+ Constant [ int Pkcs11\CKK_RC4 ] { 18 }
+ Constant [ int Pkcs11\CKK_DES ] { 19 }
+ Constant [ int Pkcs11\CKK_DES2 ] { 20 }
+ Constant [ int Pkcs11\CKK_DES3 ] { 21 }
+ Constant [ int Pkcs11\CKK_CAST ] { 22 }
+ Constant [ int Pkcs11\CKK_CAST3 ] { 23 }
+ Constant [ int Pkcs11\CKK_CAST5 ] { 24 }
+ Constant [ int Pkcs11\CKK_CAST128 ] { 24 }
+ Constant [ int Pkcs11\CKK_RC5 ] { 25 }
+ Constant [ int Pkcs11\CKK_IDEA ] { 26 }
+ Constant [ int Pkcs11\CKK_SKIPJACK ] { 27 }
+ Constant [ int Pkcs11\CKK_BATON ] { 28 }
+ Constant [ int Pkcs11\CKK_JUNIPER ] { 29 }
+ Constant [ int Pkcs11\CKK_CDMF ] { 30 }
+ Constant [ int Pkcs11\CKK_AES ] { 31 }
+ Constant [ int Pkcs11\CKK_BLOWFISH ] { 32 }
+ Constant [ int Pkcs11\CKK_TWOFISH ] { 33 }
+ Constant [ int Pkcs11\CKK_SECURID ] { 34 }
+ Constant [ int Pkcs11\CKK_HOTP ] { 35 }
+ Constant [ int Pkcs11\CKK_ACTI ] { 36 }
+ Constant [ int Pkcs11\CKK_CAMELLIA ] { 37 }
+ Constant [ int Pkcs11\CKK_ARIA ] { 38 }
+ Constant [ int Pkcs11\CKK_MD5_HMAC ] { 39 }
+ Constant [ int Pkcs11\CKK_SHA_1_HMAC ] { 40 }
+ Constant [ int Pkcs11\CKK_RIPEMD128_HMAC ] { 41 }
+ Constant [ int Pkcs11\CKK_RIPEMD160_HMAC ] { 42 }
+ Constant [ int Pkcs11\CKK_SHA256_HMAC ] { 43 }
+ Constant [ int Pkcs11\CKK_SHA384_HMAC ] { 44 }
+ Constant [ int Pkcs11\CKK_SHA512_HMAC ] { 45 }
+ Constant [ int Pkcs11\CKK_SHA224_HMAC ] { 46 }
+ Constant [ int Pkcs11\CKK_SEED ] { 47 }
+ Constant [ int Pkcs11\CKK_GOSTR3410 ] { 48 }
+ Constant [ int Pkcs11\CKK_GOSTR3411 ] { 49 }
+ Constant [ int Pkcs11\CKK_GOST28147 ] { 50 }
+ Constant [ int Pkcs11\CKK_CHACHA20 ] { 51 }
+ Constant [ int Pkcs11\CKK_POLY1305 ] { 52 }
+ Constant [ int Pkcs11\CKK_AES_XTS ] { 53 }
+ Constant [ int Pkcs11\CKK_SHA3_224_HMAC ] { 54 }
+ Constant [ int Pkcs11\CKK_SHA3_256_HMAC ] { 55 }
+ Constant [ int Pkcs11\CKK_SHA3_384_HMAC ] { 56 }
+ Constant [ int Pkcs11\CKK_SHA3_512_HMAC ] { 57 }
+ Constant [ int Pkcs11\CKK_BLAKE2B_160_HMAC ] { 58 }
+ Constant [ int Pkcs11\CKK_BLAKE2B_256_HMAC ] { 59 }
+ Constant [ int Pkcs11\CKK_BLAKE2B_384_HMAC ] { 60 }
+ Constant [ int Pkcs11\CKK_BLAKE2B_512_HMAC ] { 61 }
+ Constant [ int Pkcs11\CKK_SALSA20 ] { 62 }
+ Constant [ int Pkcs11\CKK_X2RATCHET ] { 63 }
+ Constant [ int Pkcs11\CKK_EC_EDWARDS ] { 64 }
+ Constant [ int Pkcs11\CKK_EC_MONTGOMERY ] { 65 }
+ Constant [ int Pkcs11\CKK_HKDF ] { 66 }
+ Constant [ int Pkcs11\CKK_SHA512_224_HMAC ] { 67 }
+ Constant [ int Pkcs11\CKK_SHA512_256_HMAC ] { 68 }
+ Constant [ int Pkcs11\CKK_SHA512_T_HMAC ] { 69 }
+ Constant [ int Pkcs11\CKK_VENDOR_DEFINED ] { 2147483648 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA1 ] { 1 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA256 ] { 2 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA384 ] { 3 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA512 ] { 4 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA224 ] { 5 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA3_224 ] { 6 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA3_256 ] { 7 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA3_384 ] { 8 }
+ Constant [ int Pkcs11\CKG_MGF1_SHA3_512 ] { 9 }
+ Constant [ int Pkcs11\CKZ_DATA_SPECIFIED ] { 1 }
+ Constant [ int Pkcs11\CKD_NULL ] { 1 }
+ Constant [ int Pkcs11\CKD_SHA1_KDF ] { 2 }
+ Constant [ int Pkcs11\CKD_SHA1_KDF_ASN1 ] { 3 }
+ Constant [ int Pkcs11\CKD_SHA1_KDF_CONCATENATE ] { 4 }
+ Constant [ int Pkcs11\CKD_SHA224_KDF ] { 5 }
+ Constant [ int Pkcs11\CKD_SHA256_KDF ] { 6 }
+ Constant [ int Pkcs11\CKD_SHA384_KDF ] { 7 }
+ Constant [ int Pkcs11\CKD_SHA512_KDF ] { 8 }
+ Constant [ int Pkcs11\CKD_CPDIVERSIFY_KDF ] { 9 }
+ Constant [ int Pkcs11\CKD_SHA3_224_KDF ] { 10 }
+ Constant [ int Pkcs11\CKD_SHA3_256_KDF ] { 11 }
+ Constant [ int Pkcs11\CKD_SHA3_384_KDF ] { 12 }
+ Constant [ int Pkcs11\CKD_SHA3_512_KDF ] { 13 }
+ Constant [ int Pkcs11\CKD_SHA1_KDF_SP800 ] { 14 }
+ Constant [ int Pkcs11\CKD_SHA224_KDF_SP800 ] { 15 }
+ Constant [ int Pkcs11\CKD_SHA256_KDF_SP800 ] { 16 }
+ Constant [ int Pkcs11\CKD_SHA384_KDF_SP800 ] { 17 }
+ Constant [ int Pkcs11\CKD_SHA512_KDF_SP800 ] { 18 }
+ Constant [ int Pkcs11\CKD_SHA3_224_KDF_SP800 ] { 19 }
+ Constant [ int Pkcs11\CKD_SHA3_256_KDF_SP800 ] { 20 }
+ Constant [ int Pkcs11\CKD_SHA3_384_KDF_SP800 ] { 21 }
+ Constant [ int Pkcs11\CKD_SHA3_512_KDF_SP800 ] { 22 }
+ Constant [ int Pkcs11\CKD_BLAKE2B_160_KDF ] { 23 }
+ Constant [ int Pkcs11\CKD_BLAKE2B_256_KDF ] { 24 }
+ Constant [ int Pkcs11\CKD_BLAKE2B_384_KDF ] { 25 }
+ Constant [ int Pkcs11\CKD_BLAKE2B_512_KDF ] { 26 }
+ Constant [ int Pkcs11\CKR_OK ] { 0 }
+ Constant [ int Pkcs11\CKR_CANCEL ] { 1 }
+ Constant [ int Pkcs11\CKR_HOST_MEMORY ] { 2 }
+ Constant [ int Pkcs11\CKR_SLOT_ID_INVALID ] { 3 }
+ Constant [ int Pkcs11\CKR_GENERAL_ERROR ] { 5 }
+ Constant [ int Pkcs11\CKR_FUNCTION_FAILED ] { 6 }
+ Constant [ int Pkcs11\CKR_ARGUMENTS_BAD ] { 7 }
+ Constant [ int Pkcs11\CKR_NO_EVENT ] { 8 }
+ Constant [ int Pkcs11\CKR_NEED_TO_CREATE_THREADS ] { 9 }
+ Constant [ int Pkcs11\CKR_CANT_LOCK ] { 10 }
+ Constant [ int Pkcs11\CKR_ATTRIBUTE_READ_ONLY ] { 16 }
+ Constant [ int Pkcs11\CKR_ATTRIBUTE_SENSITIVE ] { 17 }
+ Constant [ int Pkcs11\CKR_ATTRIBUTE_TYPE_INVALID ] { 18 }
+ Constant [ int Pkcs11\CKR_ATTRIBUTE_VALUE_INVALID ] { 19 }
+ Constant [ int Pkcs11\CKR_DATA_INVALID ] { 32 }
+ Constant [ int Pkcs11\CKR_DATA_LEN_RANGE ] { 33 }
+ Constant [ int Pkcs11\CKR_DEVICE_ERROR ] { 48 }
+ Constant [ int Pkcs11\CKR_DEVICE_MEMORY ] { 49 }
+ Constant [ int Pkcs11\CKR_DEVICE_REMOVED ] { 50 }
+ Constant [ int Pkcs11\CKR_ENCRYPTED_DATA_INVALID ] { 64 }
+ Constant [ int Pkcs11\CKR_ENCRYPTED_DATA_LEN_RANGE ] { 65 }
+ Constant [ int Pkcs11\CKR_FUNCTION_CANCELED ] { 80 }
+ Constant [ int Pkcs11\CKR_FUNCTION_NOT_PARALLEL ] { 81 }
+ Constant [ int Pkcs11\CKR_FUNCTION_NOT_SUPPORTED ] { 84 }
+ Constant [ int Pkcs11\CKR_KEY_HANDLE_INVALID ] { 96 }
+ Constant [ int Pkcs11\CKR_KEY_SIZE_RANGE ] { 98 }
+ Constant [ int Pkcs11\CKR_KEY_TYPE_INCONSISTENT ] { 99 }
+ Constant [ int Pkcs11\CKR_KEY_NOT_NEEDED ] { 100 }
+ Constant [ int Pkcs11\CKR_KEY_CHANGED ] { 101 }
+ Constant [ int Pkcs11\CKR_KEY_NEEDED ] { 102 }
+ Constant [ int Pkcs11\CKR_KEY_INDIGESTIBLE ] { 103 }
+ Constant [ int Pkcs11\CKR_KEY_FUNCTION_NOT_PERMITTED ] { 104 }
+ Constant [ int Pkcs11\CKR_KEY_NOT_WRAPPABLE ] { 105 }
+ Constant [ int Pkcs11\CKR_KEY_UNEXTRACTABLE ] { 106 }
+ Constant [ int Pkcs11\CKR_MECHANISM_INVALID ] { 112 }
+ Constant [ int Pkcs11\CKR_MECHANISM_PARAM_INVALID ] { 113 }
+ Constant [ int Pkcs11\CKR_OBJECT_HANDLE_INVALID ] { 130 }
+ Constant [ int Pkcs11\CKR_OPERATION_ACTIVE ] { 144 }
+ Constant [ int Pkcs11\CKR_OPERATION_NOT_INITIALIZED ] { 145 }
+ Constant [ int Pkcs11\CKR_PIN_INCORRECT ] { 160 }
+ Constant [ int Pkcs11\CKR_PIN_INVALID ] { 161 }
+ Constant [ int Pkcs11\CKR_PIN_LEN_RANGE ] { 162 }
+ Constant [ int Pkcs11\CKR_PIN_EXPIRED ] { 163 }
+ Constant [ int Pkcs11\CKR_PIN_LOCKED ] { 164 }
+ Constant [ int Pkcs11\CKR_SESSION_CLOSED ] { 176 }
+ Constant [ int Pkcs11\CKR_SESSION_COUNT ] { 177 }
+ Constant [ int Pkcs11\CKR_SESSION_HANDLE_INVALID ] { 179 }
+ Constant [ int Pkcs11\CKR_SESSION_PARALLEL_NOT_SUPPORTED ] { 180 }
+ Constant [ int Pkcs11\CKR_SESSION_READ_ONLY ] { 181 }
+ Constant [ int Pkcs11\CKR_SESSION_EXISTS ] { 182 }
+ Constant [ int Pkcs11\CKR_SESSION_READ_ONLY_EXISTS ] { 183 }
+ Constant [ int Pkcs11\CKR_SESSION_READ_WRITE_SO_EXISTS ] { 184 }
+ Constant [ int Pkcs11\CKR_SIGNATURE_INVALID ] { 192 }
+ Constant [ int Pkcs11\CKR_SIGNATURE_LEN_RANGE ] { 193 }
+ Constant [ int Pkcs11\CKR_TEMPLATE_INCOMPLETE ] { 208 }
+ Constant [ int Pkcs11\CKR_TEMPLATE_INCONSISTENT ] { 209 }
+ Constant [ int Pkcs11\CKR_TOKEN_NOT_PRESENT ] { 224 }
+ Constant [ int Pkcs11\CKR_TOKEN_NOT_RECOGNIZED ] { 225 }
+ Constant [ int Pkcs11\CKR_TOKEN_WRITE_PROTECTED ] { 226 }
+ Constant [ int Pkcs11\CKR_UNWRAPPING_KEY_HANDLE_INVALID ] { 240 }
+ Constant [ int Pkcs11\CKR_UNWRAPPING_KEY_SIZE_RANGE ] { 241 }
+ Constant [ int Pkcs11\CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT ] { 242 }
+ Constant [ int Pkcs11\CKR_USER_ALREADY_LOGGED_IN ] { 256 }
+ Constant [ int Pkcs11\CKR_USER_NOT_LOGGED_IN ] { 257 }
+ Constant [ int Pkcs11\CKR_USER_PIN_NOT_INITIALIZED ] { 258 }
+ Constant [ int Pkcs11\CKR_USER_TYPE_INVALID ] { 259 }
+ Constant [ int Pkcs11\CKR_USER_ANOTHER_ALREADY_LOGGED_IN ] { 260 }
+ Constant [ int Pkcs11\CKR_USER_TOO_MANY_TYPES ] { 261 }
+ Constant [ int Pkcs11\CKR_WRAPPED_KEY_INVALID ] { 272 }
+ Constant [ int Pkcs11\CKR_WRAPPED_KEY_LEN_RANGE ] { 274 }
+ Constant [ int Pkcs11\CKR_WRAPPING_KEY_HANDLE_INVALID ] { 275 }
+ Constant [ int Pkcs11\CKR_WRAPPING_KEY_SIZE_RANGE ] { 276 }
+ Constant [ int Pkcs11\CKR_WRAPPING_KEY_TYPE_INCONSISTENT ] { 277 }
+ Constant [ int Pkcs11\CKR_RANDOM_SEED_NOT_SUPPORTED ] { 288 }
+ Constant [ int Pkcs11\CKR_RANDOM_NO_RNG ] { 289 }
+ Constant [ int Pkcs11\CKR_DOMAIN_PARAMS_INVALID ] { 304 }
+ Constant [ int Pkcs11\CKR_BUFFER_TOO_SMALL ] { 336 }
+ Constant [ int Pkcs11\CKR_SAVED_STATE_INVALID ] { 352 }
+ Constant [ int Pkcs11\CKR_INFORMATION_SENSITIVE ] { 368 }
+ Constant [ int Pkcs11\CKR_STATE_UNSAVEABLE ] { 384 }
+ Constant [ int Pkcs11\CKR_CRYPTOKI_NOT_INITIALIZED ] { 400 }
+ Constant [ int Pkcs11\CKR_CRYPTOKI_ALREADY_INITIALIZED ] { 401 }
+ Constant [ int Pkcs11\CKR_MUTEX_BAD ] { 416 }
+ Constant [ int Pkcs11\CKR_MUTEX_NOT_LOCKED ] { 417 }
+ Constant [ int Pkcs11\CKR_FUNCTION_REJECTED ] { 512 }
+ Constant [ int Pkcs11\CKR_VENDOR_DEFINED ] { 2147483648 }
+ }
+
+ - Classes [18] {
+ Class [ <internal:pkcs11> class Pkcs11\Module ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [44] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $modulePath ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getSlots ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getSlotList ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getSlotInfo ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $slotId ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getTokenInfo ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $slotId ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getMechanismList ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $slotId ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getMechanismInfo ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> int $slotId ]
+ Parameter #1 [ <required> int $mechanismId ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method initToken ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> int $slotid ]
+ Parameter #1 [ <required> string $label ]
+ Parameter #2 [ <required> string $sopin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method openSession ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> int $slotid ]
+ Parameter #1 [ <optional> int $flags ]
+ Parameter #2 [ <optional> string or NULL $application ]
+ Parameter #3 [ <optional> callable or NULL $notify ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetInfo ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> &$pInfo ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetSlotList ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $tokenPresent ]
+ Parameter #1 [ <required> &$pSlotList ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetSlotInfo ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $slotId ]
+ Parameter #1 [ <required> &$pInfo ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetTokenInfo ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $slotId ]
+ Parameter #1 [ <required> &$pInfo ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetMechanismList ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $slotId ]
+ Parameter #1 [ <required> &$pMechanismList ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetMechanismInfo ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $slotId ]
+ Parameter #1 [ <required> $type ]
+ Parameter #2 [ <required> &$pInfo ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_InitToken ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> int $slotid ]
+ Parameter #1 [ <required> string $label ]
+ Parameter #2 [ <required> string $sopin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_SetPIN ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> string $oldPin ]
+ Parameter #2 [ <required> string $newPin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_InitPIN ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> string $newPin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_OpenSession ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> int $slotID ]
+ Parameter #1 [ <required> int $flags ]
+ Parameter #2 [ <required> resource or NULL $pApplication_TODO ]
+ Parameter #3 [ <required> callable or NULL $Notify_TODO ]
+ Parameter #4 [ <required> &$hSession ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_CloseSession ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $session ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetSessionInfo ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <optional> &$pInfo ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_Login ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> int $loginType ]
+ Parameter #2 [ <required> string $pin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_Logout ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $session ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GenerateKey ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $mechanism ]
+ Parameter #2 [ <required> array $template ]
+ Parameter #3 [ <optional> &$phKey ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GenerateKeyPair ] {
+
+ - Parameters [6] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $mechanism ]
+ Parameter #2 [ <required> array $pkTemplate ]
+ Parameter #3 [ <required> array $skTemplate ]
+ Parameter #4 [ <optional> &$phPublicKey ]
+ Parameter #5 [ <optional> &$phPrivateKey ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_DigestInit ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $mechanism ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_Digest ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> string $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_DigestUpdate ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> string $part ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_DigestKey ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $key ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_DigestFinal ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $session ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_SignInit ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $mechanism ]
+ Parameter #2 [ <required> int $key ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_Sign ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> string $data ]
+ Parameter #2 [ <required> string or NULL &$signature ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_VerifyInit ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $mechanism ]
+ Parameter #2 [ <required> int $key ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_Verify ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> string $data ]
+ Parameter #2 [ <required> string $signature ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GenerateRandom ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <optional> int $RandomLen ]
+ Parameter #2 [ <optional> &$pRandomData ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_SeedRandom ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <optional> string $Seed ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_CreateObject ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_FindObjectsInit ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_FindObjects ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> &$Objects ]
+ Parameter #2 [ <optional> int $MaxObjectCount ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_FindObjectsFinal ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $session ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_GetAttributeValue ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> int $object ]
+ Parameter #2 [ <required> array &$template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_CopyObject ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> object $object ]
+ Parameter #2 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method C_DestroyObject ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $session ]
+ Parameter #1 [ <required> $object ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\Session ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [16] {
+ Method [ <internal:pkcs11> public method login ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> int $loginType ]
+ Parameter #1 [ <required> string $pin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:pkcs11> public method logout ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:pkcs11> public method initPin ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $pin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method setPin ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> string $oldPin ]
+ Parameter #1 [ <required> string $newPin ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method findObjects ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method createObject ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method copyObject ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $object ]
+ Parameter #1 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method destroyObject ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $object ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method digest ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> string $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method initializeDigest ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $mechanism ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method generateKey ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method generateKeyPair ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> array $pkTemplate ]
+ Parameter #2 [ <optional> array $skTemplate ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method seedRandom ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $seed ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method generateRandom ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $length ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method __debugInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\P11Object ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:pkcs11> public method getAttributeValue ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $attributeIds ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method getSize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\Key extends Pkcs11\P11Object ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [13] {
+ Method [ <internal:pkcs11> public method initializeSignature ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $mechanism ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method initializeVerification ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $mechanism ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method initializeEncryption ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $mechanism ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method initializeDecryption ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object $mechanism ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method encrypt ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> string $plaintext ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method decrypt ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> string $ciphertext ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method wrap ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> object $key ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method unwrap ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> string $ciphertext ]
+ Parameter #2 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method sign ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> string $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method verify ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> string $data ]
+ Parameter #2 [ <required> string $signature ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method derive ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> object $mechanism ]
+ Parameter #1 [ <required> array $template ]
+ }
+ }
+
+ Method [ <internal:pkcs11, inherits Pkcs11\P11Object> public method getAttributeValue ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $attributeIds ]
+ }
+ }
+
+ Method [ <internal:pkcs11, inherits Pkcs11\P11Object> public method getSize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\KeyPair ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [0] {
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\Mechanism ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> int $mechanismId ]
+ Parameter #1 [ <required> $mechanismArgument ]
+ }
+ }
+
+ Method [ <internal:pkcs11> public method __debugInfo ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\RsaPssParams ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> int $mechanismId ]
+ Parameter #1 [ <required> int $mgfId ]
+ Parameter #2 [ <required> int $sLen ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\RsaOaepParams ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> int $mechanismId ]
+ Parameter #1 [ <required> int $mgfId ]
+ Parameter #2 [ <optional> string or NULL $source ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\GcmParams ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> string $iv ]
+ Parameter #1 [ <required> string $aad ]
+ Parameter #2 [ <required> int $sTagLen ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\ChaCha20Params ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> string $nonce ]
+ Parameter #1 [ <optional> string $blockCounter ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\Salsa20Params ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> string $nonce ]
+ Parameter #1 [ <optional> string $blockCounter ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\Salsa20Chacha20Poly1305Params ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> string $nonce ]
+ Parameter #1 [ <optional> string $aad ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\Ecdh1DeriveParams ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:pkcs11, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> int $kdfId ]
+ Parameter #1 [ <required> string $sharedData ]
+ Parameter #2 [ <required> string $publicData ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\SignatureContext ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:pkcs11, ctor> public method update ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string or NULL $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11, ctor> public method finalize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\VerificationContext ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:pkcs11, ctor> public method update ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string or NULL $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11, ctor> public method finalize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string or NULL $signature ]
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\DigestContext ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [3] {
+ Method [ <internal:pkcs11, ctor> public method update ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string or NULL $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11, ctor> public method keyUpdate ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> object or NULL $key ]
+ }
+ }
+
+ Method [ <internal:pkcs11, ctor> public method finalize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\EncryptionContext ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:pkcs11, ctor> public method update ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string or NULL $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11, ctor> public method finalize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:pkcs11> class Pkcs11\DecryptionContext ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [2] {
+ Method [ <internal:pkcs11, ctor> public method update ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string or NULL $data ]
+ }
+ }
+
+ Method [ <internal:pkcs11, ctor> public method finalize ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+ }
+}
+
diff --git a/php-pecl-pkcs11.spec b/php-pecl-pkcs11.spec
new file mode 100644
index 0000000..e3366fe
--- /dev/null
+++ b/php-pecl-pkcs11.spec
@@ -0,0 +1,225 @@
+# remirepo spec file for php-pecl-pkcs11
+#
+# Copyright (c) 2020 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/4.0/
+#
+# Please, preserve the changelog entries
+#
+
+# we don't want -z defs linker flag
+%undefine _strict_symbol_defs_build
+
+# to run test see https://github.com/gamringer/php-pkcs11/blob/master/README.md
+# export PHP11_MODULE=/usr/lib64/pkcs11/libsofthsm2.so
+# export PHP11_SLOT=1668069480
+# export PHP11_PIN=1234
+%bcond_with tests
+
+%if 0%{?scl:1}
+%global sub_prefix %{scl_prefix}
+%scl_package php-pecl-pkcs11
+%endif
+
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global pecl_name pkcs11
+# After 20-json.ini
+%global ini_name 40-%{pecl_name}.ini
+
+Summary: PHP Bindings for PKCS11 modules
+Name: %{?sub_prefix}php-pecl-%{pecl_name}
+Version: 0.1
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+License: PHP
+URL: https://pecl.php.net/package/%{pecl_name}
+Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+
+BuildRequires: make
+BuildRequires: %{?dtsprefix}gcc
+BuildRequires: %{?scl_prefix}php-devel >= 7.0
+BuildRequires: %{?scl_prefix}php-pear
+%if %{with tests}
+BuildRequires: softhsm
+%endif
+
+Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires: %{?scl_prefix}php(api) = %{php_core_api}
+Requires: %{?scl_prefix}php-json%{?_isa}
+%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
+
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+%if "%{?scl_prefix}" != "%{?sub_prefix}"
+Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+%endif
+
+%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+%if "%{php_version}" > "7.3"
+Obsoletes: php73-pecl-%{pecl_name} <= %{version}
+%endif
+%if "%{php_version}" > "7.4"
+Obsoletes: php74-pecl-%{pecl_name} <= %{version}
+%endif
+%if "%{php_version}" > "8.0"
+Obsoletes: php80-pecl-%{pecl_name} <= %{version}
+%endif
+%endif
+
+
+%description
+This extension provides an Object Oriented API for PKCS11 C_*
+functions to interact with a Hardware Security Module.
+
+Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
+
+
+%prep
+%setup -q -c
+
+sed -e 's/role="test"/role="src"/' \
+ %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
+ -i package.xml
+
+mv %{pecl_name}-%{version} NTS
+
+cd NTS
+find . -type f -exec chmod -x {} ';'
+
+# Sanity check, really often broken
+extver=$(sed -n '/# define PHP_PKCS11_VERSION/{s/.* "//;s/".*$//;p}' php_pkcs11.h)
+if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
+ : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}.
+ exit 1
+fi
+cd ..
+
+%if %{with_zts}
+# Duplicate source tree for NTS / ZTS build
+cp -pr NTS ZTS
+%endif
+
+# Create configuration file
+cat << 'EOF' | tee %{ini_name}
+; Enable %{pecl_name} extension module
+extension=%{pecl_name}.so
+EOF
+
+
+%build
+%{?dtsenable}
+
+cd NTS
+%{_bindir}/phpize
+%configure \
+ --enable-pkcs11 \
+ --with-libdir=%{_lib} \
+ --with-php-config=%{_bindir}/php-config
+make %{?_smp_mflags}
+
+%if %{with_zts}
+cd ../ZTS
+%{_bindir}/zts-phpize
+%configure \
+ --enable-pkcs11 \
+ --with-libdir=%{_lib} \
+ --with-php-config=%{_bindir}/zts-php-config
+make %{?_smp_mflags}
+%endif
+
+
+%install
+%{?dtsenable}
+
+make -C NTS install INSTALL_ROOT=%{buildroot}
+
+# install config file
+install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
+
+# Install XML package description
+install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
+
+%if %{with_zts}
+make -C ZTS install INSTALL_ROOT=%{buildroot}
+
+install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
+%endif
+
+# Documentation
+for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
+do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
+done
+
+
+%if 0%{?fedora} < 24 && 0%{?rhel} < 8
+# when pear installed alone, after us
+%triggerin -- %{?scl_prefix}php-pear
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
+
+# posttrans as pear can be installed after us
+%posttrans
+if [ -x %{__pecl} ] ; then
+ %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
+fi
+
+%postun
+if [ $1 -eq 0 -a -x %{__pecl} ] ; then
+ %{pecl_uninstall} %{pecl_name} >/dev/null || :
+fi
+%endif
+
+
+%check
+# Minimal load test for NTS extension
+%{__php} \
+ --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
+ --modules | grep '^%{pecl_name}$'
+
+%if %{with_zts}
+# Minimal load test for ZTS extension
+%{__ztsphp} \
+ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
+ --modules | grep '^%{pecl_name}$'
+%endif
+
+%if %{with tests}
+cd NTS
+if [ -z "$PHP11_MODULE" ]; then
+ export PHP11_MODULE=/usr/lib64/softhsm/libsofthsm.so
+ echo with PHP11_MODULE=$PHP11_MODULE
+fi
+if [ -z "$PHP11_SLOT" -o -z "PHP11_PIN" ]; then
+ echo missing PHP11_SLOT and PHP11_PIN
+ exit 1
+fi
+
+: Upstream test suite for NTS extension
+TEST_PHP_EXECUTABLE=%{__php} \
+TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
+NO_INTERACTION=1 \
+REPORT_EXIT_STATUS=1 \
+%{__php} -n run-tests.php --show-diff
+%endif
+
+
+%files
+%{?_licensedir:%license NTS/LICENSE}
+%doc %{pecl_docdir}/%{pecl_name}
+%{pecl_xmldir}/%{name}.xml
+
+%config(noreplace) %{php_inidir}/%{ini_name}
+%{php_extdir}/%{pecl_name}.so
+
+%if %{with_zts}
+%config(noreplace) %{php_ztsinidir}/%{ini_name}
+%{php_ztsextdir}/%{pecl_name}.so
+%endif
+
+
+%changelog
+* Wed Dec 30 2020 Remi Collet <remi@remirepo.net> - 0.1-1
+- initial package, version 0.1 (php 7, beta)