Lines Matching refs:cryptParams

63     private $cryptParams = array();  variable in RobRichards\\XMLSecLibs\\XMLSecurityKey
114 $this->cryptParams['library'] = 'openssl';
115 $this->cryptParams['cipher'] = 'des-ede3-cbc';
116 $this->cryptParams['type'] = 'symmetric';
117 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmlenc#tripledes-cbc';
126 $this->cryptParams['keysize'] = 16;
127 $this->cryptParams['blocksize'] = 16;
130 $this->cryptParams['library'] = 'openssl';
131 $this->cryptParams['cipher'] = 'aes-192-cbc';
132 $this->cryptParams['type'] = 'symmetric';
133 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmlenc#aes192-cbc';
142 $this->cryptParams['keysize'] = 32;
143 $this->cryptParams['blocksize'] = 16;
146 $this->cryptParams['library'] = 'openssl';
147 $this->cryptParams['padding'] = OPENSSL_PKCS1_PADDING;
148 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmlenc#rsa-1_5';
160 $this->cryptParams['hash'] = null;
163 $this->cryptParams['type'] = $params['type'];
169 $this->cryptParams['library'] = 'openssl';
170 $this->cryptParams['method'] = 'http://www.w3.org/2000/09/xmldsig#rsa-sha1';
182 $this->cryptParams['padding'] = OPENSSL_PKCS1_PADDING;
183 $this->cryptParams['digest'] = 'SHA256';
186 $this->cryptParams['type'] = $params['type'];
192 $this->cryptParams['library'] = 'openssl';
193 $this->cryptParams['method'] = 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha384';
206 $this->cryptParams['padding'] = OPENSSL_PKCS1_PADDING;
207 $this->cryptParams['digest'] = 'SHA512';
210 $this->cryptParams['type'] = $params['type'];
216 $this->cryptParams['library'] = $type;
217 $this->cryptParams['method'] = 'http://www.w3.org/2000/09/xmldsig#hmac-sha1';
235 if (! isset($this->cryptParams['keysize'])) {
238 return $this->cryptParams['keysize'];
249 if (!isset($this->cryptParams['keysize'])) {
252 $keysize = $this->cryptParams['keysize'];
331 if ($this->cryptParams['library'] == 'openssl') {
332 switch ($this->cryptParams['type']) {
349 if (strlen($this->key) < $this->cryptParams['keysize']) {
399 … $this->iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($this->cryptParams['cipher']));
400 $data = $this->padISO10126($data, $this->cryptParams['blocksize']);
401 …$encrypted = openssl_encrypt($data, $this->cryptParams['cipher'], $this->key, OPENSSL_RAW_DATA | O…
416 $iv_length = openssl_cipher_iv_length($this->cryptParams['cipher']);
419 …$decrypted = openssl_decrypt($data, $this->cryptParams['cipher'], $this->key, OPENSSL_RAW_DATA | O…
435 … if (! openssl_public_encrypt($data, $encrypted, $this->key, $this->cryptParams['padding'])) {
450 … if (! openssl_public_decrypt($data, $decrypted, $this->key, $this->cryptParams['padding'])) {
465 … if (! openssl_private_encrypt($data, $encrypted, $this->key, $this->cryptParams['padding'])) {
480 … if (! openssl_private_decrypt($data, $decrypted, $this->key, $this->cryptParams['padding'])) {
496 if (! empty($this->cryptParams['digest'])) {
497 $algo = $this->cryptParams['digest'];
524 if (! empty($this->cryptParams['digest'])) {
525 $algo = $this->cryptParams['digest'];
538 if ($this->cryptParams['library'] === 'openssl') {
539 switch ($this->cryptParams['type']) {
558 if ($this->cryptParams['library'] === 'openssl') {
559 switch ($this->cryptParams['type']) {
578 switch ($this->cryptParams['library']) {
604 switch ($this->cryptParams['library']) {
628 return $this->cryptParams['method'];