Lines Matching refs:cryptParams

57     private $cryptParams = array();  variable in XMLSecurityKey
80 $this->cryptParams['library'] = 'mcrypt';
81 $this->cryptParams['cipher'] = MCRYPT_TRIPLEDES;
82 $this->cryptParams['mode'] = MCRYPT_MODE_CBC;
83 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc';
91 $this->cryptParams['keysize'] = 16;
94 $this->cryptParams['library'] = 'mcrypt';
95 $this->cryptParams['cipher'] = MCRYPT_RIJNDAEL_128;
96 $this->cryptParams['mode'] = MCRYPT_MODE_CBC;
97 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmlenc#aes192-cbc';
105 $this->cryptParams['keysize'] = 32;
108 $this->cryptParams['library'] = 'openssl';
109 $this->cryptParams['padding'] = OPENSSL_PKCS1_PADDING;
110 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmlenc#rsa-1_5';
122 $this->cryptParams['hash'] = null;
125 $this->cryptParams['type'] = $params['type'];
131 $this->cryptParams['library'] = 'openssl';
132 $this->cryptParams['method'] = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1';
144 $this->cryptParams['padding'] = OPENSSL_PKCS1_PADDING;
145 $this->cryptParams['digest'] = 'SHA256';
148 $this->cryptParams['type'] = $params['type'];
154 $this->cryptParams['library'] = 'openssl';
155 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384';
168 $this->cryptParams['padding'] = OPENSSL_PKCS1_PADDING;
169 $this->cryptParams['digest'] = 'SHA512';
172 $this->cryptParams['type'] = $params['type'];
178 $this->cryptParams['library'] = $type;
179 $this->cryptParams['method'] = 'http://www.w3.org/2000/09/xmldsig#hmac-sha1';
196 if (! isset($this->cryptParams['keysize'])) {
199 return $this->cryptParams['keysize'];
203 if (!isset($this->cryptParams['keysize'])) {
206 $keysize = $this->cryptParams['keysize'];
275 if ($this->cryptParams['library'] == 'openssl') {
276 if ($this->cryptParams['type'] == 'public') {
285 …} else if (isset($this->cryptParams['cipher']) && $this->cryptParams['cipher'] == MCRYPT_RIJNDAEL_…
303 $td = mcrypt_module_open($this->cryptParams['cipher'], '', $this->cryptParams['mode'], '');
306 if ($this->cryptParams['mode'] == MCRYPT_MODE_CBC) {
319 $td = mcrypt_module_open($this->cryptParams['cipher'], '', $this->cryptParams['mode'], '');
329 if ($this->cryptParams['mode'] == MCRYPT_MODE_CBC) {
338 if ($this->cryptParams['type'] == 'public') {
339 … if (! openssl_public_encrypt($data, $encrypted_data, $this->key, $this->cryptParams['padding'])) {
343 …if (! openssl_private_encrypt($data, $encrypted_data, $this->key, $this->cryptParams['padding'])) {
351 if ($this->cryptParams['type'] == 'public') {
352 … if (! openssl_public_decrypt($data, $decrypted, $this->key, $this->cryptParams['padding'])) {
356 … if (! openssl_private_decrypt($data, $decrypted, $this->key, $this->cryptParams['padding'])) {
365 if (! empty($this->cryptParams['digest'])) {
366 $algo = $this->cryptParams['digest'];
376 if (! empty($this->cryptParams['digest'])) {
377 $algo = $this->cryptParams['digest'];
383 switch ($this->cryptParams['library']) {
392 switch ($this->cryptParams['library']) {
401 switch ($this->cryptParams['library']) {
410 switch ($this->cryptParams['library']) {
420 return $this->cryptParams['method'];