Lines Matching refs:components
123 $components = ['isPublicKey' => $publickey];
145 $components['isPublicKey'] = false;
158 …$components[$components['isPublicKey'] ? 'publicExponent' : 'privateExponent'] = new BigInteger(st…
160 $components['modulus'] = new BigInteger(strrev(Strings::shift($key, $bitlen / 8)), 256);
163 return $components;
166 $components['isPublicKey'] = false;
169 … $components['primes'] = [1 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256)];
171 $components['primes'][] = new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256);
173 … $components['exponents'] = [1 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256)];
175 … $components['exponents'][] = new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256);
177 …$components['coefficients'] = [2 => new BigInteger(strrev(Strings::shift($key, $bitlen / 16)), 256…
178 if (isset($components['privateExponent'])) {
179 $components['publicExponent'] = $components['privateExponent'];
182 … $components['privateExponent'] = new BigInteger(strrev(Strings::shift($key, $bitlen / 8)), 256);
184 return $components;