[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
PKCS#8 Formatted Key Handler PHP version 5
Author: | Jim Wigginton |
Copyright: | 2015 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
Link: | http://phpseclib.sourceforge.net |
File Size: | 725 lines (28 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
setEncryptionAlgorithm($algo) X-Ref |
Sets the default encryption algorithm param: string $algo |
setEncryptionScheme($algo) X-Ref |
Sets the default encryption algorithm for PBES2 param: string $algo |
setIterationCount($count) X-Ref |
Sets the iteration count param: int $count |
setPRF($algo) X-Ref |
Sets the PRF for PBES2 param: string $algo |
getPBES1EncryptionObject($algo) X-Ref |
Returns a SymmetricKey object based on a PBES1 $algo return: \phpseclib3\Crypt\Common\SymmetricKey param: string $algo |
getPBES1Hash($algo) X-Ref |
Returns a hash based on a PBES1 $algo return: string param: string $algo |
getPBES1KDF($algo) X-Ref |
Returns a KDF baesd on a PBES1 $algo return: string param: string $algo |
getPBES2EncryptionObject($algo) X-Ref |
Returns a SymmetricKey object baesd on a PBES2 $algo return: SymmetricKey param: string $algo |
initialize_static_variables() X-Ref |
Initialize static variables |
load($key, $password = '') X-Ref |
Break a public or private key down into its constituent components return: array param: string $key param: string $password optional |
wrapPrivateKey($key, $attr, $params, $password, $oid = null, $publicKey = '', array $options = []) X-Ref |
Wrap a private key appropriately return: string param: string $key param: string $attr param: mixed $params param: string $password param: string $oid optional param: string $publicKey optional param: array $options optional |
wrapPublicKey($key, $params, $oid = null) X-Ref |
Wrap a public key appropriately return: string param: string $key param: mixed $params param: string $oid |
preParse(&$key) X-Ref |
Perform some preliminary parsing of the key return: array param: string $key |
extractEncryptionAlgorithm($key) X-Ref |
Returns the encryption parameters used by the key return: array param: string $key |