modification to suppress compiler warning when LTC_FAST is not defined
This commit is contained in:
parent
fcd5faf947
commit
6816ac3f3f
@ -27,7 +27,7 @@
|
||||
*/
|
||||
int omac_process(omac_state *omac, const unsigned char *in, unsigned long inlen)
|
||||
{
|
||||
unsigned long n, x, blklen;
|
||||
unsigned long n, x;
|
||||
int err;
|
||||
|
||||
LTC_ARGCHK(omac != NULL);
|
||||
@ -42,6 +42,9 @@ int omac_process(omac_state *omac, const unsigned char *in, unsigned long inlen)
|
||||
}
|
||||
|
||||
#ifdef LTC_FAST
|
||||
{
|
||||
unsigned long blklen;
|
||||
|
||||
blklen = cipher_descriptor[omac->cipher_idx].block_length;
|
||||
if (omac->buflen == 0 && inlen > blklen) {
|
||||
unsigned long y;
|
||||
@ -56,6 +59,7 @@ int omac_process(omac_state *omac, const unsigned char *in, unsigned long inlen)
|
||||
}
|
||||
inlen -= x;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
while (inlen != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user