blob: 028eecc72bfe0c7a2ca37580d62fc2e4b79766b0 [file] [log] [blame]
Andrey Andreev81e10642014-02-07 01:43:36 +02001<?php
2
3class Mock_Libraries_Encryption extends CI_Encryption {
4
5 /**
6 * __get_params()
7 *
8 * Allows public calls to the otherwise protected _get_params().
9 */
10 public function __get_params($params)
11 {
12 return $this->_get_params($params);
13 }
14
15 // --------------------------------------------------------------------
16
17 /**
18 * get_key()
19 *
20 * Allows checking for key changes.
21 */
22 public function get_key()
23 {
24 return $this->_key;
25 }
26
27 // --------------------------------------------------------------------
28
29 /**
30 * __driver_get_handle()
31 *
32 * Allows checking for _mcrypt_get_handle(), _openssl_get_handle()
33 */
34 public function __driver_get_handle($driver, $cipher, $mode)
35 {
36 return $this->{'_'.$driver.'_get_handle'}($cipher, $mode);
37 }
38
39}