Move assertion and add another restriction, used as hint to beam that its ok

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17211 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-24 14:26:19 +00:00
parent cfb3a670d7
commit d0bfcde47f

View File

@@ -513,9 +513,10 @@ DES_cfb64_encrypt(const void *in, void *out,
load(*iv, uiv);
assert(*num >= 0 && *num < DES_CBLOCK_LEN);
if (forward_encrypt) {
int i = *num;
assert(i >= 0);
while (length > 0) {
if (i == 0)
@@ -537,7 +538,6 @@ DES_cfb64_encrypt(const void *in, void *out,
} else {
int i = *num;
unsigned char c;
assert(i >= 0);
while (length > 0) {
if (i == 0) {