示例#1
0
文件: ext_mcrypt.cpp 项目: bd808/hhvm
Variant HHVM_FUNCTION(mcrypt_decrypt, const String& cipher, const String& key,
                                      const String& data, const String& mode,
                                      const Variant& viv /* = null_string */) {
  String iv = viv.toString();
  return php_mcrypt_do_crypt(cipher, key, data, mode, iv, true,
                             "mcrypt_decrypt");
}
示例#2
0
文件: ext_mcrypt.cpp 项目: bd808/hhvm
Variant HHVM_FUNCTION(mcrypt_ofb, const String& cipher, const String& key,
                                  const String& data, const Variant& mode,
                                  const Variant& viv /* = null_string */) {
  raise_deprecated("Function mcrypt_ofb() is deprecated");
  String iv = viv.toString();
  return php_mcrypt_do_crypt(cipher, key, data, "ofb", iv, mode.toInt32(),
                             "mcrypt_ofb");
}
示例#3
0
Variant f_mcrypt_ofb(CStrRef cipher, CStrRef key, CStrRef data, int mode,
                     CStrRef iv /* = null_string */) {
  return php_mcrypt_do_crypt(cipher, key, data, "ofb", iv, mode);
}
示例#4
0
Variant f_mcrypt_decrypt(CStrRef cipher, CStrRef key, CStrRef data,
                         CStrRef mode, CStrRef iv /* = null_string */) {
  return php_mcrypt_do_crypt(cipher, key, data, mode, iv, true);
}
示例#5
0
Variant f_mcrypt_ofb(const String& cipher, const String& key, const String& data, int mode,
                     const String& iv /* = null_string */) {
    return php_mcrypt_do_crypt(cipher, key, data, "ofb", iv, mode);
}
示例#6
0
Variant f_mcrypt_decrypt(const String& cipher, const String& key, const String& data,
                         const String& mode, const String& iv /* = null_string */) {
    return php_mcrypt_do_crypt(cipher, key, data, mode, iv, true);
}