#Since gvpe does not support more than 1 cipher and more then 1 digset
#here we do some not so clever checks to ensure that only one is selected
local myEnc
localencCnt=0
use cipher-aes-256 &&myEnc="aes-256"&&encCnt=$((encCnt+1))
use cipher-aes-192 &&myEnc="aes-192"&&encCnt=$((encCnt+1))
use cipher-aes-128 &&myEnc="aes-128"&&encCnt=$((encCnt+1))
use cipher-blowfish &&myEnc="bf"&&encCnt=$((encCnt+1))
if[[$encCnt<1]];then
eerror "An encryption alogotithm have to be selected.\nAdd one of cipher-aes-256, cipher-aes-192, cipher-aes-128 or cipher-blowfish to your USE variable."
die;
elif[[$encCnt>1 ]];then
eerror "More then one ecryption alogorithm selected.\nRemove all but one of cipher-aes-256, cipher-aes-192, cipher-aes-128 or cipher-blowfish flags from your USE variable."
die;
fi
encCnt=0
local myDigset
use digset-sha512 &&myDigset="sha512"&&encCnt=$((encCnt+1))
use digset-sha256 &&myDigset="sha256"&&encCnt=$((encCnt+1))
use digset-sha1 &&myDigset="sha1"&&encCnt=$((encCnt+1))
use digset-ripemd160 &&myDigset="ripemd160"&&encCnt=$((encCnt+1))
use digset-md5 &&myDigset="md5"&&encCnt=$((encCnt+1))
use digset-md4-insecure &&myDigset="md4"&&encCnt=$((encCnt+1))
if[[$encCnt<1]];then
eerror "A digset algorithm have to be selected.\nAdd one of digset-sha512, digset-sha256, digset-sha1, digset-ripemd160, digset-md5 or digset-md4-insecure to your USE variable."
die;
elif[[$encCnt>1 ]];then
eerror "More then one digset alogorithm selected.\nRemove all but one of digset-sha512, digset-sha256, digset-sha1, digset-ripemd160, digset-md5 or digset-md4-insecure flags from your USE variable."
die;
fi
#the hmac and rand flags are hardcoded this is not so good because
#it leaves the system more predictable. But I don't think that adding