X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/libsecurity_cryptkit/ckutils/blobtest/blobtest.c diff --git a/libsecurity_cryptkit/ckutils/blobtest/blobtest.c b/libsecurity_cryptkit/ckutils/blobtest/blobtest.c deleted file mode 100644 index c76c0a47..00000000 --- a/libsecurity_cryptkit/ckutils/blobtest/blobtest.c +++ /dev/null @@ -1,344 +0,0 @@ -/* Copyright 1998 Apple Computer, Inc. - * - * blobtest.c - test key blob functions - * - * Revision History - * ---------------- - * 23 Mar 1998 Doug Mitchell - * Created. - */ - -#include "Crypt.h" -#include "falloc.h" -#include -#include -#include -#include "ckutilsPlatform.h" - -#define MIN_PASSWD_LENGTH 4 -#define MAX_PASSWD_LENGTH 20 -#define DEPTH_DEFAULT FEE_DEPTH_DEFAULT - -#undef BOOL -#undef YES -#undef NO -#define BOOL int -#define YES 1 -#define NO 0 - -static unsigned char *passwdPool; - -static unsigned doBlobTest(unsigned minPasswdLen, - unsigned maxPasswdLen, - BOOL verbose, - unsigned depth); -static void usage(char **argv); - -int main(int argc, char **argv) -{ - BOOL seedSpec = NO; // YES ==> user specified - unsigned loopNum; - int arg; - char *argp; - - /* - * User-spec'd variables - */ - unsigned minPasswordLen = MIN_PASSWD_LENGTH; - unsigned maxPasswordLen = MAX_PASSWD_LENGTH; - int seed = 0; - unsigned loops = 1; - BOOL quiet = NO; - BOOL verbose = NO; - unsigned depth = DEPTH_DEFAULT; - - #if macintosh - argc = ccommand(&argv); - #endif - for(arg=1; arg