Lines Matching +full:0 +full:xbe
42 static int verbose = 0;
101 "\x4c\x01\xcd\x46\xd6\x32\xd0\x1e\x6d\xbe\x23\x0a\x01\xed\x64\x2a"
117 "\xe9\xb2\x3d\x52\x27\x37\x47\xdd\x5c\x35\xcb\x55\xbe\x61\x9d\x8e"
124 "\x3f\x98\xd2\x03\xe6\xbe\x49\xa6\xad\xf4\xfa\x57\x4b\x6e\x64\xee",
125 "\x97\xa4\xe7\x86\xbe\x20\xd8\x1a\x38\x2d\x5e\xbc\x96\xd5\x90\x9c"
151 "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5\x1b\x10\xe6\xa6\x87\x21\xbe\x61",
159 "\x9c\xca\xd6\xd4\x68\x77\x0c\xd5\x1b\x10\xe6\xa6\x87\x21\xbe\x61"
160 "\x1a\x8b\x4d\x28\x26\x01\xdb\x3b\x36\xbe\x92\x46\x91\x5e\xc8\x2a",
183 0,
186 "\xac\x8e\x65\x7f\x83\xdf\x82\xbe\xea\x5d\x43\xbd\xaf\x78\x00\xcc"
190 0,
203 int i, val = 0; in string_to_key_test()
206 for (i = 0; i < sizeof(keys)/sizeof(keys[0]); i++) { in string_to_key_test()
233 if (memcmp(keyout, keys[i].pbkdf2, keys[i].keylen) != 0) { in string_to_key_test()
269 if (memcmp(key.keyvalue.data, keys[i].key, keys[i].keylen) != 0) { in string_to_key_test()
310 memcmp(decrypt.data, clear->data, decrypt.length) != 0) { in krb_enc()
317 return 0; in krb_enc()
336 iov[0].flags = KRB5_CRYPTO_TYPE_HEADER; in krb_enc_iov2()
337 krb5_crypto_length(context, crypto, iov[0].flags, &iov[0].data.length); in krb_enc_iov2()
338 iov[0].data.data = emalloc(iov[0].data.length); in krb_enc_iov2()
355 iov, sizeof(iov)/sizeof(iov[0]), NULL); in krb_enc_iov2()
360 for (i = 0, len = 0; i < sizeof(iov)/sizeof(iov[0]); i++) in krb_enc_iov2()
370 for (i = 0; i < sizeof(iov)/sizeof(iov[0]); i++) { in krb_enc_iov2()
401 iov[2].data.length = 0; in krb_enc_iov2()
404 iov, sizeof(iov)/sizeof(iov[0]), NULL); in krb_enc_iov2()
405 free(iov[0].data.data); in krb_enc_iov2()
415 if (memcmp(iov[1].data.data, p, iov[1].data.length) != 0) in krb_enc_iov2()
420 return 0; in krb_enc_iov2()
439 iov[0].flags = KRB5_CRYPTO_TYPE_HEADER; in krb_enc_iov()
440 krb5_crypto_length(context, crypto, iov[0].flags, &iov[0].data.length); in krb_enc_iov()
441 iov[0].data.data = emalloc(iov[0].data.length); in krb_enc_iov()
442 memcpy(iov[0].data.data, p, iov[0].data.length); in krb_enc_iov()
443 p += iov[0].data.length; in krb_enc_iov()
444 len -= iov[0].data.length; in krb_enc_iov()
458 iov, sizeof(iov)/sizeof(iov[0]), NULL); in krb_enc_iov()
466 if (memcmp(iov[2].data.data, p, iov[2].data.length) != 0) in krb_enc_iov()
469 free(iov[0].data.data); in krb_enc_iov()
474 return 0; in krb_enc_iov()
491 iov[0].flags = KRB5_CRYPTO_TYPE_CHECKSUM; in krb_checksum_iov()
492 krb5_crypto_length(context, crypto, iov[0].flags, &iov[0].data.length); in krb_checksum_iov()
493 iov[0].data.data = emalloc(iov[0].data.length); in krb_checksum_iov()
500 krb5_crypto_length(context, crypto, iov[0].flags, &iov[2].data.length); in krb_checksum_iov()
504 iov, sizeof(iov)/sizeof(iov[0]), NULL); in krb_checksum_iov()
508 ret = krb5_verify_checksum_iov(context, crypto, usage, iov, sizeof(iov)/sizeof(iov[0]), NULL); in krb_checksum_iov()
512 free(iov[0].data.data); in krb_checksum_iov()
515 return 0; in krb_checksum_iov()
533 e.kvno = 0; in krb_enc_mit()
542 memcmp(decrypt.data, clear->data, decrypt.length) != 0) { in krb_enc_mit()
559 return 0; in krb_enc_mit()
580 "\xcf\x79\x8f\x0d\x76\xf3\xe0\xbe\x8e\x66\x94\x70\xfa\xcc\x9e\x91"
582 "\x6f\x9f\xf4\xd5\xbe\x5d\x59\x97\x44\xd8\x47\xcd",
598 for (i = 0; i < sizeof(krbencs)/sizeof(krbencs[0]); i++) { in krb_enc_test()
637 return 0; in krb_enc_test()
656 ret = krb5_crypto_init(context, &key, 0, &crypto); in iov_test()
674 memset(iov, 0, sizeof(iov)); in iov_test()
676 iov[0].flags = KRB5_CRYPTO_TYPE_HEADER; in iov_test()
686 sizeof(iov)/sizeof(iov[0])); in iov_test()
690 for (len = 0, i = 0; i < sizeof(iov)/sizeof(iov[0]); i++) { in iov_test()
702 for (p = base, i = 0; i < sizeof(iov)/sizeof(iov[0]); i++) { in iov_test()
716 sizeof(iov)/sizeof(iov[0]), NULL); in iov_test()
725 iov, sizeof(iov)/sizeof(iov[0]), NULL); in iov_test()
733 if (krb5_data_cmp(&iov[1].data, &in) != 0) in iov_test()
748 iov, sizeof(iov)/sizeof(iov[0])); in iov_test()
752 for (len = 0, i = 0; i < sizeof(iov)/sizeof(iov[0]); i++) { in iov_test()
764 for (p = base, i = 0; i < sizeof(iov)/sizeof(iov[0]); i++) { in iov_test()
783 iov, sizeof(iov)/sizeof(iov[0]), NULL); in iov_test()
792 iov, sizeof(iov)/sizeof(iov[0]), NULL); in iov_test()
800 if (krb5_data_cmp(&iov[1].data, &in) != 0) in iov_test()
803 if (krb5_data_cmp(&iov[3].data, &in2) != 0) in iov_test()
816 return 0; in iov_test()
845 24) != 0) in random_to_key()
850 return 0; in random_to_key()
858 int val = 0; in main()
870 if (verbose && val == 0) in main()