[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/ -> PKCS8.php (summary)

PKCS#8 Formatted DSA 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: 146 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  load()
  savePrivateKey()
  savePublicKey()

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

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

savePrivateKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, BigInteger $x, $password = '', array $options = [])   X-Ref
Convert a private key to the appropriate format.

return: string
param: \phpseclib3\Math\BigInteger $p
param: \phpseclib3\Math\BigInteger $q
param: \phpseclib3\Math\BigInteger $g
param: \phpseclib3\Math\BigInteger $y
param: \phpseclib3\Math\BigInteger $x
param: string $password optional
param: array $options optional

savePublicKey(BigInteger $p, BigInteger $q, BigInteger $g, BigInteger $y, array $options = [])   X-Ref
Convert a public key to the appropriate format

return: string
param: \phpseclib3\Math\BigInteger $p
param: \phpseclib3\Math\BigInteger $q
param: \phpseclib3\Math\BigInteger $g
param: \phpseclib3\Math\BigInteger $y
param: array $options optional