Implements interfaces:
Default SPI implemetation.
Default implementation of the service provider interface using mhash, mcrypt, and OpenSSL for cryptographic and PKI functionality and files for storage.
Located in /Crypt/KeyStore/SPI/DefaultKeyStore.php (line 49)
Lists all the alias names of this Crypt_KeyStore.
Checks if the given alias exists in this Crypt_KeyStore.
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
Creates a symmetric secret key from a randomly generated
pass phrase and stores the new key in the key store, protecting it with the password if specified. The pass phrase is a sequence of random hex numbers which is then used to generate the key using a SHA-256 hash and 8-bytes of salt.
Decrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
Deletes the entry identified by the given alias from this Crypt_KeyStore.
Encrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
Determines if the Crypt_KeyStore Entry for the specified alias is an instance or subclass of the specified entryClass.
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
Returns the certificate chain associated with the given alias.
Returns the creation date of the entry identified by the given alias.
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
Returns the type of this Crypt_KeyStore.
Default, no-argument contructor.
Imports a signed-certificate into the key store assigning the alias to the new entry. If the alias is a pre-existing private key, the certificate must be valid and correspond to the private key. Otherwise, an exception is thrown.
Returns true if the entry identified by the given alias is a Crypt_KeyStore_TrustedCertificateEntry.
Returns true if the entry identified by the given alias was is a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
Loads this Crypt_KeyStore from the given input stream.
Signs the data with the private key stored by the specified alias and returns the signature hex-encoded.
Retrieves the number of entries in this Crypt_KeyStore.
Stores this Crypt_KeyStore to the given output stream, and protects its integrity with the given password.
Verifies the signature was signed by the private key stored by the specified alias. The signature must be the hex-encoded signature.
CIPHER_3DES
= '3DES'
(line 105)
Generic cipher algorithm constants.
CIPHER_ARCFOUR
= 'ARCFOUR'
(line 107)
CIPHER_ARCFOUR_IV
= 'ARCFOUR_IV'
(line 106)
CIPHER_BLOWFISH
= 'BLOWFISH'
(line 108)
CIPHER_CAST
= 'CAST'
(line 109)
CIPHER_CRYPT
= 'CRYPT'
(line 110)
CIPHER_DES
= 'DES'
(line 111)
CIPHER_ENIGMA
= 'ENIGMA'
(line 112)
CIPHER_GOST
= 'GOST'
(line 113)
CIPHER_IDEA
= 'IDEA'
(line 114)
CIPHER_LOKI97
= 'LOKI97'
(line 115)
CIPHER_MARS
= 'MARS'
(line 116)
CIPHER_PANAMA
= 'PANAMA'
(line 117)
CIPHER_RC2
= 'RC2'
(line 119)
CIPHER_RC6
= 'RC6'
(line 120)
CIPHER_RIJNDAEL
= 'RIJNDAEL'
(line 118)
CIPHER_SAFER
= 'SAFER'
(line 121)
CIPHER_SAFERPLUS
= 'SAFERPLUS'
(line 122)
CIPHER_SERPENT
= 'SERPENT'
(line 123)
CIPHER_SKIPJACK
= 'SKIPJACK'
(line 124)
CIPHER_THREEWAY
= 'THREEWAY'
(line 125)
CIPHER_TRIPLEDES
= 'TRIPLEDES'
(line 126)
CIPHER_TWOFISH
= 'TWOFISH'
(line 127)
CIPHER_WAKE
= 'WAKE'
(line 128)
CIPHER_XTEA
= 'XTEA'
(line 129)
HASH_ADLER32
= 'ADLER32'
(line 63)
Generic hash algorithm constants.
HASH_CRC32
= 'CRC32'
(line 64)
HASH_CRC32B
= 'CRC32B'
(line 65)
HASH_GOST
= 'GOST'
(line 66)
HASH_HAVAL128
= 'HAVAL128'
(line 67)
HASH_HAVAL160
= 'HAVAL160'
(line 68)
HASH_HAVAL192
= 'HAVAL192'
(line 69)
HASH_HAVAL256
= 'HAVAL256'
(line 70)
HASH_MD2
= 'MD2'
(line 71)
HASH_MD4
= 'MD4'
(line 72)
HASH_MD5
= 'MD5'
(line 73)
HASH_RIPEMD160
= 'RIPEMD160'
(line 74)
HASH_SHA1
= 'SHA1'
(line 75)
HASH_SHA256
= 'SHA256'
(line 76)
HASH_TIGER
= 'TIGER'
(line 77)
HASH_TIGER128
= 'TIGER128'
(line 78)
HASH_TIGER160
= 'TIGER160'
(line 79)
KEYTYPE_DH
= 'DH'
(line 57)
KEYTYPE_DSA
= 'DSA'
(line 56)
KEYTYPE_RSA
= 'RSA'
(line 55)
Generic key-type constants.
MODE_CBC
= 'CBC'
(line 95)
MODE_CFB
= 'CFB'
(line 96)
MODE_ECB
= 'ECB'
(line 94)
Generic cipher mode constants.
MODE_NOFB
= 'NOFB'
(line 98)
MODE_OFB
= 'OFB'
(line 97)
MODE_STREAM
= 'STREAM'
(line 99)
OPT_CERT_DAYS
= 'days'
(line 173)
Option key for the certificate days.
OPT_CIPHER
= 'cipher'
(line 138)
Option key for the cipher algorithm.
OPT_DIGEST
= 'digest'
(line 163)
Option key for the message digest/signature algorithm.
OPT_HASH
= 'hash'
(line 143)
Option key for the hash algorithm.
OPT_KEYSIZE
= 'keysize'
(line 153)
Option key for the key size.
OPT_KEYTYPE
= 'keytype'
(line 168)
Option key for the key type.
OPT_MODE
= 'mode'
(line 148)
Option key for the cipher mode.
OPT_SALTSIZE
= 'saltsize'
(line 158)
Option key for the salt size.
SIGNATURE_MD2
= 'MD2'
(line 88)
SIGNATURE_MD4
= 'MD4'
(line 87)
SIGNATURE_MD5
= 'MD5'
(line 86)
SIGNATURE_SHA1
= 'SHA1'
(line 85)
Generic digest signature constants.
Documentation generated on Tue, 08 Jul 2008 14:52:06 -0500 by phpDocumentor 1.4.2