/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | SignatureTest.java | 195 private void test_Signature(Signature sig, KeyPair keyPair) throws Exception { in test_Signature() argument 196 sig.initSign(keyPair.getPrivate()); in test_Signature() 197 sig.update(DATA); in test_Signature() 198 byte[] signature = sig.sign(); in test_Signature() 199 assertNotNull(sig.getAlgorithm(), signature); in test_Signature() 200 assertTrue(sig.getAlgorithm(), signature.length > 0); in test_Signature() 202 sig.initVerify(keyPair.getPublic()); in test_Signature() 203 sig.update(DATA); in test_Signature() 204 assertTrue(sig.getAlgorithm(), sig.verify(signature)); in test_Signature() 207 sig.update(DATA); in test_Signature() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | SignatureTest.java | 191 private void test_Signature(Signature sig, KeyPair keyPair) throws Exception { in test_Signature() argument 192 sig.initSign(keyPair.getPrivate()); in test_Signature() 193 sig.update(DATA); in test_Signature() 194 byte[] signature = sig.sign(); in test_Signature() 195 assertNotNull(sig.getAlgorithm(), signature); in test_Signature() 196 assertTrue(sig.getAlgorithm(), signature.length > 0); in test_Signature() 198 sig.initVerify(keyPair.getPublic()); in test_Signature() 199 sig.update(DATA); in test_Signature() 200 assertTrue(sig.getAlgorithm(), sig.verify(signature)); in test_Signature() 203 sig.update(DATA); in test_Signature() [all …]
|
/external/libevent/ |
D | signal.c | 114 static void __cdecl evsig_handler(int sig); 124 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base_() 125 evsig_base_fd = base->sig.ev_signal_pair[1]; in evsig_set_base_() 159 ev_uint8_t sig = signals[i]; in evsig_cb() local 160 if (sig < NSIG) in evsig_cb() 161 ncaught[sig]++; in evsig_cb() 181 if (evutil_make_internal_pipe_(base->sig.ev_signal_pair) == -1) { in evsig_init_() 192 if (base->sig.sh_old) { in evsig_init_() 193 mm_free(base->sig.sh_old); in evsig_init_() 195 base->sig.sh_old = NULL; in evsig_init_() [all …]
|
/external/epid-sdk/epid/verifier/1.1/unittests/ |
D | verify-test.cc | 38 auto sig = this->kSigGrpXMember0Sha256RandbaseMsg0; in TEST_F() local 42 Epid11Verify(nullptr, (Epid11Signature const*)sig.data(), in TEST_F() 43 sig.size(), msg.data(), msg.size())); in TEST_F() 44 EXPECT_EQ(kEpidBadArgErr, Epid11Verify(verifier, nullptr, sig.size(), in TEST_F() 47 Epid11Verify(verifier, (Epid11Signature const*)sig.data(), in TEST_F() 48 sig.size(), nullptr, msg.size())); in TEST_F() 53 auto sig = this->kSigGrpXMember0Sha256RandbaseMsg0; in TEST_F() local 57 Epid11Verify(verifier, (Epid11Signature const*)sig.data(), 0, in TEST_F() 60 Epid11Verify(verifier, (Epid11Signature const*)sig.data(), in TEST_F() 69 auto sig = this->kSigGrpXMember0Sha256RandbaseMsg0; in TEST_F() local [all …]
|
/external/ltp/testcases/kernel/syscalls/sighold/ |
D | sighold02.c | 74 static int skip_sig(int sig) in skip_sig() argument 76 if (sig >= __SIGRTMIN && sig < SIGRTMIN) in skip_sig() 79 switch (sig) { in skip_sig() 92 int sig; in main() local 109 for (sig = 1; sig < NUMSIGS; sig++) { in main() 110 if (skip_sig(sig)) in main() 112 SAFE_KILL(NULL, pid, sig); in main() 134 static void handle_sigs(int sig) in handle_sigs() argument 136 sigs_map[sig] = 1; in handle_sigs() 143 int sig; in do_child() local [all …]
|
/external/boringssl/src/third_party/wycheproof_testvectors/ |
D | rsa_signature_test.txt | 18 sig = 9f420516e9d063e5e2961accd80e3eb0198b10f4d64e749b5bd39a80f7356d2ca0fdbbfe5f5b2bba92da7616a8391… 24 sig = b4e0a273bbf6e942cb22ae5ccbfd9d843400ba451c5e086fce9b3b1f90bd892fadc54ac45b61f3b3b37aca67d835f… 30 sig = 9f74957ef2ec67062c5064143d096610d04af16f23189bf010f560d49bd793d619f70125dbef4edb4d4c923f8447e… 36 sig = 257d5214d02f48bf63a6a1f2604824bef64108af97a6032d9eab48b7964642e104f13c462289fa889109274360dfe… 42 sig = 339b527aeec23ed9319d5c5ee671e8e92fde09932648734b1ded4eeae420e113a7ff1119686aef90c0bea5248ee1d… 48 sig = 6ea7297a28c575e4348878b928d6e938a2e3d77dc46a785611a64817fa0e9c8ec71728bc7e8f9eb3268aae0f3bfa2… 54 sig = 5a7186589cda0f9fb081dad864032ffd26a775fb33c7dae0ac080aebdd4ab53bc3ed37cc09f0a1b1edee78f0790ce… 61 sig = 38e80b028443d96685ed76d4574b36c43cf9722e5fbcf08bc974385454316dee326a308c935a6e612ed26ef4e470e… 71 sig = 33a82ebc17f79f56f79073afbe0ff3f984f868684c529ecfffb3bfffaf52a99bfc057b196c3faeae3cf722c386c22… 78 sig = 37c62aaa10e8cb4bcce5fe466ac8688431e8ad2105dc12c6b7a0dfe8657ef3dbd027d04847c7d708c2099d7d38ca2… [all …]
|
D | rsa_pss_2048_sha256_mgf1_32_test.txt | 20 sig = 4f01e0c12b08625ecac89a69231906edf826380f37c959a96690d046316d68ffce9d5c471694fcebfc6b455348646… 25 sig = 0658c68fe0895646056d9bca422a64fe48813b4e14f0c8c4122e56d345b6813dc6286ffde014617e351c7af0a0d2c… 30 sig = 401eb03cdb47ca88033e3030f6bdecbac8f5c8fc1dd6a13d23d379ed9a2b309891d13d74fea9d21d159b9e6d8f37e… 35 sig = 68caf07e71ee654ffabf07d342fc4059deb4f7e5970746c423b1e8f668d5332275cc35eb61270aebd27855b1e80d5… 40 sig = 599724adc1bae31e84eb6e1399cd90cd67f48b432c63719b600402384aaea9b21ee864cdcf259029180877c847a22… 45 sig = 4e68a8375e086990bde05fc4bbde2d368f8d96a5bbcf16d9239fcdd45942d764fc2317d90f4f62ec80059490240be… 50 sig = 8bdd6db90323f3bf26a36a4ab5b92180c96881bd32b66317c4b48c2ba1421f8434000c06adde4264c6ea2d5346468… 56 sig = 67d1d1c0a398148625317c3f5e44b738bdf461c27a59594b39ebb2aebef233c7809379e54411411b82d2e7ac88f98… 62 sig = 842348f2b2cdd4c72cda7dbec0fb8b114e419cbfc1ee1b7ce5d70ec56a833c4ebc8c114dc3c92164b13f4692f236d… 68 sig = 77c9dd7786f0b5cbe76f20abf24361f8979d3a6c6c122e798eda906b0b9700cd2dd26e5286ddd39d07b7c24379cb4… [all …]
|
D | rsa_pss_4096_sha256_mgf1_32_test.txt | 20 sig = 492e60b828a9847501c7ff46a4a304ee7bf61ae87dd88cd5598c76289a70ab3afb7fa9efa3228a1e826241c13c2e1… 25 sig = 3731df2cf46de010d06775044db5ad8c98fcb8bf2be357fd39af55a864395bd24fe7cf104374159cfff1b537bb26e… 30 sig = 2b981b661e1e244b67e1892bdab545edc9ef68b50b4572a536dd4a40f31195648b8180454faa8765ba19b7ac6a591… 35 sig = 75fbc044fe19c72f459b5a1fc4793f7893ffcc95bab8609900b3c3d3be6643a42987c167e7feb63ec2a57f961c1b9… 40 sig = 66381e10ca91edb043adc721883b8c005eaac4daf040379f4d69a2bd7ded69cc6e85d80a6f3ce8aad523a5d185cbb… 45 sig = 134d55894c80eefab7744abbc9fc5cbc087072da8243236fda9df5ddedd81d23f0998061ceec59d1bd4fa2f404547… 50 sig = 7a7848548b15bf23e4dc1908e5b3aa8989936c498e77d587e64ebc9b335ce6f400a3965c027c6c248afcda5c80efe… 56 sig = 5629382f987048f03b158dfc15ba27891417674868a94a11b82b82fc412338086390517bc55e280e0c5b6a152c5e4… 62 sig = 93cac00d29dcd13c59c08c017fb4d1a1fdbfdc110dd2e87386ce2357cb8623fd167c679707e89185005b185dba545… 68 sig = 1590f61a82e0a6f331352230a995032ada91580ee31af5c1683b3efff9ee2c48ad5c36a0a2c65bbf5c7d579685faa… [all …]
|
D | rsa_pss_3072_sha256_mgf1_32_test.txt | 20 sig = b520065682633ba54c9b713b2ef19cdc1fcf275ba1744c2350da7307a20971cc30eefa37d1667d23d20001a674f0e… 25 sig = 8e10f23f49011d761946b283d7152e851ee76e5caa1741b0901eea317d8945f2a0368551b3f2b3a6a0d6a939aebde… 30 sig = 22915cfa1d7dd30f50b4c0e4cee42c5f0aa1b7a6644f8a11e611b2db042b122af8211ffc1dc220b435d8919cf64d7… 35 sig = 8f9ac1354af4161d0e55b5674821d02823b3a6b3f79cefb98cbc77f9ac2d91cc6345f989a7828132f73f3630a247a… 40 sig = 6e471c9342aaa27bddf64b02e8805611a13770b22cc3d24cdfa9a2fc14865f59344c288cf15d4c8785089968a12e9… 45 sig = 39f7dc9010bf3c200df551499404ca40346e58ce0c56271e2eb7835187ae57a7b9a0688c9b088ad85e128f56c0299… 50 sig = ae8472e987806e5110beae330056ff974abfce7ea9927979cdd14346747414cdce06a9c78eb1846c75dc288d7da53… 56 sig = 730a26b2c3fc2df474212c04fcb346b3b78a58c611351871ac1c5262867ce19a6f553880d68ba4c35827610b72bb0… 62 sig = 39e95e2dbbcf1817407146b19148aeccdc6b538729ae4f3bc240f4ed8cb9dc6a0e9cdf436bf5237e79e239a432a95… 68 sig = 84f1e37e7d52955a8d076e83fabce6a7153d49e771146ad665ac95b67eea85ecf8c126887c0b0e4ff2f4f3ca11ccc… [all …]
|
D | rsa_pss_4096_sha512_mgf1_32_test.txt | 20 sig = 8d4444ab233739c9d1441e99cb4f71581ed78fb996ba1257fffcd9e3c74ff60d6be352f002f959ff66bc6ed0c987a… 25 sig = 3a58fc64a234dbd7be958d7c34abcba7d780ca636c4f2b2bb7fd3d4e4faaea0e17226c85debf8dc9b1a79e152a3bd… 30 sig = 7c838ba65f923660aa4ac47465eb1df4df51d6fa2be26389757de8c6dfc7746aa5164d909b69b7c04758d256e13e3… 35 sig = 4a80cafbe2a6095f8e8663f6289878514d7ee7daba0c1b0a077cefb333cacdf7c116ab89b0a01cab3161c68cac92a… 40 sig = 3d90ff4e36188b451116227e189a71734571b72cc6fe53dec4eec59e67e98111e96fcd906509fade9922f2de6a13a… 45 sig = 07440a61252a8906a9264ff58cebad6217ad710833105369b7a858216f1d5a5f5dedbe3eb8128b34dc0f0243faacb… 50 sig = 2686029fb11cd033724e57dc1835da4f9321eef330747c3500a4893586429ebf02cb4424ee5a0b91a70eb35cb05ef… 56 sig = 9d1925a05f0e28592ed69d6951ff5417b240bc327ded41b460de2fc3a0101bb89d6badc5bd50e2d1432a57b7bd620… 62 sig = 2f19362834eb20e169132d1ba73bfe32b50faaf9c413d0b2ad578e263cad266a3144835b129648471fbbbd4bedd96… 68 sig = 88a4b39c219e6d7a7155a5e38eb2bf76715c540c817f5f7c3ac827fa34ac202c7d904aef8d59bf449154fdec535b4… [all …]
|
D | rsa_pss_2048_sha256_mgf1_0_test.txt | 20 sig = 20081f8894a1330c4d503f642880e3c30e398fc6235c24f1be752e2d49cd9493ac0cf999e275c4f89ff08f0d9ba4e… 25 sig = 4bf16f098701d340c438368e658ed8904d3a21f7714c02440d7476ead132766b3d578b325ae752f906873af1b7955… 30 sig = 2b3155b14971f79c9e3294723c7e41ded41af709f6edb2c19f3526584aaa1ef2de2e7a8dcaf5d7c3239f604c42165… 35 sig = 5e91b5dcbf02d6f19621d41a83dc8f15ea83c0edb83765ef029b0acac2e1ec8918b1d2afe1fadf11c48d27594cb9c… 40 sig = 501c8119a0f8aa2139ef5e05adc65384fa389b9023532171d514651ff48677aad546326a2e3c02b39ed84e5b7e463… 45 sig = a17d67937354c7fcba18dd5383edbf2f0868ccbe0a316876fb1c4fb14e7f4c048ef5ded5d01d02556cff0c8bf081b… 50 sig = 64c26d43b028f284e9667d5951e70c75e611ae2ab876f66ccfaf09bd54a26dd17983d993bd4f5270537f4c4b2e486… 56 sig = 6b77fb8cd287c666cbc30f00bcfccd31f6dc01655c3c976d1b2a980d53be40d6a4a7676024abeb1825ec47589365c… 62 sig = 4af6c02b1f3c2719fd1c84965658e36651ff891484f4c4177fce2185b7098c861939fcba677e8ad461577a666ac77… 68 sig = 601f6431b0607c80d5c92c86a63d06fcd862bb35eda31a7f331a59abbb8ec18fbc86ec95ad63723216e151b7bf731… [all …]
|
D | eddsa_test.txt | 17 sig = d4fbdb52bfa726b44d1786a8c0d171c3e62ca83c9e5bbe63de0bb2483f8fd6cc1429ab72cafc41ab56af02ff8fcc4… 22 sig = d80737358ede548acb173ef7e0399f83392fe8125b2ce877de7975d8b726ef5b1e76632280ee38afad12125ea44b9… 27 sig = 7c38e026f29e14aabd059a0f2db8b0cd783040609a8be684db12f82a27774ab07a9155711ecfaf7f99f277bad0c6a… 32 sig = 1c1ad976cbaae3b31dee07971cf92c928ce2091a85f5899f5e11ecec90fc9f8e93df18c5037ec9b29c07195ad284e… 37 sig = 657c1492402ab5ce03e2c3a7f0384d051b9cf3570f1207fc78c1bcc98c281c2bf0cf5b3a289976458a1be6277a505… 42 sig = d46543bfb892f84ec124dcdfc847034c19363bf3fc2fa89b1267833a14856e52e60736918783f950b6f1dd8d40dc3… 47 sig = 879350045543bc14ed2c08939b68c30d22251d83e018cacbaf0c9d7a48db577e80bdf76ce99e5926762bc13b7b348… 52 sig = 7bdc3f9919a05f1d5db4a3ada896094f6871c1f37afc75db82ec3147d84d6f237b7e5ecc26b59cfea0c7eaf1052dc… 57 sig = 5dbd7360e55aa38e855d6ad48c34bd35b7871628508906861a7c4776765ed7d1e13d910faabd689ec8618b78295c8… 63 sig = 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000… [all …]
|
D | ecdsa_secp256r1_sha512_test.txt | 20 sig = 304402202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c002205f85a63a5be977ad7… 26 sig = 304402202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c00220a07a59c4a41688538… 36 sig = 304502202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c0022100a07a59c4a416885… 42 sig = 30814502202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c0022100a07a59c4a4168… 51 sig = 30460281202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c0022100a07a59c4a4168… 60 sig = 304602202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c002812100a07a59c4a4168… 69 sig = 3082004502202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c0022100a07a59c4a41… 78 sig = 3047028200202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c0022100a07a59c4a41… 87 sig = 304702202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c00282002100a07a59c4a41… 96 sig = 304602202478f1d049f6d857ac900a7af1772226a4c59b345fbb90613c66f42b98f981c0022100a07a59c4a416885… [all …]
|
D | ecdsa_secp224r1_sha512_test.txt | 20 sig = 303c021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021c394766fb67a65fe0af6c154f7… 26 sig = 303c021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021cc6b899049859a01f5093eab08… 36 sig = 303d021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021d00c6b899049859a01f5093eab… 42 sig = 30813d021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021d00c6b899049859a01f5093e… 51 sig = 303e02811c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021d00c6b899049859a01f5093e… 60 sig = 303e021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab02811d00c6b899049859a01f5093e… 69 sig = 3082003d021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021d00c6b899049859a01f509… 78 sig = 303f0282001c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021d00c6b899049859a01f509… 87 sig = 303f021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab0282001d00c6b899049859a01f509… 96 sig = 303e021c691c723dd6a7f5d11b8c8e8bd0825c9fab0b99ee2b25f3658fdf92ab021d00c6b899049859a01f5093eab… [all …]
|
D | ecdsa_secp521r1_sha512_test.txt | 20 sig = 30818702414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a0… 26 sig = 30818602414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a0… 32 sig = 3082008602414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9… 41 sig = 308188028200414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750… 50 sig = 30818802414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a0… 59 sig = 308702414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a04f… 65 sig = 308502414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a04f… 71 sig = 30818602424e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a0… 77 sig = 30818602404e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a0… 83 sig = 30818602414e4223ee43e8cb89de3b1339ffc279e582f82c7ab0f71bbde43dbe374ac75ffbef29acdf8e70750b9a0… [all …]
|
D | ecdsa_secp384r1_sha512_test.txt | 20 sig = 3065023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d7d… 26 sig = 30650230814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d7d29… 36 sig = 3065023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d7d… 46 sig = 3066023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d7d… 52 sig = 308166023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d… 61 sig = 306702813100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d… 70 sig = 3067023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d7d… 79 sig = 30820066023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da1467385467… 88 sig = 30680282003100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da1467385467… 97 sig = 3068023100814cc9a70febda342d4ada87fc39426f403d5e89808428460c1eca60c897bfd6728da14673854673d7d… [all …]
|
D | ecdsa_secp384r1_sha384_test.txt | 20 sig = 3064023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320abd3… 26 sig = 3064023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320abd3… 36 sig = 3065023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320abd3… 42 sig = 308165023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320ab… 51 sig = 306602813012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320ab… 60 sig = 3066023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320abd3… 69 sig = 30820065023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320… 78 sig = 30670282003012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320… 87 sig = 3067023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320abd3… 96 sig = 3066023012b30abef6b5476fe6b612ae557c0425661e26b44b1bfe19daf2ca28e3113083ba8e4ae4cc45a0320abd3… [all …]
|
/external/ltp/testcases/kernel/syscalls/sigrelse/ |
D | sigrelse01.c | 127 static void timeout(int sig); 129 static void handler(int sig); 136 int choose_sig(int sig); 244 int sig; /* current signal number */ in parent() local 266 for (sig = 1; sig < NUMSIGS; sig++) { in parent() 267 if (choose_sig(sig)) { in parent() 268 if (kill(pid, sig) < 0) { in parent() 273 pid, sig, pid); in parent() 277 pid, sig, pid); in parent() 281 sig); in parent() [all …]
|
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid05.c | 78 int pid, npid, sig, nsig; in main() local 106 for (sig = 1; sig <= 15; sig++) { in main() 107 if (sig == SIGUSR1 || sig == SIGUSR2 || sig == SIGBUS) in main() 111 signal(sig, SIG_DFL); in main() 116 self_exec(av[0], "d", sig); in main() 120 do_child(sig); in main() 146 if ((sig == 1) || (sig == 2) || in main() 147 (sig == 9) || (sig == 13) || in main() 148 (sig == 14) || in main() 149 (sig == 15)) { in main() [all …]
|
/external/epid-sdk/epid/verifier/unittests/ |
D | verify-test.cc | 41 auto& sig = this->kSigGrp01Member0Sha512RandombaseTest0; in TEST_F() local 45 EpidVerify(nullptr, (EpidSignature const*)sig.data(), sig.size(), in TEST_F() 48 EpidVerify(verifier, nullptr, sig.size(), msg.data(), msg.size())); in TEST_F() 50 EpidVerify(verifier, (EpidSignature const*)sig.data(), sig.size(), in TEST_F() 56 auto& sig = this->kSigGrp01Member0Sha512RandombaseTest0; in TEST_F() local 60 EpidVerify(verifier, (EpidSignature const*)sig.data(), 0, in TEST_F() 63 EpidVerify(verifier, (EpidSignature const*)sig.data(), in TEST_F() 72 auto sig = this->kSigGrp01Member0Sha512RandombaseTest0; in TEST_F() local 74 sig.resize(sizeof(EpidSignature) + in TEST_F() 79 EpidVerify(verifier, (EpidSignature const*)sig.data(), sig.size(), in TEST_F() [all …]
|
/external/vboot_reference/tests/ |
D | vb20_rsa_padding_tests.c | 47 uint8_t sig[RSA1024NUMBYTES]; in test_signatures() local 55 Memcpy(sig, signatures[0], sizeof(sig)); in test_signatures() 56 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_signatures() 62 Memcpy(sig, signatures[i], sizeof(sig)); in test_signatures() 63 if (!vb2_rsa_verify_digest(key, sig, in test_signatures() 80 uint8_t sig[RSA1024NUMBYTES]; in test_verify_digest() local 86 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest() 87 TEST_SUCC(vb2_rsa_verify_digest(key, sig, test_message_sha1_hash, &wb), in test_verify_digest() 90 Memcpy(sig, signatures[0], sizeof(sig)); in test_verify_digest() 91 vb2_workbuf_init(&wb, workbuf, sizeof(sig) * 3 - 1); in test_verify_digest() [all …]
|
/external/epid-sdk/epid/member/tiny/src/ |
D | signbasic.c | 60 NativeBasicSignature* sig) { in EpidSignBasic() argument 83 if (!EFqHash(&sig->B, (const unsigned char*)basename, basename_len, in EpidSignBasic() 89 if (!EFqRand(&sig->B, ctx->rnd_func, ctx->rnd_param)) { in EpidSignBasic() 95 EFqAffineExp(&sig->K, &sig->B, &ctx->f); in EpidSignBasic() 96 EFqCp(&sig->T, &presig.T); in EpidSignBasic() 101 if (!EFqAffineExp(&presig.R1, &sig->B, &presig.rf)) { in EpidSignBasic() 121 EFqSerialize(&g1_str, &sig->B); in EpidSignBasic() 123 EFqSerialize(&g1_str, &sig->K); in EpidSignBasic() 125 EFqSerialize(&g1_str, &sig->T); in EpidSignBasic() 132 FpFromHash(&sig->c, digest.digest, tinysha_digest_size(&sha_state)); in EpidSignBasic() [all …]
|
/external/vboot_reference/host/lib/ |
D | host_signature.c | 25 VbSignature* sig = (VbSignature*)malloc(sizeof(VbSignature) + sig_size); in SignatureAlloc() local 26 if (!sig) in SignatureAlloc() 29 sig->sig_offset = sizeof(VbSignature); in SignatureAlloc() 30 sig->sig_size = sig_size; in SignatureAlloc() 31 sig->data_size = data_size; in SignatureAlloc() 32 return sig; in SignatureAlloc() 36 void SignatureInit(VbSignature* sig, uint8_t* sig_data, in SignatureInit() argument 38 sig->sig_offset = OffsetOf(sig, sig_data); in SignatureInit() 39 sig->sig_size = sig_size; in SignatureInit() 40 sig->data_size = data_size; in SignatureInit() [all …]
|
/external/vboot_reference/firmware/lib20/ |
D | common.c | 14 uint8_t *vb2_signature_data(struct vb2_signature *sig) in vb2_signature_data() argument 16 return (uint8_t *)sig + sig->sig_offset; in vb2_signature_data() 60 const struct vb2_signature *sig) in vb2_verify_signature_inside() argument 63 sig, sizeof(*sig), in vb2_verify_signature_inside() 64 sig->sig_offset, sig->sig_size); in vb2_verify_signature_inside() 68 struct vb2_signature *sig, in vb2_verify_digest() argument 72 uint8_t *sig_data = vb2_signature_data(sig); in vb2_verify_digest() 74 if (sig->sig_size != vb2_rsa_sig_size(key->sig_alg)) { in vb2_verify_digest() 77 sig->sig_size, vb2_rsa_sig_size(key->sig_alg), in vb2_verify_digest() 87 struct vb2_signature *sig, in vb2_verify_data() argument [all …]
|
/external/vboot_reference/firmware/lib/ |
D | vboot_common.c | 43 uint8_t *GetSignatureData(VbSignature *sig) in GetSignatureData() argument 45 return (uint8_t *)sig + sig->sig_offset; in GetSignatureData() 48 const uint8_t *GetSignatureDataC(const VbSignature *sig) in GetSignatureDataC() argument 50 return (const uint8_t *)sig + sig->sig_offset; in GetSignatureDataC() 96 const VbSignature *sig) in VerifySignatureInside() argument 99 sig, sizeof(VbSignature), in VerifySignatureInside() 100 sig->sig_offset, sig->sig_size); in VerifySignatureInside() 146 int VerifyData(const uint8_t *data, uint64_t size, const VbSignature *sig, in VerifyData() argument 150 (unsigned)sig->sig_size, siglen_map[key->algorithm], in VerifyData() 152 if (sig->sig_size != siglen_map[key->algorithm]) { in VerifyData() [all …]
|