Lines Matching refs:private
451 $private = ASN1::asn1map($decoded[0], Maps\OneAsymmetricKey::MAP);
452 if (is_array($private)) {
453 …if (isset($private['privateKeyAlgorithm']['parameters']) && !$private['privateKeyAlgorithm']['para…
455 …$private['privateKeyAlgorithm']['parameters'] = new ASN1\Element(substr($key, $temp['start'], $tem…
458 if (!in_array($private['privateKeyAlgorithm']['algorithm'], static::OID_NAME)) {
459 …throw new UnsupportedAlgorithmException($private['privateKeyAlgorithm']['algorithm'] . ' is not a …
462 if ($private['privateKeyAlgorithm']['algorithm'] != static::OID_NAME) {
463 …eption('Only ' . static::OID_NAME . ' keys are supported; this is a ' . $private['privateKeyAlgori…
466 if (isset($private['publicKey'])) {
467 if ($private['publicKey'][0] != "\0") {
468 …tion('The first byte of the public key should be null - not ' . bin2hex($private['publicKey'][0]));
470 $private['publicKey'] = substr($private['publicKey'], 1);
472 return $private + $meta;