CRYPT_AES_MODE
CRYPT_AES_MODE_CBC
CRYPT_AES_MODE_CFB
CRYPT_AES_MODE_CTR
Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.
link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29 |
---|
CRYPT_AES_MODE_ECB
CRYPT_AES_MODE_INTERNAL
CRYPT_AES_MODE_MCRYPT
CRYPT_AES_MODE_OFB
CRYPT_DES_DECRYPT
CRYPT_DES_ENCRYPT
CRYPT_DES_MODE
CRYPT_DES_MODE_CBC
CRYPT_DES_MODE_CFB
CRYPT_DES_MODE_CTR
Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.
link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29 |
---|
CRYPT_DES_MODE_ECB
CRYPT_DES_MODE_INTERNAL
CRYPT_DES_MODE_MCRYPT
CRYPT_DES_MODE_OFB
Pure-PHP implementations of keyed-hash message authentication codes (HMACs) and various cryptographic hashing functions.
« More »CRYPT_HASH_MODE
CRYPT_HASH_MODE_HASH
CRYPT_HASH_MODE_INTERNAL
CRYPT_HASH_MODE_MHASH
CRYPT_RC4_DECRYPT
CRYPT_RC4_ENCRYPT
CRYPT_RC4_MODE
CRYPT_RC4_MODE_INTERNAL
CRYPT_RC4_MODE_MCRYPT
CRYPT_RSA_ASN1_INTEGER
CRYPT_RSA_ASN1_SEQUENCE
CRYPT_RSA_COMMENT
CRYPT_RSA_ENCRYPTION_OAEP
Uses sha1 by default.
see | \global\Crypt_RSA::setHash() |
---|---|
see | \global\Crypt_RSA::setMGFHash() |
CRYPT_RSA_ENCRYPTION_PKCS1
Although CRYPT_RSA_ENCRYPTION_OAEP offers more security, including PKCS#1 padding is necessary for purposes of backwards compatability with protocols (like SSH-1) written before OAEP's introduction.
CRYPT_RSA_EXPONENT
CRYPT_RSA_MODE
CRYPT_RSA_MODE_INTERNAL
CRYPT_RSA_MODE_OPENSSL
(if enabled; otherwise, the internal implementation will be used)
CRYPT_RSA_PRIVATE_FORMAT_PKCS1
Used by OpenSSH
CRYPT_RSA_PRIVATE_FORMAT_PUTTY
CRYPT_RSA_PRIVATE_FORMAT_XML
CRYPT_RSA_PUBLIC_FORMAT_OPENSSH
Place in $HOME/.ssh/authorized_keys
CRYPT_RSA_PUBLIC_FORMAT_PKCS1
CRYPT_RSA_PUBLIC_FORMAT_RAW
An array containing two Math_BigInteger objects.
The exponent can be indexed with any of the following:
0, e, exponent, publicExponent
The modulus can be indexed with any of the following:
1, n, modulo, modulus
CRYPT_RSA_PUBLIC_FORMAT_XML
CRYPT_RSA_SIGNATURE_PKCS1
Although CRYPT_RSA_SIGNATURE_PSS offers more security, including PKCS#1 signing is necessary for purposes of backwards compatability with protocols (like SSH-2) written before PSS's introduction.
CRYPT_RSA_SIGNATURE_PSS
Uses sha1 by default.
see | \global\Crypt_RSA::setSaltLength() |
---|---|
see | \global\Crypt_RSA::setMGFHash() |
CRYPT_RSA_SMALLEST_PRIME
crypt_random(\optional $min, \optional $max) : Integer
On 32-bit machines, the largest distance that can exist between $min and $max is 2**31. If $min and $max are farther apart than that then the last ($max - range) numbers.
Depending on how this is being used, it may be worth while to write a replacement. For example, a PHP-based web app that stores its data in an SQL database can collect more entropy than this function can.
access | public |
---|
\optional
Integer $min
\optional
Integer $max
Integer
CRYPT_RIJNDAEL_MODE_CBC
CRYPT_RIJNDAEL_MODE_CFB
CRYPT_RIJNDAEL_MODE_CTR
Set to -1 since that's what Crypt/Random.php uses to index the CTR mode.
link | http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation#Counter_.28CTR.29 |
---|
CRYPT_RIJNDAEL_MODE_ECB
CRYPT_RIJNDAEL_MODE_INTERNAL
CRYPT_RIJNDAEL_MODE_MCRYPT
CRYPT_RIJNDAEL_MODE_OFB
CRYPT_DES_MODE
CRYPT_DES_MODE_3CBC
Inner chaining is used by SSH-1 and is generally considered to be less secure then outer chaining (CRYPT_DES_MODE_CBC3).
CRYPT_DES_MODE_CBC3
Outer chaining is used by SSH-2 and when the mode is set to CRYPT_DES_MODE_CBC.