[ Index ]

PHP Cross Reference of DokuWiki




/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Formats/Keys/ -> PKCS1.php (summary)

"PKCS1" (RFC5915) Formatted EC 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: 194 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions


Functions that are not part of a class:

load($key, $password = '')   X-Ref
Break a public or private key down into its constituent components

param: string $key
param: string $password optional
return: array

saveParameters(BaseCurve $curve, array $options = [])   X-Ref
Convert EC parameters to the appropriate format

return: string

savePrivateKey(BigInteger $privateKey, BaseCurve $curve, array $publicKey, $secret = null, $password = '', array $options = [])   X-Ref
Convert a private key to the appropriate format.

param: \phpseclib3\Math\BigInteger $privateKey
param: \phpseclib3\Crypt\EC\BaseCurves\Base $curve
param: \phpseclib3\Math\Common\FiniteField\Integer[] $publicKey
param: string $secret optional
param: string $password optional
param: array $options optional
return: string