ISAL-Crypto

 view release on metacpan or  search on metacpan

isa-l_crypto/md5_mb/md5_mb_vs_ossl_perf.c  view on Meta::CPAN

			if (ctxpool[i].job.result_digest[j] != ((uint32_t *) digest_ssl[i])[j]) {
				fail++;
				printf("Test%d, digest%d fail %08X <=> %08X\n",
				       i, j, ctxpool[i].job.result_digest[j],
				       ((uint32_t *) digest_ssl[i])[j]);
			}
		}
	}

	printf("Multi-buffer md5 test complete %d buffers of %d B with "
	       "%d iterations\n", TEST_BUFS, TEST_LEN, TEST_LOOPS);

	if (fail)
		printf("Test failed function check %d\n", fail);
	else
		printf(" multibinary_md5_ossl_perf: Pass\n");

	return fail;
}

isa-l_crypto/sha1_mb/sha1_mb_vs_ossl_perf.c  view on Meta::CPAN

			    byteswap32(((uint32_t *) digest_ssl[i])[j])) {
				fail++;
				printf("Test%d, digest%d fail %08X <=> %08X\n",
				       i, j, ctxpool[i].job.result_digest[j],
				       byteswap32(((uint32_t *) digest_ssl[i])[j]));
			}
		}
	}

	printf("Multi-buffer sha1 test complete %d buffers of %d B with "
	       "%d iterations\n", TEST_BUFS, TEST_LEN, TEST_LOOPS);

	if (fail)
		printf("Test failed function check %d\n", fail);
	else
		printf(" multibinary_sha1_ossl_perf: Pass\n");

	return fail;
}

isa-l_crypto/sha1_mb/sha1_mb_vs_ossl_shortage_perf.c  view on Meta::CPAN

					fail++;
					printf("Test%d, digest%d fail %08X <=> %08X\n",
					       i, j, ctxpool[i].job.result_digest[j],
					       byteswap32(((uint32_t *) digest_ssl[i])[j]));
				}
			}
		}
	}

	printf("Multi-buffer sha1 test complete %d buffers of %d B with "
	       "%d iterations\n", TEST_BUFS, TEST_LEN, TEST_LOOPS);

	if (fail)
		printf("Test failed function check %d\n", fail);
	else
		printf(" multibinary_sha1_ossl_perf: Pass\n");

	return fail;
}

isa-l_crypto/sha256_mb/sha256_mb_vs_ossl_perf.c  view on Meta::CPAN

			    byteswap32(((uint32_t *) digest_ssl[i])[j])) {
				fail++;
				printf("Test%d, digest%d fail %08X <=> %08X\n",
				       i, j, ctxpool[i].job.result_digest[j],
				       byteswap32(((uint32_t *) digest_ssl[i])[j]));
			}
		}
	}

	printf("Multi-buffer sha256 test complete %d buffers of %d B with "
	       "%d iterations\n", TEST_BUFS, TEST_LEN, TEST_LOOPS);

	if (fail)
		printf("Test failed function check %d\n", fail);
	else
		printf(" multibinary_sha256_ossl_perf: Pass\n");

	return fail;
}

isa-l_crypto/sha256_mb/sha256_mb_vs_ossl_shortage_perf.c  view on Meta::CPAN

					fail++;
					printf("Test%d, digest%d fail %08X <=> %08X\n",
					       i, j, ctxpool[i].job.result_digest[j],
					       byteswap32(((uint32_t *) digest_ssl[i])[j]));
				}
			}
		}
	}

	printf("Multi-buffer sha256 test complete %d buffers of %d B with "
	       "%d iterations\n", TEST_BUFS, TEST_LEN, TEST_LOOPS);

	if (fail)
		printf("Test failed function check %d\n", fail);
	else
		printf(" multibinary_sha256_ossl_perf: Pass\n");

	return fail;
}

isa-l_crypto/sha512_mb/sha512_mb_vs_ossl_perf.c  view on Meta::CPAN

			    byteswap64(((uint64_t *) digest_ssl[i])[j])) {
				fail++;
				printf("Test%d, digest%d fail %016lX <=> %016lX\n",
				       i, j, ctxpool[i].job.result_digest[j],
				       byteswap64(((uint64_t *) digest_ssl[i])[j]));
			}
		}
	}

	printf("Multi-buffer sha512 test complete %d buffers of %d B with "
	       "%d iterations\n", TEST_BUFS, TEST_LEN, TEST_LOOPS);

	if (fail)
		printf("Test failed function check %d\n", fail);
	else
		printf("multibinary_sha512_ossl_perf: Pass\n");

	return fail;
}



( run in 2.866 seconds using v1.01-cache-2.11-cpan-71847e10f99 )