diff options
author | Remi Collet <remi@remirepo.net> | 2021-03-24 06:42:59 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-03-24 06:42:59 +0100 |
commit | 541c91f71e648aa86407655319980f11366f8213 (patch) | |
tree | bfbad65e5e8d033f03eb1b1c6bda03562f5aef80 /REFLECTION | |
parent | 672e0c1f3d33770b2a63b5ebbd0d256ee757dd49 (diff) |
update to 1.0
Diffstat (limited to 'REFLECTION')
-rw-r--r-- | REFLECTION | 210 |
1 files changed, 195 insertions, 15 deletions
@@ -1,6 +1,6 @@ -Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { +Extension [ <persistent> extension #93 pkcs11 version 1.0 ] { - - Constants [784] { + - Constants [831] { Constant [ int Pkcs11\CKM_RSA_PKCS_KEY_PAIR_GEN ] { 0 } Constant [ int Pkcs11\CKM_RSA_PKCS ] { 1 } Constant [ int Pkcs11\CKM_RSA_9796 ] { 2 } @@ -435,8 +435,9 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { 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_TOKEN_PRESENT ] { 1 } + Constant [ int Pkcs11\CKF_REMOVABLE_DEVICE ] { 2 } + Constant [ int Pkcs11\CKF_HW_SLOT ] { 4 } Constant [ int Pkcs11\CKF_RNG ] { 1 } Constant [ int Pkcs11\CKF_WRITE_PROTECTED ] { 2 } Constant [ int Pkcs11\CKF_LOGIN_REQUIRED ] { 4 } @@ -456,6 +457,52 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { 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\CKF_RW_SESSION ] { 2 } + Constant [ int Pkcs11\CKF_SERIAL_SESSION ] { 4 } + Constant [ int Pkcs11\CKF_ARRAY_ATTRIBUTE ] { 1073741824 } + Constant [ int Pkcs11\CKF_HW ] { 1 } + Constant [ int Pkcs11\CKF_MESSAGE_ENCRYPT ] { 2 } + Constant [ int Pkcs11\CKF_MESSAGE_DECRYPT ] { 4 } + Constant [ int Pkcs11\CKF_MESSAGE_SIGN ] { 8 } + Constant [ int Pkcs11\CKF_MESSAGE_VERIFY ] { 16 } + Constant [ int Pkcs11\CKF_MULTI_MESSAGE ] { 32 } + Constant [ int Pkcs11\CKF_MULTI_MESSGE ] { 32 } + Constant [ int Pkcs11\CKF_FIND_OBJECTS ] { 64 } + Constant [ int Pkcs11\CKF_ENCRYPT ] { 256 } + Constant [ int Pkcs11\CKF_DECRYPT ] { 512 } + Constant [ int Pkcs11\CKF_DIGEST ] { 1024 } + Constant [ int Pkcs11\CKF_SIGN ] { 2048 } + Constant [ int Pkcs11\CKF_SIGN_RECOVER ] { 4096 } + Constant [ int Pkcs11\CKF_VERIFY ] { 8192 } + Constant [ int Pkcs11\CKF_VERIFY_RECOVER ] { 16384 } + Constant [ int Pkcs11\CKF_GENERATE ] { 32768 } + Constant [ int Pkcs11\CKF_GENERATE_KEY_PAIR ] { 65536 } + Constant [ int Pkcs11\CKF_WRAP ] { 131072 } + Constant [ int Pkcs11\CKF_UNWRAP ] { 262144 } + Constant [ int Pkcs11\CKF_DERIVE ] { 524288 } + Constant [ int Pkcs11\CKF_EC_F_P ] { 1048576 } + Constant [ int Pkcs11\CKF_EC_F_2M ] { 2097152 } + Constant [ int Pkcs11\CKF_EC_ECPARAMETERS ] { 4194304 } + Constant [ int Pkcs11\CKF_EC_OID ] { 8388608 } + Constant [ int Pkcs11\CKF_EC_NAMEDCURVE ] { 8388608 } + Constant [ int Pkcs11\CKF_EC_UNCOMPRESS ] { 16777216 } + Constant [ int Pkcs11\CKF_EC_COMPRESS ] { 33554432 } + Constant [ int Pkcs11\CKF_EC_CURVENAME ] { 67108864 } + Constant [ int Pkcs11\CKF_EXTENSION ] { 2147483648 } + Constant [ int Pkcs11\CKF_END_OF_MESSAGE ] { 1 } + Constant [ int Pkcs11\CKF_INTERFACE_FORK_SAFE ] { 1 } + Constant [ int Pkcs11\CKF_LIBRARY_CANT_CREATE_OS_THREADS ] { 1 } + Constant [ int Pkcs11\CKF_OS_LOCKING_OK ] { 2 } + Constant [ int Pkcs11\CKF_DONT_BLOCK ] { 1 } + Constant [ int Pkcs11\CKF_NEXT_OTP ] { 1 } + Constant [ int Pkcs11\CKF_EXCLUDE_TIME ] { 2 } + Constant [ int Pkcs11\CKF_EXCLUDE_COUNTER ] { 4 } + Constant [ int Pkcs11\CKF_EXCLUDE_CHALLENGE ] { 8 } + Constant [ int Pkcs11\CKF_EXCLUDE_PIN ] { 16 } + Constant [ int Pkcs11\CKF_USER_FRIENDLY_OTP ] { 32 } + Constant [ int Pkcs11\CKF_HKDF_SALT_NULL ] { 1 } + Constant [ int Pkcs11\CKF_HKDF_SALT_DATA ] { 2 } + Constant [ int Pkcs11\CKF_HKDF_SALT_KEY ] { 4 } Constant [ int Pkcs11\CKU_SO ] { 0 } Constant [ int Pkcs11\CKU_USER ] { 1 } Constant [ int Pkcs11\CKU_CONTEXT_SPECIFIC ] { 2 } @@ -787,7 +834,7 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { Constant [ int Pkcs11\CKR_VENDOR_DEFINED ] { 2147483648 } } - - Classes [18] { + - Classes [19] { Class [ <internal:pkcs11> class Pkcs11\Module ] { - Constants [0] { @@ -802,7 +849,7 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { - Properties [0] { } - - Methods [44] { + - Methods [52] { Method [ <internal:pkcs11, ctor> public method __construct ] { - Parameters [1] { @@ -876,6 +923,13 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { } } + Method [ <internal:pkcs11> public method waitForSlotEvent ] { + + - Parameters [1] { + Parameter #0 [ <required> int or NULL $php_flags ] + } + } + Method [ <internal:pkcs11> public method C_GetInfo ] { - Parameters [1] { @@ -992,13 +1046,21 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { } } + Method [ <internal:pkcs11> public method C_WaitForSlotEvent ] { + + - Parameters [2] { + Parameter #0 [ <required> int or NULL $php_flags ] + Parameter #1 [ <required> int or NULL &$php_slotID ] + } + } + Method [ <internal:pkcs11> public method C_GenerateKey ] { - Parameters [4] { Parameter #0 [ <required> Pkcs11\Session $session ] Parameter #1 [ <required> Pkcs11\Mechanism $mechanism ] Parameter #2 [ <required> array $template ] - Parameter #3 [ <optional> Pkcs11\Key or NULL &$phKey ] + Parameter #3 [ <optional> IS_LONG or NULL &$phKey ] } } @@ -1024,9 +1086,10 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { Method [ <internal:pkcs11> public method C_Digest ] { - - Parameters [2] { + - Parameters [3] { Parameter #0 [ <required> Pkcs11\Session $session ] Parameter #1 [ <required> string $data ] + Parameter #2 [ <required> string or NULL &$digest ] } } @@ -1048,8 +1111,9 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { Method [ <internal:pkcs11> public method C_DigestFinal ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> string or NULL &$digest ] } } @@ -1089,6 +1153,65 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { } } + Method [ <internal:pkcs11> public method C_EncryptInit ] { + + - Parameters [3] { + Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> Pkcs11\Mechanism $mechanism ] + Parameter #2 [ <required> int $key ] + } + } + + Method [ <internal:pkcs11> public method C_Encrypt ] { + + - Parameters [3] { + Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <required> string or NULL &$encryptedData ] + } + } + + Method [ <internal:pkcs11> public method C_DecryptInit ] { + + - Parameters [3] { + Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> Pkcs11\Mechanism $mechanism ] + Parameter #2 [ <required> int $key ] + } + } + + Method [ <internal:pkcs11> public method C_Decrypt ] { + + - Parameters [3] { + Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> string $encryptedData ] + Parameter #2 [ <required> string or NULL &$data ] + } + } + + Method [ <internal:pkcs11> public method C_Wrap ] { + + - Parameters [5] { + Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> Pkcs11\Mechanism $mechanism ] + Parameter #2 [ <required> int $keyId ] + Parameter #3 [ <required> int $targetKeyId ] + Parameter #4 [ <required> string or NULL &$ciphertext ] + } + } + + Method [ <internal:pkcs11> public method C_Unwrap ] { + + - Parameters [6] { + Parameter #0 [ <required> Pkcs11\Session $session ] + Parameter #1 [ <required> Pkcs11\Mechanism $mechanism ] + Parameter #2 [ <required> int $keyId ] + Parameter #3 [ <required> string $encryptedData ] + Parameter #4 [ <required> array $template ] + Parameter #5 [ <required> int or NULL &$keyId ] + } + } + Method [ <internal:pkcs11> public method C_GenerateRandom ] { - Parameters [3] { @@ -1111,7 +1234,7 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { - Parameters [3] { Parameter #0 [ <required> Pkcs11\Session $session ] Parameter #1 [ <required> array $template ] - Parameter #2 [ <required> Pkcs11\Object or NULL &$phObject ] + Parameter #2 [ <required> Pkcs11\P11Object or NULL &$phObject ] } } @@ -1152,9 +1275,9 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { - Parameters [4] { Parameter #0 [ <required> Pkcs11\Session $session ] - Parameter #1 [ <required> Pkcs11\Object $object ] + Parameter #1 [ <required> Pkcs11\P11Object $object ] Parameter #2 [ <required> array $template ] - Parameter #3 [ <required> Pkcs11\Object or NULL &$phNewObject ] + Parameter #3 [ <required> Pkcs11\P11Object or NULL &$phNewObject ] } } @@ -1162,7 +1285,7 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { - Parameters [2] { Parameter #0 [ <required> Pkcs11\Session $session ] - Parameter #1 [ <required> Pkcs11\Object $object ] + Parameter #1 [ <required> Pkcs11\P11Object $object ] } } } @@ -1235,7 +1358,7 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { Method [ <internal:pkcs11> public method copyObject ] { - Parameters [2] { - Parameter #0 [ <required> Pkcs11\Object $object ] + Parameter #0 [ <required> Pkcs11\P11Object $object ] Parameter #1 [ <required> array $template ] } } @@ -1243,7 +1366,7 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { Method [ <internal:pkcs11> public method destroyObject ] { - Parameters [1] { - Parameter #0 [ <required> Pkcs11\Object $object ] + Parameter #0 [ <required> Pkcs11\P11Object $object ] } } @@ -1832,6 +1955,63 @@ Extension [ <persistent> extension #94 pkcs11 version 0.1.1 ] { } } } + + Class [ <internal:pkcs11> class Pkcs11\Exception extends Exception implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ <default> protected $message ] + Property [ <default> protected $code ] + Property [ <default> protected $file ] + Property [ <default> protected $line ] + } + + - Methods [10] { + Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { + + - Parameters [3] { + Parameter #0 [ <optional> $message ] + Parameter #1 [ <optional> $code ] + Parameter #2 [ <optional> $previous ] + } + } + + Method [ <internal:Core, inherits Exception> public method __wakeup ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { + } + + Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { + } + } + } } } |