{
byte buffer[8]={0,0,0,0,0,0,0,0};
byte buf2[8];
- int i;
+ unsigned int i;
for (i=0;i+8<=data_len;i+=8)
mac_block(ctx,buffer,data+i);
if (i<data_len)
{
byte buffer[8];
byte buf2[8];
- int i;
+ unsigned int i;
memcpy (buffer,iv,8);
for (i=0;i+8<=data_len;i+=8)
mac_block(ctx,buffer,data+i);
{
const unsigned char *in_ptr=in;
unsigned char *out_ptr=out;
- int i=0;
- int j=0;
+ unsigned int i=0;
+ unsigned int j=0;
/* process partial block if any */
if (ctx->num)
{
{
const unsigned char *in_ptr=in;
unsigned char *out_ptr=out;
- int i=0;
- int j;
+ unsigned int i=0;
+ unsigned int j;
/* process partial block if any */
if (ctx->num)
{
#include <openssl/x509.h>
#include <openssl/engine.h>
#include <openssl/ec.h>
-#include <unistd.h>
#include "gost89.h"
#include "gosthash.h"
/* Control commands */
if (ctx->left)
{
/*There are some bytes from previous step*/
- int add_bytes = 32-ctx->left;
+ unsigned int add_bytes = 32-ctx->left;
if (add_bytes>length)
{
add_bytes = length;