libidav/crypto.c

changeset 692
56b66fe2b4f5
parent 691
48ec0ab17011
child 728
35a421f441d5
equal deleted inserted replaced
691:48ec0ab17011 692:56b66fe2b4f5
1237 ULONG outlen = 0; 1237 ULONG outlen = 0;
1238 char *out = malloc(outalloc); 1238 char *out = malloc(outalloc);
1239 1239
1240 // encrypt 1240 // encrypt
1241 int flags = 0; 1241 int flags = 0;
1242 if(inlen % 16 != 0 || enc->end) { 1242 if(inlen % 16 != 0) {
1243 enc->end = 1; 1243 enc->end = 1;
1244 } 1244 }
1245 if(enc->end) { 1245 if(enc->end) {
1246 flags = BCRYPT_BLOCK_PADDING; 1246 flags = BCRYPT_BLOCK_PADDING;
1247 } 1247 }

mercurial