Lines Matching refs:key

41  * Technically, id-RSASSA-PSS has a different key format than rsaEncryption. So
45 * decode an id-RSASSA-PSS key. For X.509 certificates the id-RSASSA-PSS
242 * than 256 bits. As a consequence if the key you're trying to create is 1024 bits and you've set smallestPrime
245 * ignored (ie. multi-prime RSA support is more intended as a way to speed up RSA key generation when there's
260 * Sets the public exponent for key generation
272 * Sets the smallest prime number in bits. Used for key generation
296 * Create a private key
298 * The public key can be extracted from the private key
441 $key = $components['isPublicKey'] ?
445 $key->modulus = $components['modulus'];
446 $key->publicExponent = $components['publicExponent'];
447 $key->k = $key->modulus->getLengthInBytes();
450 $key->exponent = $key->publicExponent;
452 $key->privateExponent = $components['privateExponent'];
453 $key->exponent = $key->privateExponent;
454 $key->primes = $components['primes'];
455 $key->exponents = $components['exponents'];
456 $key->coefficients = $components['coefficients'];
460 // in the X509 world RSA keys are assumed to use PKCS1 padding by default. only if the key is
461 // explicitly a PSS key is the use of PSS assumed. phpseclib does not work like this. phpseclib
467 //$key = $key->withPadding(self::SIGNATURE_PSS);
469 $key = $key->withHash($components['hash']);
472 $key = $key->withMGFHash($components['MGFHash']);
475 $key = $key->withSaltLength($components['saltLength']);
479 return $key;
683 * Returns the key size
834 * Example: $key->withPadding(RSA::ENCRYPTION_PKCS1 | RSA::SIGNATURE_PKCS1);
898 * OpenSSL is only used in this class (and it's subclasses) for key generation
900 * multi-prime RSA nor is it used if the key length is outside of the range