public function setCryptoAlgorithm($algo)
	{
		if (!array_key_exists($algo, $this->digestSignatureAlgoMapping))
		{
			trigger_error('The chosen crypto algorithm does not appear to be predefined', E_USER_WARNING);
		}
		else if (!array_key_exists($this->digestMethod, $this->digestSignatureAlgoMapping[$algo]))
		{
			trigger_error('The chosen crypto algorithm does not support the chosen digest method', E_USER_WARNING);
		}
		else
		{
			$this->cryptoAlgorithm = $algo;
		}
		
		return $this;
	}
public function setCryptoAlgorithm($algo)
	{
		if (!array_key_exists($algo, $this->digestSignatureAlgoMapping))
		{
			trigger_error('The chosen crypto algorithm does not appear to be predefined', E_USER_WARNING);
		}
		else if (!array_key_exists($this->digestMethod, $this->digestSignatureAlgoMapping[$algo]))
		{
			trigger_error('The chosen crypto algorithm does not support the chosen digest method', E_USER_WARNING);
		}
		else
		{
			$this->cryptoAlgorithm = $algo;
		}
		
		return $this;
	}
public function setCryptoAlgorithm ( $ algo ) { if ( ! array_key_exists ( $ algo , $ this -> digestSignatureAlgoMapping ) ) { trigger_error ( 'The chosen crypto algorithm does not appear to be predefined' , E_USER_WARNING ) ; } else if ( ! array_key_exists ( $ this -> digestMethod , $ this -> digestSignatureAlgoMapping [ $ algo ] ) ) { trigger_error ( 'The chosen crypto algorithm does not support the chosen digest method' , E_USER_WARNING ) ; } else { $ this -> cryptoAlgorithm = $ algo ; } return $ this ; }
Sets the cryptography algorithm used to generate the private key.

@param	int					$algo	Algorithm type (class const)
@return	XmlDigitalSignature
Sets the cryptography algorithm used to generate the private key .