#include <string.h>
#include <ctype.h>
#include "blockcipher_descriptor.h"
-#include "bcal/bcal-basic.h"
-#include "bcal/bcal-cmac.h"
+#include "bcal-basic.h"
+#include "bcal-cmac.h"
#include "cmacvs.h"
#include "string-extras.h"
#include "cli.h"
if(*str2=='='){
do{
str2++;
- }while(*str2 && !isdigit(*str2));
+ }while(*str2 && !isdigit((uint8_t)(*str2)));
val=(uint32_t)strtoul(str2, NULL, 10);
return val;
}
cli_putstr("\r\n");
#endif
while((c=cli_getc_cecho())!='M' && c!='m'){
- if(!isspace(c)){
+ if(!isspace((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (1) [0x");
cli_hexdump(&c, 1);
cli_putstr("]!\r\n");
return;
}
while((c=cli_getc_cecho())!='='){
- if(!isspace(c)){
+ if(!isspace((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (4)!\r\n");
bcal_cmac_free(&(cmacvs_ctx.ctx));
return;
cli_putstr("\r\n");
#endif
while((c=cli_getc_cecho())!='M' && c!='m'){
- if(!isspace(c)){
+ if(!isspace((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (1) [0x");
cli_hexdump(&c, 1);
cli_putstr("]!\r\n");
return;
}
while((c=cli_getc_cecho())!='='){
- if(!isspace(c)){
+ if(!isspace((uint8_t)c)){
cli_putstr("\r\nERROR: wrong input (4)!\r\n");
bcal_cmac_free(&(cmacvs_ctx.ctx));
return;