Lines Matching defs:bits
242 * than 256 bits. As a consequence if the key you're trying to create is 1024 bits and you've set smallestPrime
243 * to 384 bits then you're going to get a 384 bit prime and a 640 bit prime (384 + 1024 % 384). At least if
272 * Sets the smallest prime number in bits. Used for key generation
301 * @param int $bits
303 public static function createKey($bits = 2048)
312 $regSize = $bits >> 1; // divide by two to see how many bits P and Q would be
314 $num_primes = floor($bits / self::$smallestPrime);
320 if ($num_primes == 2 && $bits >= 384 && self::$defaultExponent == 65537) {
325 // OpenSSL uses 65537 as the exponent and requires RSA keys be 384 bits minimum
331 $rsa = openssl_pkey_new(['private_key_bits' => $bits] + $config);
360 extract(BigInteger::minMaxBits($bits));
415 $privatekey->k = $bits >> 3;
425 $publickey->k = $bits >> 3;
685 * More specifically, this returns the size of the modulo in bits.