cryptotest.c (167755) | cryptotest.c (175979) |
---|---|
1/*- 2 * Copyright (c) 2004 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 25 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 28 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGES. 31 * | 1/*- 2 * Copyright (c) 2004 Sam Leffler, Errno Consulting 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, 25 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 28 * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGES. 31 * |
32 * $FreeBSD: head/tools/tools/crypto/cryptotest.c 167755 2007-03-21 03:42:51Z sam $ | 32 * $FreeBSD: head/tools/tools/crypto/cryptotest.c 175979 2008-02-05 08:07:19Z matteo $ |
33 */ 34 35/* 36 * Simple tool for testing hardware/system crypto support. 37 * 38 * cryptotest [-czsbv] [-a algorithm] [count] [size ...] 39 * 40 * Run count iterations of a crypt+decrypt or mac operation on a buffer of --- 47 unchanged lines hidden (view full) --- 88#include <sys/ioctl.h> 89#include <stdio.h> 90#include <fcntl.h> 91#include <unistd.h> 92#include <sys/wait.h> 93#include <sys/mman.h> 94#include <paths.h> 95#include <stdlib.h> | 33 */ 34 35/* 36 * Simple tool for testing hardware/system crypto support. 37 * 38 * cryptotest [-czsbv] [-a algorithm] [count] [size ...] 39 * 40 * Run count iterations of a crypt+decrypt or mac operation on a buffer of --- 47 unchanged lines hidden (view full) --- 88#include <sys/ioctl.h> 89#include <stdio.h> 90#include <fcntl.h> 91#include <unistd.h> 92#include <sys/wait.h> 93#include <sys/mman.h> 94#include <paths.h> 95#include <stdlib.h> |
96#include <string.h> |
|
96 97#include <sys/sysctl.h> 98#include <sys/time.h> 99#include <crypto/cryptodev.h> 100 101#define CHUNK 64 /* how much to display */ 102#define N(a) (sizeof (a) / sizeof (a[0])) 103#define streq(a,b) (strcasecmp(a,b) == 0) --- 518 unchanged lines hidden --- | 97 98#include <sys/sysctl.h> 99#include <sys/time.h> 100#include <crypto/cryptodev.h> 101 102#define CHUNK 64 /* how much to display */ 103#define N(a) (sizeof (a) / sizeof (a[0])) 104#define streq(a,b) (strcasecmp(a,b) == 0) --- 518 unchanged lines hidden --- |