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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user