|
static | PlainEncrypt ($plaintext, $key, $iv) |
|
static | PlainDecrypt ($ciphertext, $key, $iv) |
|
static | SecureRandom ($octets) |
|
static | HKDF ($hash, $ikm, $length, $info='', $salt=NULL) |
|
static | VerifyHMAC ($correct_hmac, $message, $key) |
|
static | TestEncryptDecrypt () |
|
static | HKDFTestVector () |
|
static | HMACTestVector () |
|
static | AESTestVector () |
|
static | hexToBytes ($hex_string) |
|
static | EnsureFunctionExists ($name) |
|
static | our_strlen ($str) |
|
static | our_substr ($str, $start, $length=NULL) |
|
◆ AESTestVector()
◆ CreateNewRandomKey()
static CreateNewRandomKey |
( |
| ) |
|
|
static |
◆ Decrypt()
static Decrypt |
( |
|
$ciphertext, |
|
|
|
$key |
|
) |
| |
|
static |
◆ Encrypt()
static Encrypt |
( |
|
$plaintext, |
|
|
|
$key |
|
) |
| |
|
static |
◆ EnsureFunctionExists()
static EnsureFunctionExists |
( |
|
$name | ) |
|
|
staticprivate |
◆ hexToBytes()
static hexToBytes |
( |
|
$hex_string | ) |
|
|
staticprivate |
◆ HKDF()
static HKDF |
( |
|
$hash, |
|
|
|
$ikm, |
|
|
|
$length, |
|
|
|
$info = '' , |
|
|
|
$salt = NULL |
|
) |
| |
|
staticprivate |
◆ HKDFTestVector()
static HKDFTestVector |
( |
| ) |
|
|
staticprivate |
◆ HMACTestVector()
static HMACTestVector |
( |
| ) |
|
|
staticprivate |
◆ our_strlen()
static our_strlen |
( |
|
$str | ) |
|
|
staticprivate |
◆ our_substr()
static our_substr |
( |
|
$str, |
|
|
|
$start, |
|
|
|
$length = NULL |
|
) |
| |
|
staticprivate |
◆ PlainDecrypt()
static PlainDecrypt |
( |
|
$ciphertext, |
|
|
|
$key, |
|
|
|
$iv |
|
) |
| |
|
staticprivate |
◆ PlainEncrypt()
static PlainEncrypt |
( |
|
$plaintext, |
|
|
|
$key, |
|
|
|
$iv |
|
) |
| |
|
staticprivate |
◆ RuntimeTest()
◆ SecureRandom()
static SecureRandom |
( |
|
$octets | ) |
|
|
staticprivate |
◆ TestEncryptDecrypt()
static TestEncryptDecrypt |
( |
| ) |
|
|
staticprivate |
◆ VerifyHMAC()
static VerifyHMAC |
( |
|
$correct_hmac, |
|
|
|
$message, |
|
|
|
$key |
|
) |
| |
|
staticprivate |
◆ AUTHENTICATION_INFO
const AUTHENTICATION_INFO = 'DefusePHP|KeyForAuthentication' |
◆ CIPHER
const CIPHER = MCRYPT_RIJNDAEL_128 |
◆ CIPHER_MODE
const CIPHER_MODE = 'cbc' |
◆ ENCRYPTION_INFO
const ENCRYPTION_INFO = 'DefusePHP|KeyForEncryption' |
◆ HASH_FUNCTION
const HASH_FUNCTION = 'sha256' |
◆ KEY_BYTE_SIZE
◆ MAC_BYTE_SIZE
La documentation de cette classe a été générée à partir du fichier suivant :