Esempio n. 1
0
int main(int argc, char *argv[])
{
//    test_16(argv[1]);
    test_32(argv[1]);

    return 0;
}
Esempio n. 2
0
int main(int argc, char ** argv){
	const int n = 2000;
	char * test_d = "another text\n but this time its test word to encrypt and decrypt ok";
	char * fout = 0, * fout2 = 0, * fout3 = 0;
	clc_bytes_16 b;
	clc_bytes_20 b20;
	
	if(argc > 1){
		test_d = argv[1];
	}
	if( argc > 4 ){
		fout = argv[2];
		fout2 = argv[3];
		fout3 = argv[4];
	}
	
	test();
	test_16(n);
	test_24(n);
	test_32(n);
	
	clc_md5((const unsigned char*)test_d,strlen(test_d),&b);
	printf("\nmd5: ");
	clc_print_b(&b);
	
	clc_sha1((const unsigned char*)test_d,strlen(test_d),&b20);
	printf("\nsha1 (%lu): ",strlen(test_d));
	clc_print_b_20(&b20);
	
	clc_encrypt_file("test_pass",fout,fout2);
	clc_decrypt_file("test_pass",fout2,fout3);
	return 0;
}
Esempio n. 3
0
/**
 *  Test sk_memset16 and sk_memset32.
 *  For performance considerations, implementations may take different paths
 *  depending on the alignment of the dst, and/or the size of the count.
 */
static void TestMemset(skiatest::Reporter* reporter) {
    test_16(reporter);
    test_32(reporter);

    test_chunkalloc(reporter);
};
Esempio n. 4
0
/**
 *  Test sk_memset16 and sk_memset32.
 *  For performance considerations, implementations may take different paths
 *  depending on the alignment of the dst, and/or the size of the count.
 */
DEF_TEST(Memset, reporter) {
    test_16(reporter);
    test_32(reporter);

    test_chunkalloc(reporter);
}