- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/encryption.c
r3553 r4537 469 469 pj_crc32_context ctx; 470 470 pj_uint32_t crc0, crc1; 471 unsignedlen;471 pj_size_t len; 472 472 473 473 len = pj_ansi_strlen(crc32_test_data[i].input); … … 592 592 out_len = sizeof(output); 593 593 rc = pj_base64_encode((pj_uint8_t*)base64_test_vec[i].base256, 594 strlen(base64_test_vec[i].base256),594 (int)strlen(base64_test_vec[i].base256), 595 595 output, &out_len); 596 596 if (rc != PJ_SUCCESS) … … 713 713 714 714 input_len = 2048; 715 total_len = input_len * LOOP;715 total_len = (unsigned)input_len * LOOP; 716 716 pool = pj_pool_create(mem, "enc", input_len+256, 0, NULL); 717 717 if (!pool) … … 727 727 for (i=0; i<PJ_ARRAY_SIZE(algorithms); ++i) { 728 728 algorithms[i].init_context(&context); 729 algorithms[i].update(&context, input, input_len);729 algorithms[i].update(&context, input, (unsigned)input_len); 730 730 algorithms[i].final(&context, digest); 731 731 } … … 739 739 algorithms[i].init_context(&context); 740 740 for (j=0; j<LOOP; ++j) { 741 algorithms[i].update(&context, input, input_len);741 algorithms[i].update(&context, input, (unsigned)input_len); 742 742 } 743 743 algorithms[i].final(&context, digest);
Note: See TracChangeset
for help on using the changeset viewer.