Home
last modified time | relevance | path

Searched refs:DO (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/external/dropbear/libtomcrypt/testprof/
Decc_test.c40 DO(mp_init_multi(&kA, &kB, &rA, &rB, &modulus, NULL)); in ecc_test_shamir()
55 DO(mp_read_radix(G->x, ltc_ecc_sets[z].Gx, 16)); in ecc_test_shamir()
56 DO(mp_read_radix(G->y, ltc_ecc_sets[z].Gy, 16)); in ecc_test_shamir()
57 DO(mp_set(G->z, 1)); in ecc_test_shamir()
58 DO(mp_read_radix(modulus, ltc_ecc_sets[z].prime, 16)); in ecc_test_shamir()
59 DO(mp_montgomery_setup(modulus, &mp)); in ecc_test_shamir()
65 DO(mp_read_unsigned_bin(rA, buf, sizes[x])); in ecc_test_shamir()
67 DO(mp_read_unsigned_bin(rB, buf, sizes[x])); in ecc_test_shamir()
70 DO(ltc_mp.ecc_ptmul(rA, G, A, modulus, 1)); in ecc_test_shamir()
73 DO(ltc_mp.ecc_ptmul(rB, G, B, modulus, 1)); in ecc_test_shamir()
[all …]
Dmodes_test.c32 DO(f8_test_mode()); in modes_test()
36 DO(lrw_test()); in modes_test()
42 DO(cbc_start(cipher_idx, iv, key, 16, 0, &cbc)); in modes_test()
44 DO(cbc_getiv(iv2, &l, &cbc)); in modes_test()
49 DO(cbc_encrypt(pt, ct, 64, &cbc)); in modes_test()
52 DO(cbc_setiv(iv2, l, &cbc)); in modes_test()
54 DO(cbc_decrypt(ct, tmp, 64, &cbc)); in modes_test()
64 DO(cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); in modes_test()
66 DO(cfb_getiv(iv2, &l, &cfb)); in modes_test()
72 DO(cfb_encrypt(pt, ct, 64, &cfb)); in modes_test()
[all …]
Drsa_test.c84 DO(rsa_import(openssl_private_rsa, sizeof(openssl_private_rsa), &key)); in rsa_compat_test()
88 DO(rsa_export(buf, &len, PK_PRIVATE, &key)); in rsa_compat_test()
95 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
103 DO(rsa_import(openssl_public_rsa_stripped, sizeof(openssl_public_rsa_stripped), &key)); in rsa_compat_test()
105 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
113 DO(rsa_import(openssl_public_rsa, sizeof(openssl_public_rsa), &key)); in rsa_compat_test()
115 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
146 DO(rsa_make_key(&yarrow_prng, prng_idx, 1024/8, 65537, &key)); in rsa_test()
192DO(rsa_encrypt_key(in, rsa_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key)); in rsa_test()
195 DO(rsa_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key)); in rsa_test()
[all …]
Dmac_test.c7 DO(hmac_test()); in mac_test()
10 DO(pmac_test()); in mac_test()
13 DO(omac_test()); in mac_test()
16 DO(xcbc_test()); in mac_test()
19 DO(f9_test()); in mac_test()
22 DO(eax_test()); in mac_test()
25 DO(ocb_test()); in mac_test()
28 DO(ccm_test()); in mac_test()
31 DO(gcm_test()); in mac_test()
34 DO(pelican_test()); in mac_test()
Ddsa_test.c13 DO(dsa_make_key(&yarrow_prng, find_prng("yarrow"), 20, 128, &key)); in dsa_test()
16 DO(dsa_verify_key(&key, &stat1)); in dsa_test()
22DO(dsa_encrypt_key(msg, 16, out, &x, &yarrow_prng, find_prng("yarrow"), find_hash("sha1"), &key)); in dsa_test()
26 DO(dsa_decrypt_key(out, x, out2, &y, &key)); in dsa_test()
35 DO(dsa_sign_hash(msg, sizeof(msg), out, &x, &yarrow_prng, find_prng("yarrow"), &key)); in dsa_test()
38 DO(dsa_verify_hash(out, x, msg, sizeof(msg), &stat1, &key)); in dsa_test()
42 DO(dsa_verify_hash(out, x, msg, sizeof(msg), &stat2, &key)); in dsa_test()
48 DO(dsa_export(out2, &x, PK_PRIVATE, &key)); in dsa_test()
49 DO(dsa_import(out2, x, &key2)); in dsa_test()
52 DO(dsa_verify_hash(out, x, msg, sizeof(msg), &stat1, &key2)); in dsa_test()
[all …]
Dkatja_test.c24 DO(katja_make_key(&yarrow_prng, prng_idx, size/8, &key)); in katja_test()
69DO(katja_encrypt_key(in, kat_msgsize, out, &len, NULL, 0, &yarrow_prng, prng_idx, hash_idx, &key)); in katja_test()
72 DO(katja_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat2, &key)); in katja_test()
81 DO(katja_decrypt_key(out, len, tmp, &len2, NULL, 0, hash_idx, &stat, &key)); in katja_test()
114DO(katja_encrypt_key(in, kat_msgsize, out, &len, lparam, sizeof(lparam), &yarrow_prng, prng_idx, h… in katja_test()
117 DO(katja_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat2, &key)); in katja_test()
126 DO(katja_decrypt_key(out, len, tmp, &len2, lparam, sizeof(lparam), hash_idx, &stat, &key)); in katja_test()
141 DO(katja_sign_hash(in, 20, out, &len, &yarrow_prng, prng_idx, hash_idx, 0, &key)); in katja_test()
145 DO(katja_export(tmp, &len2, PK_PRIVATE, &key)); in katja_test()
146 DO(katja_import(tmp, len2, &privKey)); in katja_test()
[all …]
Dcipher_hash_test.c14 DO(cipher_descriptor[x].test()); in cipher_hash_test()
19 DO(hash_descriptor[x].test()); in cipher_hash_test()
24 DO(prng_descriptor[x].test()); in cipher_hash_test()
25 DO(prng_descriptor[x].start(&nprng)); in cipher_hash_test()
26 DO(prng_descriptor[x].add_entropy((unsigned char *)"helloworld12", 12, &nprng)); in cipher_hash_test()
27 DO(prng_descriptor[x].ready(&nprng)); in cipher_hash_test()
29 DO(prng_descriptor[x].pexport(buf, &n, &nprng)); in cipher_hash_test()
31 DO(prng_descriptor[x].pimport(buf, n, &nprng)); in cipher_hash_test()
32 DO(prng_descriptor[x].ready(&nprng)); in cipher_hash_test()
Dder_tests.c468 DO(mp_init(&mpinteger)); in der_choice_test()
489 DO(der_encode_sequence(&types[x>6?x-7:x], 1, outbuf, &outlen)); in der_choice_test()
493 DO(der_decode_sequence(outbuf, inlen, &host[0], 1)); in der_choice_test()
543 DO(mp_init_multi(&a, &b, &c, &d, &e, &f, &g, NULL));
554 DO(mp_read_unsigned_bin(a, buf[0], z));
557 DO(der_encode_integer(a, buf[0], &x));
558 DO(der_length_integer(a, &y));
561 DO(der_decode_integer(buf[0], y, b));
578 DO(mp_read_unsigned_bin(a, buf[0], z));
581 DO(der_encode_integer(a, buf[0], &x));
[all …]
Dpkcs_1_test.c41DO(pkcs_1_oaep_encode(buf[0], l3, lparam, lparamlen, modlen, &yarrow_prng, prng_idx, hash_idx, buf… in pkcs_1_test()
45 DO(pkcs_1_oaep_decode(buf[1], l1, lparam, lparamlen, modlen, hash_idx, buf[2], &l2, &res1)); in pkcs_1_test()
63DO(pkcs_1_pss_encode(buf[0], l3, saltlen, &yarrow_prng, prng_idx, hash_idx, modlen, buf[1], &l1)); in pkcs_1_test()
64 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res1)); in pkcs_1_test()
67 DO(pkcs_1_pss_decode(buf[0], l3, buf[1], l1, saltlen, hash_idx, modlen, &res2)); in pkcs_1_test()
Dbase64_test.c11 DO(base64_encode(in, x, out, &l1)); in base64_test()
13 DO(base64_decode(out, l1, tmp, &l2)); in base64_test()
Dtomcrypt_test.h23 #define DO(x) do { fprintf(stderr, "%s:\n", #x); run_cmd((x), __LINE__, __FILE__, #x); } while (0); macro
25 #define DO(x) do { run_cmd((x), __LINE__, __FILE__, #x); } while (0); macro
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc92 #define DO(STATEMENT) if (STATEMENT) {} else return false macro
347 DO(Consume("syntax", "File must begin with 'syntax = \"proto2\";'.")); in ParseSyntaxIdentifier()
348 DO(Consume("=")); in ParseSyntaxIdentifier()
351 DO(ConsumeString(&syntax, "Expected syntax identifier.")); in ParseSyntaxIdentifier()
352 DO(Consume(";")); in ParseSyntaxIdentifier()
395 DO(Consume("message")); in ParseMessageDefinition()
397 DO(ConsumeIdentifier(message->mutable_name(), "Expected message name.")); in ParseMessageDefinition()
398 DO(ParseMessageBlock(message)); in ParseMessageDefinition()
403 DO(Consume("{")); in ParseMessageBlock()
446 DO(ParseLabel(&label)); in ParseMessageField()
[all …]
/external/quake/quake/src/WinQuake/
Dnet_wipx.cpp324 #define DO(src,dest) \ in WIPX_StringToAddr() macro
331 DO(0, sa_netnum[0]); in WIPX_StringToAddr()
332 DO(2, sa_netnum[1]); in WIPX_StringToAddr()
333 DO(4, sa_netnum[2]); in WIPX_StringToAddr()
334 DO(6, sa_netnum[3]); in WIPX_StringToAddr()
335 DO(9, sa_nodenum[0]); in WIPX_StringToAddr()
336 DO(11, sa_nodenum[1]); in WIPX_StringToAddr()
337 DO(13, sa_nodenum[2]); in WIPX_StringToAddr()
338 DO(15, sa_nodenum[3]); in WIPX_StringToAddr()
339 DO(17, sa_nodenum[4]); in WIPX_StringToAddr()
[all …]
Dnet_ipx.cpp607 #define DO(src,dest) \ in IPX_StringToAddr() macro
614 DO(0, network[0]); in IPX_StringToAddr()
615 DO(2, network[1]); in IPX_StringToAddr()
616 DO(4, network[2]); in IPX_StringToAddr()
617 DO(6, network[3]); in IPX_StringToAddr()
618 DO(9, node[0]); in IPX_StringToAddr()
619 DO(11, node[1]); in IPX_StringToAddr()
620 DO(13, node[2]); in IPX_StringToAddr()
621 DO(15, node[3]); in IPX_StringToAddr()
622 DO(17, node[4]); in IPX_StringToAddr()
[all …]
/external/protobuf/src/google/protobuf/
Dtext_format.cc105 #define DO(STATEMENT) if (STATEMENT) {} else return false macro
151 DO(ConsumeField(output)); in Parse()
222 DO(ConsumeField(message)); in ConsumeMessage()
226 DO(Consume(delimeter)); in ConsumeMessage()
243 DO(ConsumeIdentifier(&field_name)); in ConsumeField()
246 DO(ConsumeIdentifier(&part)); in ConsumeField()
250 DO(Consume("]")); in ConsumeField()
261 DO(ConsumeIdentifier(&field_name)); in ConsumeField()
301 DO(ConsumeFieldMessage(message, reflection, field)); in ConsumeField()
303 DO(Consume(":")); in ConsumeField()
[all …]
/external/dropbear/libtommath/demo/
Dtiming.c76 #define DO(x) x; x; macro
117 DO(mp_add(&a, &b, &c)); in main()
138 DO(mp_sub(&a, &b, &c)); in main()
170 DO(mp_mul(&a, &b, &c)); in main()
190 DO(mp_sqr(&a, &b)); in main()
258 DO(mp_exptmod(&c, &b, &a, &d)); in main()
298 DO(mp_invmod(&b, &a, &c)); in main()
/external/chromium/net/base/
Dtelnet_server.cc45 DO = 253, // Please, you use option. enumerator
141 sock->SendIAC(TelnetProtocol::DO, TelnetProtocol::ECHO); in Accept()
142 sock->SendIAC(TelnetProtocol::DO, TelnetProtocol::NAWS); in Accept()
143 sock->SendIAC(TelnetProtocol::DO, TelnetProtocol::LFLOW); in Accept()
/external/quake/quake/src/WinQuake/data/
DLICINFO.TXT11 CAN DO:
15 CANNOT DO:
28 CAN DO:
35 CANNOT DO:
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_test_bad_identifiers.proto98 // The generator used to #define a macro called "DO" inside the .cc file.
99 message DO {} message
100 optional DO do = 32;
/external/chromium/third_party/icu/source/test/threadtest/
Dthreadtest.dsw2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
/external/icu4c/tools/dumpce/
Ddumpce.dsw2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
/external/icu4c/extra/scrptrun/
Dsrtest.dsw2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
/external/quake/quake/src/WinQuake/gas2masm/
Dgas2masm.dsw2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
/external/chromium/third_party/icu/source/tools/dumpce/
Ddumpce.dsw2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
/external/quake/quake/src/QW/client/
Dqwcl.dsw2 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!

12345678910>>...15