| @@ 45-55 (lines=11) @@ | ||
| 42 | ); |
|
| 43 | } |
|
| 44 | ||
| 45 | protected function decrypt($data) |
|
| 46 | { |
|
| 47 | if (!$data instanceof EncryptedValue) return null; |
|
| 48 | ||
| 49 | return unserialize($this->decryptString( |
|
| 50 | $data->getCipherText(), |
|
| 51 | $data->getMethod(), |
|
| 52 | $this->password, |
|
| 53 | $data->getInitializationVector() |
|
| 54 | )); |
|
| 55 | } |
|
| 56 | ||
| 57 | private function authenticate($key, $cipherText) |
|
| 58 | { |
|
| @@ 59-69 (lines=11) @@ | ||
| 56 | ); |
|
| 57 | } |
|
| 58 | ||
| 59 | protected function decrypt($data) |
|
| 60 | { |
|
| 61 | if (!$data instanceof EncryptedValue) return null; |
|
| 62 | ||
| 63 | return unserialize($this->decryptString( |
|
| 64 | $data->getCipherText(), |
|
| 65 | $data->getMethod(), |
|
| 66 | $this->decryptEnvelopeKey($data->getEnvelopeKey()), |
|
| 67 | $data->getInitializationVector() |
|
| 68 | )); |
|
| 69 | } |
|
| 70 | ||
| 71 | private function setPublicKey($cert) |
|
| 72 | { |
|