@@ 70-80 (lines=11) @@ | ||
67 | ); |
|
68 | } |
|
69 | ||
70 | protected function decrypt($data) |
|
71 | { |
|
72 | if (!$data instanceof Value) return false; |
|
73 | ||
74 | return unserialize($this->decipher( |
|
75 | $data->getCipherText(), |
|
76 | $data->getMethod(), |
|
77 | $this->decryptEnvelopeKey($data->getEnvelopeKey()), |
|
78 | $data->getInitializationVector() |
|
79 | )); |
|
80 | } |
|
81 | ||
82 | private function setPublicKey($cert) |
|
83 | { |
@@ 49-59 (lines=11) @@ | ||
46 | ); |
|
47 | } |
|
48 | ||
49 | protected function decrypt($data) |
|
50 | { |
|
51 | if (!$data instanceof Value) return false; |
|
52 | ||
53 | return unserialize($this->decipher( |
|
54 | $data->getCipherText(), |
|
55 | $data->getMethod(), |
|
56 | $this->passphrase, |
|
57 | $data->getInitializationVector() |
|
58 | )); |
|
59 | } |
|
60 | ||
61 | private function authenticate($key, $cipherText) |
|
62 | { |