[Crypt_KeyStore] element index

All elements
a b c d e g h i k l m o p s t v x _
_
top
__construct
Contructs a private key key store entry.
__construct
Constructs a new base key store entry.
__construct
Constructs a secret key key store entry with the secret key.
__construct
Constructs a trusted certificate key store entry with the trusted certificate.
__construct
Constructs an X509Certificate using the PEM-encoded certificate data.
__construct
Constructs a DefaultSecretKey using the $keyData and $algorithm.
__construct
Constructs the unit test.
__construct
Default, no-argument contructor.
__construct
Constructs an DefaultPrivateKey using the $keyData and $algorithm.
__construct
Constructs an DefaultPublicKey using the $keyData and $algorithm.
__toString
Returns a string representation of this Crypt_KeyStore_TrustedCertificateEntry.
__toString
Returns a string representation of this certificate.
__toString
Returns a string representation of this key.
__toString
Returns a string representation of this key.
__toString
Returns a string representation of this Crypt_KeyStore_PrivateKeyEntry.
__toString
Returns a string representation of this key.
__toString
Returns a string representation of this Crypt_KeyStore_SecretKeyEntry.
a
top
aliases
Lists all the alias names of this Crypt_KeyStore.
aliases
Lists all the alias names of this Crypt_KeyStore.
aliases
Lists all the alias names of this Crypt_KeyStore.
b
top
BaseEntry.php
BaseEntry.php in BaseEntry.php
c
top
CIPHER_3DES
Generic cipher algorithm constants.
CIPHER_ARCFOUR
CIPHER_ARCFOUR_IV
CIPHER_BLOWFISH
CIPHER_CAST
CIPHER_CRYPT
CIPHER_DES
CIPHER_ENIGMA
CIPHER_GOST
CIPHER_IDEA
CIPHER_LOKI97
CIPHER_MARS
CIPHER_PANAMA
CIPHER_RC2
CIPHER_RC6
CIPHER_RIJNDAEL
CIPHER_SAFER
CIPHER_SAFERPLUS
CIPHER_SERPENT
CIPHER_SKIPJACK
CIPHER_THREEWAY
CIPHER_TRIPLEDES
CIPHER_TWOFISH
CIPHER_WAKE
CIPHER_XTEA
containsAlias
Checks if the given alias exists in this Crypt_KeyStore.
containsAlias
Checks if the given alias exists in this Crypt_KeyStore.
containsAlias
Checks if the given alias exists in this Crypt_KeyStore.
createCSR
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
createCSR
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
createCSR
Creates a new private key and certificate signing request (CSR) for the private key. The CSR is returned for signing.
createSecretKey
Creates a symmetric secret key from a randomly generated
createSecretKey
Creates a symmetric secret key from a randomly generated
createSecretKey
Creates a symmetric secret key from a randomly generated
Certificate.php
Certificate.php in Certificate.php
Crypt_KeyStore
Crypt_KeyStore in KeyStore.php
<p>This class represents a storage facility for cryptographic keys and certificates.</p>
Crypt_KeyStore_BaseEntry
Crypt_KeyStore_BaseEntry in BaseEntry.php
Abstract base implementation of the key store entry interface.
Crypt_KeyStore_Certificate
Crypt_KeyStore_Certificate in Certificate.php
CRYPT_KEYSTORE_CMDOPT_ALIAS
CRYPT_KEYSTORE_CMDOPT_DEST
CRYPT_KEYSTORE_CMDOPT_FILE
CRYPT_KEYSTORE_CMDOPT_KEYPASS
CRYPT_KEYSTORE_CMDOPT_KEYSTORE
CRYPT_KEYSTORE_CMDOPT_NEW
CRYPT_KEYSTORE_CMDOPT_STOREPASS
CRYPT_KEYSTORE_CMD_CERTREQ
CRYPT_KEYSTORE_CMD_DELETE
CRYPT_KEYSTORE_CMD_EXPORT
CRYPT_KEYSTORE_CMD_GENKEY
CRYPT_KEYSTORE_CMD_IMPORT
CRYPT_KEYSTORE_CMD_KEYCLONE
CRYPT_KEYSTORE_CMD_KEYPASSWD
CRYPT_KEYSTORE_CMD_LIST
CRYPT_KEYSTORE_CMD_STOREPASSWD
Crypt_KeyStore_Entry
Defines an entry in the key store.
Crypt_KeyStore_Exception
Crypt_KeyStore_Exception in Exception.php
Wrapper exception class that encapsulates any exception/error from the underlying menchanisms involved in encrypting, hashing, encoding, loading, storing, etc. the key store.
Crypt_KeyStore_Key
Interface for keys (symmetric or asymmetric) stored by the key store.
Crypt_KeyStore_KeyTool
Crypt_KeyStore_KeyTool in KeyTool.php
A trusted certificate key store entry that includes a trusted certificate.
CRYPT_KEYSTORE_MAIN_METHOD
Crypt_KeyStore_PrivateKey
Crypt_KeyStore_PrivateKey in PrivateKey.php
Marker interface for implementations of a private key.
Crypt_KeyStore_PrivateKeyEntry
Crypt_KeyStore_PrivateKeyEntry in PrivateKeyEntry.php
An asymmetric private key key store entry that includes a public certificate, a private key, and optionally a certificate chain.
Crypt_KeyStore_PublicKey
Crypt_KeyStore_PublicKey in PublicKey.php
Marker interface for implementations of a public key.
Crypt_KeyStore_SecretKey
Crypt_KeyStore_SecretKey in SecretKey.php
Marker interface for implementations of a secret key.
Crypt_KeyStore_SecretKeyEntry
Crypt_KeyStore_SecretKeyEntry in SecretKeyEntry.php
A symmetric key key store entry that includes a secret key.
Crypt_KeyStore_SPI_DefaultKeyStore
Crypt_KeyStore_SPI_DefaultKeyStore in DefaultKeyStore.php
Default SPI implemetation.
Crypt_KeyStore_SPI_DefaultPrivateKey
Crypt_KeyStore_SPI_DefaultPrivateKey in DefaultPrivateKey.php
PrivateKey implementation for use with OpenSSL extension where the encoded format is PEM X509.
Crypt_KeyStore_SPI_DefaultPublicKey
Crypt_KeyStore_SPI_DefaultPublicKey in DefaultPublicKey.php
PublicKey implementation for use with OpenSSL extension where the encoded format is PEM X509.
Crypt_KeyStore_SPI_DefaultSecretKey
Crypt_KeyStore_SPI_DefaultSecretKey in DefaultSecretKey.php
Default implementation of the SecretKey interface for use with mycrypt/mhash.
Crypt_KeyStore_SPI_KeyStoreSPI
This class defines the Service Provider Interface (SPI) for the KeyStore class. All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a keystore for a particular keystore type.
Crypt_KeyStore_SPI_X509Certificate
Crypt_KeyStore_SPI_X509Certificate in X509Certificate.php
Certificate interface implementation for X509 certificates.
Crypt_KeyStore_Test
Crypt_KeyStore_Test in KeyStoreTest.php
Crypt_KeyStore unit test case.
Crypt_KeyStore_TrustedCertificateEntry
Crypt_KeyStore_TrustedCertificateEntry in TrustedCertificateEntry.php
A trusted certificate key store entry that includes a trusted certificate.
d
top
$DEFAULT_Crypt_KeyStore_TYPE
DefaultKeyStore.php
DefaultKeyStore.php in DefaultKeyStore.php
DefaultPrivateKey.php
DefaultPrivateKey.php in DefaultPrivateKey.php
DefaultPublicKey.php
DefaultPublicKey.php in DefaultPublicKey.php
DefaultSecretKey.php
DefaultSecretKey.php in DefaultSecretKey.php
decrypt
Decrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
decrypt
Decrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
decrypt
Decrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
deleteEntry
Deletes the entry identified by the given alias from this Crypt_KeyStore.
deleteEntry
Deletes the entry identified by the given alias from this Crypt_KeyStore.
deleteEntry
Deletes the entry identified by the given alias from this Crypt_KeyStore.
doCertReq
Process certreq command.
doDelete
Process delete command.
doExport
Process export command.
doGenKey
Process genkey command.
doImport
Process import command.
doKeyClone
Process keyclone command.
doKeyPasswd
Process keypasswd command.
doList
Process list command.
doStorePasswd
Process storepasswd command.
e
top
Entry.php
Entry.php in Entry.php
Exception.php
Exception.php in Exception.php
encrypt
Encrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
encrypt
Encrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
encrypt
Encrypts the data with the key stored with the alias, optionally using the password to decrypt the key.
entryInstanceOf
Determines if the Crypt_KeyStore Entry for the specified alias is an instance or subclass of the specified entryClass.
entryInstanceOf
Determines if the Crypt_KeyStore Entry for the specified alias is an instance or subclass of the specified entryClass.
entryInstanceOf
Determines if the Crypt_KeyStore Entry for the specified alias is an instance or subclass of the specified entryClass.
g
top
getAlgorithm
Returns the standard algorithm name for this key. For RSA public keys, the algorithm will be 'RSA'.
getAlgorithm
Returns the standard algorithm name for this key.
getAlgorithm
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key.
getAlgorithm
Returns the standard algorithm name for this key. For example, "DSA" would indicate that this key is a DSA key.
getCertificate
Gets the end entity Certificate from the certificate chain in this entry.
getCertificateAlias
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
getCertificateAlias
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
getCertificateAlias
Returns the (alias) name of the first Crypt_KeyStore entry whose certificate matches the given certificate.
getCertificateChain
Returns the certificate chain associated with the given alias.
getCertificateChain
Returns the certificate chain associated with the given alias.
getCertificateChain
Gets the Certificate chain from this entry.
getCertificateChain
Returns the certificate chain associated with the given alias.
getCreationDate
Returns the creation date of the entry identified by the given alias.
getCreationDate
Returns the creation date of the entry identified by the given alias.
getCreationDate
Returns the date the entry was created in the key store.
getCreationDate
Returns the creation date of the entry identified by the given alias.
getCreationDate
Returns the date/time stamp the key store entry was added to the key store.
getDefaultType
Returns the default Crypt_KeyStore type.
getEncoded
Returns the encoded form of this certificate. It is assumed that each certificate type would have only a single form of encoding; for example, X.509 certificates would be encoded as PEM.
getEncoded
Returns the key in its primary encoding format, or null if this key does not support encoding.
getEncoded
Returns the key in its primary encoding format, or null if this key does not support encoding.
getEncoded
Returns the key in its primary encoding format, or null if this key does not support encoding.
getEncoded
Returns the encoded form of this certificate.
getEncoded
Returns the key in its primary encoding format, or null if this key does not support encoding.
getEntry
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
getEntry
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
getEntry
Gets a Crypt_KeyStore Entry for the specified alias with the specified protection parameter.
getEntryType
Returns the type of the key store entry.
getEntryType
Returns the type of the key store entry.
getEntryType
Returns an integer identifier that indicates the type of key store entry.
getEntryType
Returns the type of the key store entry.
getFormat
Returns the name of the primary encoding format of this key, or null if
getFormat
Returns the name of the primary encoding format of this key, or null if this key does not support encoding. For default public keys, the format is 'X509'.
getFormat
Returns the name of the primary encoding format of this key, or null if this key does not support encoding. For symmetric, secret keys, the formatting is 'HEX'.
getFormat
Returns the name of the primary encoding format of this key, or null if this key does not support encoding. For default private keys, the format is 'X509'.
getInstance
Returns a Crypt_KeyStore object of the specified type. If an instance of the specified type is not already initialized, a new instance is created.
getOptionValue
Returns the named option's value from the options array.
getPrivateKey
Gets the PrivateKey from this entry.
getPublicKey
Gets the public key from this certificate.
getPublicKey
Gets the public key from this certificate.
getSecretKey
Gets the SecretKey from this entry.
getSize
Returns the size of the key in # of characters. In other words, a 256-bit key would be 32 characters (8 bits/character).
getSize
Returns the size of the key, in bits.
getTrustedCertificate
Gets the trusted Certficate from this entry.
getType
Returns the type of this certificate. For this implementation, the type
getType
Returns the type of this Crypt_KeyStore.
getType
Returns the type of this certificate.
getType
Returns the type of this Crypt_KeyStore.
getType
Returns the type of this Crypt_KeyStore.
h
top
handleArguments
Parses command line into command line arguments array.
HASH_ADLER32
Generic hash algorithm constants.
HASH_CRC32
HASH_CRC32B
HASH_GOST
HASH_HAVAL128
HASH_HAVAL160
HASH_HAVAL192
HASH_HAVAL256
HASH_MD2
HASH_MD4
HASH_MD5
HASH_RIPEMD160
HASH_SHA1
HASH_SHA256
HASH_TIGER
HASH_TIGER128
HASH_TIGER160
hasOption
Determines whether the named option is specified in the options array.
i
top
importCertificate
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.
importCertificate
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.
importCertificate
Imports a signed-certificate into the key store assigning the alias to
initializeDn
Helper function to return an associative array initialized with default values for a distinguished name (DN) worthy of creating a CSR.
isCertificateEntry
Returns true if the entry identified by the given alias was created by a call to _setCertificateEntry, or created by a call to _setEntry with a Crypt_KeyStore_TrustedCertificateEntry.
isCertificateEntry
Returns true if the entry identified by the given alias is a Crypt_KeyStore_TrustedCertificateEntry.
isCertificateEntry
Returns true if the entry identified by the given alias was created by a call to _setCertificateEntry, or created by a call to _setEntry with a Crypt_KeyStore_TrustedCertificateEntry.
isEqualTo
Returns true if and only if this certificate is the same certificate as the Certificate object pointed to by $rhsCert.
isEqualTo
Returns true if and only if this certificate is the same certificate as the Certificate object pointed to by $rhsCert.
isKeyEntry
Returns true if the entry identified by the given alias was created by a call to _setKeyEntry, or created by a call to _setEntry with a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
isKeyEntry
Returns true if the entry identified by the given alias was created by a call to _setKeyEntry, or created by a call to _setEntry with a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
isKeyEntry
Returns true if the entry identified by the given alias was is a Crypt_KeyStore_PrivateKeyEntry or a Crypt_KeyStore_SecretKeyEntry.
k
top
Key.php
Key.php in Key.php
KeyTool.php
KeyTool.php in KeyTool.php
KeyStoreSPI.php
KeyStoreSPI.php in KeyStoreSPI.php
KeyStoreTest.php
KeyStoreTest.php in KeyStoreTest.php
KeyStore.php
KeyStore.php in KeyStore.php
KEYTYPE_DH
KEYTYPE_DSA
KEYTYPE_RSA
Generic key-type constants.
l
top
load
Loads this Crypt_KeyStore from the given input stream.
load
Crypt_KeyStore::load() in KeyStore.php
Loads this Crypt_KeyStore from the given input stream.
load
Loads this Crypt_KeyStore from the given input stream.
m
top
main
Program entry point.
MODE_CBC
MODE_CFB
MODE_ECB
Generic cipher mode constants.
MODE_NOFB
MODE_OFB
MODE_STREAM
o
top
OPT_CERT_DAYS
Option key for the certificate days.
OPT_CIPHER
Option key for the cipher algorithm.
OPT_DIGEST
Option key for the message digest/signature algorithm.
OPT_HASH
Option key for the hash algorithm.
OPT_KEYSIZE
Option key for the key size.
OPT_KEYTYPE
Option key for the key type.
OPT_MODE
Option key for the cipher mode.
OPT_SALTSIZE
Option key for the salt size.
p
top
PrivateKey.php
PrivateKey.php in PrivateKey.php
PrivateKeyEntry.php
PrivateKeyEntry.php in PrivateKeyEntry.php
PublicKey.php
PublicKey.php in PublicKey.php
PRIVATEKEY_TYPE
s
top
SecretKey.php
SecretKey.php in SecretKey.php
SecretKeyEntry.php
SecretKeyEntry.php in SecretKeyEntry.php
SECRETKEY_TYPE
setUp
Crypt_KeyStore_Test::setUp() in KeyStoreTest.php
Sets up the unit test.
showHelp
Displays the help message.
sign
Signs the data with the private key stored by the specified alias.
sign
Crypt_KeyStore::sign() in KeyStore.php
Signs the data with the private key stored by the specified alias.
sign
Signs the data with the private key stored by the specified alias and returns the signature hex-encoded.
SIGNATURE_MD2
SIGNATURE_MD4
SIGNATURE_MD5
SIGNATURE_SHA1
Generic digest signature constants.
size
Retrieves the number of entries in this Crypt_KeyStore.
size
Retrieves the number of entries in this Crypt_KeyStore.
size
Crypt_KeyStore::size() in KeyStore.php
Retrieves the number of entries in this Crypt_KeyStore.
store
Crypt_KeyStore::store() in KeyStore.php
Stores this Crypt_KeyStore to the given output stream, and protects its integrity with the given password.
store
Stores this Crypt_KeyStore to the given output stream, and protects its integrity with the given password.
store
Stores this Crypt_KeyStore to the given output stream, and protects its integrity with the given password.
t
top
TrustedCertificateEntry.php
TrustedCertificateEntry.php in TrustedCertificateEntry.php
tearDown
Tears down the unit test.
testAliases
Test getting the list of aliases stored in the key store.
testContainsAlias
Test the "contains alias" query.
testCreateCSR
Test creating a CSR.
testCreateSecretKey
Test creating a symmetric secret key.
testDecryptAsymmetric
Test decrypting encrypted text with asymmetric key pair.
testDecryptSymmetric
Test decrypting encrypted text with symmetric secret key.
testDeleteEntry
Test deleting a key store entry.
testEncryptAsymmetric
Test encrypting plain text with asymmetric key pair.
testEncryptSymmetric
Test encrypting plain text with symmetric secret key.
testEntryInstanceOf
Test getting an instance of the default key store type.
testGetCertificateAlias
Test retrieving the alias of a certificate.
testGetCertificateChain
Test retrieving a certificate chain.
testGetCreationDate
Test getting an entry's creation date.
testGetDefaultType
Test retrieving the default key store type.
testGetEntry
Test retrieving a key store entry.
testGetType
Test getting the key store's type.
testImportCertificate
Tests the importing of a certificate.
testIsCertificateEntry
Test the "is certificate entry" query.
testIsKeyEntry
Test the "is key entry" query.
testLoad
Test loading a key store from a file.
testSign
Test signing data.
testStore
Test storing a key store to a file.
testVerify
Test verifying a signature.
TRUSTEDCERT_TYPE
v
top
verify
Verifies the signature was signed by the private key stored by the specified alias.
verify
Crypt_KeyStore::verify() in KeyStore.php
Verifies the signature was signed by the private key stored by the specified alias.
verify
Verifies the signature was signed by the private key stored by the specified alias. The signature must be the hex-encoded signature.
x
top
X509Certificate.php
X509Certificate.php in X509Certificate.php
a b c d e g h i k l m o p s t v x _