[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
JSON Web Key (RFC7517 / RFC8037) Formatted EC 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: | 189 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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 |
getAlias(BaseCurve $curve) X-Ref |
Returns the alias that corresponds to a curve return: string |
savePublicKeyHelper(BaseCurve $curve, array $publicKey) X-Ref |
Return the array superstructure for an EC public key return: array param: \phpseclib3\Crypt\EC\BaseCurves\Base $curve param: \phpseclib3\Math\Common\FiniteField\Integer[] $publicKey |
savePublicKey(BaseCurve $curve, array $publicKey, array $options = []) X-Ref |
Convert an EC public key to the appropriate format return: string param: \phpseclib3\Crypt\EC\BaseCurves\Base $curve param: \phpseclib3\Math\Common\FiniteField\Integer[] $publicKey param: array $options optional |
savePrivateKey(BigInteger $privateKey, BaseCurve $curve, array $publicKey, $secret = null, $password = '', array $options = []) X-Ref |
Convert a private key to the appropriate format. return: string param: \phpseclib3\Math\BigInteger $privateKey param: \phpseclib3\Crypt\EC\Curves\Ed25519 $curve param: \phpseclib3\Math\Common\FiniteField\Integer[] $publicKey param: string $secret optional param: string $password optional param: array $options optional |