Commit 0366bcb3 authored by ElenaSubbotina's avatar ElenaSubbotina

fix cfb

parent ab3add95
......@@ -38,11 +38,11 @@ fi
if [[ "$platform" == *"linux"* ]]
then
if [[ -f "./icu.zip" ]]
if [ -f "./icu.zip" ]
then
echo "icu already downloaded"
else
if [[ "$arch" == *"_64"* ]]
if [ "$arch" == *"_64"* ]
then
wget -O icu.zip http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-RHEL6-x64.tgz
else
......@@ -59,7 +59,7 @@ cp "./usr/local/lib/libicudata.so.55.1" "build/libicudata.so.55"
cp "./usr/local/lib/libicuuc.so.55.1" "build/libicuuc.so.55"
fi
if [[ "$platform" == *"mac"* ]]
if [ "$platform" == *"mac"* ]
then
if [ -d "./icu" ]
then
......
......@@ -359,12 +359,12 @@ bool EncryptCipher(_buf & key, _buf & iv, _buf & data_inp, _buf & data_out, CRYP
case CRYPT_METHOD::AES_CBC:
modeEncryption = new CipherModeFinalTemplate_ExternalCipher<CBC_Encryption>(aesEncryption, iv.ptr );
break;
case CRYPT_METHOD::AES_CFB:
#if defined(_IOS)
return false;
#else
modeEncryption = new CFB_Mode_ExternalCipher::Encryption(aesEncryption, iv.ptr );
#endif
// case CRYPT_METHOD::AES_CFB:
//#if defined(_IOS)
// return false;
//#else
// modeEncryption = new CFB_Mode_ExternalCipher::Encryption(aesEncryption, iv.ptr );
//#endif
break;
}
......@@ -416,12 +416,12 @@ bool DecryptCipher(_buf & key, _buf & iv, _buf & data_inp, _buf & data_out, CRY
case CRYPT_METHOD::AES_CBC:
modeDecryption = new CipherModeFinalTemplate_ExternalCipher<CBC_Decryption>(aesDecryption, iv.ptr );
break;
case CRYPT_METHOD::AES_CFB:
#if defined(_IOS)
return false;
#else
modeDecryption = new CFB_Mode_ExternalCipher::Decryption(aesDecryption, iv.ptr );
#endif
// case CRYPT_METHOD::AES_CFB:
//#if defined(_IOS)
// return false;
//#else
// modeDecryption = new CFB_Mode_ExternalCipher::Decryption(aesDecryption, iv.ptr );
//#endif
}
if (!modeDecryption) return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment