From 4789ddc8fac3a12dccaa2013ebc9f67317d00f04 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 16 Nov 2015 08:01:07 +0100 Subject: php-pecl-crypto: 0.2.1 --- REFLECTION | 466 ++++++++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 385 insertions(+), 81 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index 522642d..d26d2dc 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,7 +1,7 @@ -Extension [ extension #78 crypto version 0.1.1 ] { +Extension [ extension #84 crypto version 0.2.1 ] { - - Classes [9] { - Class [ class Crypto\Algorithm ] { + - Classes [13] { + Class [ class Crypto\CryptoException extends Exception ] { - Constants [0] { } @@ -12,57 +12,85 @@ Extension [ extension #78 crypto version 0.1.1 ] { - Static methods [0] { } - - Properties [1] { - Property [ protected $algorithm ] + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] } - - Methods [2] { - Method [ public method __construct ] { + - Methods [10] { + Method [ public method __construct ] { - - Parameters [1] { - Parameter #0 [ $algorithm ] + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] } } - Method [ public method getAlgorithmName ] { + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } - Class [ class Crypto\AlgorithmException extends Exception ] { - - - Constants [31] { - Constant [ integer CIPHER_NOT_FOUND ] { 1 } - Constant [ integer CIPHER_MODE_NOT_FOUND ] { 2 } - Constant [ integer CIPHER_MODE_NOT_AVAILABLE ] { 3 } - Constant [ integer CIPHER_AUTHENTICATION_NOT_SUPPORTED ] { 4 } - Constant [ integer CIPHER_AUTHENTICATION_FAILED ] { 5 } - Constant [ integer CIPHER_KEY_LENGTH ] { 6 } - Constant [ integer CIPHER_IV_LENGTH ] { 7 } - Constant [ integer CIPHER_AAD_SETTER_FLOW ] { 8 } - Constant [ integer CIPHER_AAD_SETTER_FAILED ] { 9 } - Constant [ integer CIPHER_TAG_GETTER_FLOW ] { 10 } - Constant [ integer CIPHER_TAG_SETTER_FLOW ] { 11 } - Constant [ integer CIPHER_TAG_GETTER_FAILED ] { 12 } - Constant [ integer CIPHER_TAG_SETTER_FAILED ] { 13 } - Constant [ integer CIPHER_TAG_LENGTH_UNDER ] { 14 } - Constant [ integer CIPHER_TAG_LENGTH_OVER ] { 15 } - Constant [ integer CIPHER_TAG_VARIFY_FAILED ] { 16 } - Constant [ integer CIPHER_INIT_ALG_FAILED ] { 17 } - Constant [ integer CIPHER_INIT_CTX_FAILED ] { 18 } - Constant [ integer CIPHER_UPDATE_FAILED ] { 19 } - Constant [ integer CIPHER_FINISH_FAILED ] { 20 } - Constant [ integer ENCRYPT_INIT_STATUS ] { 21 } - Constant [ integer ENCRYPT_UPDATE_STATUS ] { 22 } - Constant [ integer ENCRYPT_FINISH_STATUS ] { 23 } - Constant [ integer DECRYPT_INIT_STATUS ] { 24 } - Constant [ integer DECRYPT_UPDATE_STATUS ] { 25 } - Constant [ integer DECRYPT_FINISH_STATUS ] { 26 } - Constant [ integer HASH_ALGORITHM_NOT_FOUND ] { 27 } - Constant [ integer HASH_STATIC_NOT_FOUND ] { 28 } - Constant [ integer HASH_INIT_FAILED ] { 29 } - Constant [ integer HASH_UPDATE_FAILED ] { 30 } - Constant [ integer HASH_DIGEST_FAILED ] { 31 } + Class [ class Crypto\CipherException extends Crypto\CryptoException ] { + + - Constants [30] { + Constant [ integer ALGORITHM_NOT_FOUND ] { 1 } + Constant [ integer STATIC_METHOD_NOT_FOUND ] { 2 } + Constant [ integer STATIC_METHOD_TOO_MANY_ARGS ] { 3 } + Constant [ integer MODE_NOT_FOUND ] { 4 } + Constant [ integer MODE_NOT_AVAILABLE ] { 5 } + Constant [ integer AUTHENTICATION_NOT_SUPPORTED ] { 6 } + Constant [ integer KEY_LENGTH_INVALID ] { 7 } + Constant [ integer IV_LENGTH_INVALID ] { 8 } + Constant [ integer AAD_SETTER_FORBIDDEN ] { 9 } + Constant [ integer AAD_SETTER_FAILED ] { 10 } + Constant [ integer AAD_LENGTH_HIGH ] { 11 } + Constant [ integer TAG_GETTER_FORBIDDEN ] { 12 } + Constant [ integer TAG_SETTER_FORBIDDEN ] { 13 } + Constant [ integer TAG_GETTER_FAILED ] { 14 } + Constant [ integer TAG_SETTER_FAILED ] { 15 } + Constant [ integer TAG_LENGTH_SETTER_FORBIDDEN ] { 16 } + Constant [ integer TAG_LENGTH_LOW ] { 17 } + Constant [ integer TAG_LENGTH_HIGH ] { 18 } + Constant [ integer TAG_VERIFY_FAILED ] { 19 } + Constant [ integer INIT_ALG_FAILED ] { 20 } + Constant [ integer INIT_CTX_FAILED ] { 21 } + Constant [ integer INIT_ENCRYPT_FORBIDDEN ] { 22 } + Constant [ integer INIT_DECRYPT_FORBIDDEN ] { 23 } + Constant [ integer UPDATE_FAILED ] { 24 } + Constant [ integer UPDATE_ENCRYPT_FORBIDDEN ] { 25 } + Constant [ integer UPDATE_DECRYPT_FORBIDDEN ] { 26 } + Constant [ integer FINISH_FAILED ] { 27 } + Constant [ integer FINISH_ENCRYPT_FORBIDDEN ] { 28 } + Constant [ integer FINISH_DECRYPT_FORBIDDEN ] { 29 } + Constant [ integer INPUT_DATA_LENGTH_HIGH ] { 30 } } - Static properties [0] { @@ -78,7 +106,7 @@ Extension [ extension #78 crypto version 0.1.1 ] { Property [ protected $line ] } - - Methods [9] { + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { @@ -88,6 +116,9 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } + Method [ public method __wakeup ] { + } + Method [ final public method getMessage ] { } @@ -114,7 +145,7 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } - Class [ class Crypto\Cipher extends Crypto\Algorithm ] { + Class [ class Crypto\Cipher ] { - Constants [8] { Constant [ integer MODE_ECB ] { 1 } @@ -166,8 +197,8 @@ Extension [ extension #78 crypto version 0.1.1 ] { Property [ protected $algorithm ] } - - Methods [17] { - Method [ public method __construct ] { + - Methods [18] { + Method [ public method __construct ] { - Parameters [3] { Parameter #0 [ $algorithm ] @@ -176,6 +207,9 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } + Method [ public method getAlgorithmName ] { + } + Method [ public method encryptInit ] { - Parameters [2] { @@ -243,16 +277,19 @@ Extension [ extension #78 crypto version 0.1.1 ] { } Method [ public method getTag ] { + } + + Method [ public method setTag ] { - Parameters [1] { - Parameter #0 [ $tag_size ] + Parameter #0 [ $tag ] } } - Method [ public method setTag ] { + Method [ public method setTagLength ] { - Parameters [1] { - Parameter #0 [ $tag ] + Parameter #0 [ $tag_length ] } } @@ -262,13 +299,10 @@ Extension [ extension #78 crypto version 0.1.1 ] { Parameter #0 [ $aad ] } } - - Method [ public method getAlgorithmName ] { - } } } - Class [ class Crypto\Hash extends Crypto\Algorithm ] { + Class [ class Crypto\Hash ] { - Constants [0] { } @@ -306,7 +340,7 @@ Extension [ extension #78 crypto version 0.1.1 ] { } - Methods [7] { - Method [ public method __construct ] { + Method [ public method __construct ] { - Parameters [1] { Parameter #0 [ $algorithm ] @@ -320,6 +354,9 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } + Method [ public method getAlgorithmName ] { + } + Method [ public method digest ] { } @@ -331,13 +368,74 @@ Extension [ extension #78 crypto version 0.1.1 ] { Method [ public method getBlockSize ] { } + } + } + + Class [ class Crypto\HashException extends Crypto\CryptoException ] { + + - Constants [7] { + Constant [ integer ALGORITHM_NOT_FOUND ] { 1 } + Constant [ integer STATIC_METHOD_NOT_FOUND ] { 2 } + Constant [ integer STATIC_METHOD_TOO_MANY_ARGS ] { 3 } + Constant [ integer INIT_FAILED ] { 4 } + Constant [ integer UPDATE_FAILED ] { 5 } + Constant [ integer DIGEST_FAILED ] { 6 } + Constant [ integer INPUT_DATA_LENGTH_HIGH ] { 7 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } - Method [ public method getAlgorithmName ] { + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { } } } - Class [ class Crypto\HMAC extends Crypto\Hash ] { + Class [ abstract class Crypto\MAC extends Crypto\Hash ] { - Constants [0] { } @@ -375,10 +473,146 @@ Extension [ extension #78 crypto version 0.1.1 ] { } - Methods [7] { - Method [ public method __construct ] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $algorithm ] + Parameter #1 [ $key ] + } + } + + Method [ public method update ] { - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method getAlgorithmName ] { + } + + Method [ public method digest ] { + } + + Method [ public method hexdigest ] { + } + + Method [ public method getSize ] { + } + + Method [ public method getBlockSize ] { + } + } + } + + Class [ class Crypto\MACException extends Crypto\HashException ] { + + - Constants [8] { + Constant [ integer ALGORITHM_NOT_FOUND ] { 1 } + Constant [ integer STATIC_METHOD_NOT_FOUND ] { 2 } + Constant [ integer STATIC_METHOD_TOO_MANY_ARGS ] { 3 } + Constant [ integer INIT_FAILED ] { 4 } + Constant [ integer UPDATE_FAILED ] { 5 } + Constant [ integer DIGEST_FAILED ] { 6 } + Constant [ integer INPUT_DATA_LENGTH_HIGH ] { 7 } + Constant [ integer KEY_LENGTH_INVALID ] { 2 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Crypto\HMAC extends Crypto\MAC ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [3] { + Method [ static public method getAlgorithms ] { + + - Parameters [2] { + Parameter #0 [ $aliases ] + Parameter #1 [ $prefix ] + } + } + + Method [ static public method hasAlgorithm ] { + + - Parameters [1] { + Parameter #0 [ $algorithm ] + } + } + + Method [ static public method __callStatic ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $arguments ] + } + } + } + + - Properties [1] { + Property [ protected $algorithm ] + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [2] { Parameter #0 [ $algorithm ] + Parameter #1 [ $key ] } } @@ -389,6 +623,9 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } + Method [ public method getAlgorithmName ] { + } + Method [ public method digest ] { } @@ -400,8 +637,75 @@ Extension [ extension #78 crypto version 0.1.1 ] { Method [ public method getBlockSize ] { } + } + } + + Class [ class Crypto\CMAC extends Crypto\MAC ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [3] { + Method [ static public method getAlgorithms ] { + + - Parameters [2] { + Parameter #0 [ $aliases ] + Parameter #1 [ $prefix ] + } + } + + Method [ static public method hasAlgorithm ] { + + - Parameters [1] { + Parameter #0 [ $algorithm ] + } + } + + Method [ static public method __callStatic ] { + + - Parameters [2] { + Parameter #0 [ $name ] + Parameter #1 [ $arguments ] + } + } + } + + - Properties [1] { + Property [ protected $algorithm ] + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $algorithm ] + Parameter #1 [ $key ] + } + } + + Method [ public method update ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method getAlgorithmName ] { + } - Method [ public method getAlgorithmName ] { + Method [ public method digest ] { + } + + Method [ public method hexdigest ] { + } + + Method [ public method getSize ] { + } + + Method [ public method getBlockSize ] { } } } @@ -459,14 +763,15 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } - Class [ class Crypto\Base64Exception extends Exception ] { + Class [ class Crypto\Base64Exception extends Crypto\CryptoException ] { - - Constants [5] { - Constant [ integer ENCODE_UPDATE_STATUS ] { 1 } - Constant [ integer ENCODE_FINISH_STATUS ] { 2 } - Constant [ integer DECODE_UPDATE_STATUS ] { 3 } - Constant [ integer DECODE_FINISH_STATUS ] { 4 } - Constant [ integer DECODE_FAILED ] { 5 } + - Constants [6] { + Constant [ integer ENCODE_UPDATE_FORBIDDEN ] { 1 } + Constant [ integer ENCODE_FINISH_FORBIDDEN ] { 2 } + Constant [ integer DECODE_UPDATE_FORBIDDEN ] { 3 } + Constant [ integer DECODE_FINISH_FORBIDDEN ] { 4 } + Constant [ integer DECODE_UPDATE_FAILED ] { 5 } + Constant [ integer INPUT_DATA_LENGTH_HIGH ] { 6 } } - Static properties [0] { @@ -482,7 +787,7 @@ Extension [ extension #78 crypto version 0.1.1 ] { Property [ protected $line ] } - - Methods [9] { + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { @@ -492,6 +797,9 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } + Method [ public method __wakeup ] { + } + Method [ final public method getMessage ] { } @@ -526,7 +834,7 @@ Extension [ extension #78 crypto version 0.1.1 ] { - Static properties [0] { } - - Static methods [6] { + - Static methods [5] { Method [ static public method generate ] { - Parameters [3] { @@ -561,15 +869,6 @@ Extension [ extension #78 crypto version 0.1.1 ] { Parameter #0 [ $filename ] } } - - Method [ static public method egd ] { - - - Parameters [3] { - Parameter #0 [ $path ] - Parameter #1 [ $bytes ] - Parameter #2 [ $seed ] - } - } } - Properties [0] { @@ -579,11 +878,13 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } - Class [ class Crypto\RandException extends Exception ] { + Class [ class Crypto\RandException extends Crypto\CryptoException ] { - - Constants [2] { + - Constants [4] { Constant [ integer GENERATE_PREDICTABLE ] { 1 } Constant [ integer FILE_WRITE_PREDICTABLE ] { 2 } + Constant [ integer REQUESTED_BYTES_NUMBER_TOO_HIGH ] { 3 } + Constant [ integer SEED_LENGTH_TOO_HIGH ] { 4 } } - Static properties [0] { @@ -599,7 +900,7 @@ Extension [ extension #78 crypto version 0.1.1 ] { Property [ protected $line ] } - - Methods [9] { + - Methods [10] { Method [ public method __construct ] { - Parameters [3] { @@ -609,6 +910,9 @@ Extension [ extension #78 crypto version 0.1.1 ] { } } + Method [ public method __wakeup ] { + } + Method [ final public method getMessage ] { } -- cgit