Lines Matching refs:algo
100 * @param string $algo
102 public static function setEncryptionAlgorithm($algo) argument
104 self::$defaultEncryptionAlgorithm = $algo;
111 * @param string $algo
113 public static function setEncryptionScheme($algo) argument
115 self::$defaultEncryptionScheme = $algo;
133 * @param string $algo
135 public static function setPRF($algo) argument
137 self::$defaultPRF = $algo;
145 * @param string $algo
147 private static function getPBES1EncryptionObject($algo) argument
149 $algo = preg_match('#^pbeWith(?:MD2|MD5|SHA1|SHA)And(.*?)-CBC$#', $algo, $matches) ?
151 substr($algo, 13); // strlen('pbeWithSHAAnd') == 13
153 switch ($algo) {
184 throw new UnsupportedAlgorithmException("$algo is not a supported algorithm");
195 * @param string $algo
197 private static function getPBES1Hash($algo) argument
199 if (preg_match('#^pbeWith(MD2|MD5|SHA1|SHA)And.*?-CBC$#', $algo, $matches)) {
211 * @param string $algo
213 private static function getPBES1KDF($algo) argument
215 switch ($algo) {
233 * @param string $algo
235 private static function getPBES2EncryptionObject($algo) argument
237 switch ($algo) {
255 $cipher->setKeyLength(substr($algo, 3, 3));
258 throw new UnsupportedAlgorithmException("$algo is not supported");