You are here

public function XMLSecurityKey::decryptData in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

Decrypts the given data (string) using the regarding php-extension, depending on the library assigned to algorithm in the contructor.

Parameters

string $data:

Return value

mixed|string

File

includes/XMLSecurityKey.php, line 557

Class

XMLSecurityKey

Code

public function decryptData($data) {
  switch ($this->cryptParams['library']) {
    case 'mcrypt':
      return $this
        ->decryptMcrypt($data);
    case 'openssl':
      return $this
        ->decryptOpenSSL($data);
  }
}