Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 774) sorted by relevance

12345678910>>...31

/external/bison/lib/
Dsigprocmask.c67 signal_nothrow (int sig, handler_t handler) in signal_nothrow() argument
73 result = signal (sig, handler); in signal_nothrow()
95 ext_signal (int sig, handler_t handler) in ext_signal() argument
97 switch (sig) in ext_signal()
106 return signal (sig, handler); in ext_signal()
114 sigismember (const sigset_t *set, int sig) in sigismember() argument
116 if (sig >= 0 && sig < NSIG) in sigismember()
119 if (sig == SIGABRT_COMPAT) in sigismember()
120 sig = SIGABRT; in sigismember()
123 return (*set >> sig) & 1; in sigismember()
[all …]
Dsigaction.c84 sigaction_handler (int sig) in sigaction_handler() argument
90 if (sig < 0 || NSIG <= sig || !action_array[sig].sa_handler) in sigaction_handler()
93 if (sig == SIGABRT) in sigaction_handler()
106 handler = action_array[sig].sa_handler; in sigaction_handler()
107 if ((action_array[sig].sa_flags & SA_RESETHAND) == 0) in sigaction_handler()
108 signal (sig, sigaction_handler); in sigaction_handler()
110 action_array[sig].sa_handler = NULL; in sigaction_handler()
113 mask = action_array[sig].sa_mask; in sigaction_handler()
114 if ((action_array[sig].sa_flags & SA_NODEFER) == 0) in sigaction_handler()
115 sigaddset (&mask, sig); in sigaction_handler()
[all …]
/external/libevent/
Dsignal.c113 static void __cdecl evsig_handler(int sig);
123 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base()
124 evsig_base_fd = base->sig.ev_signal_pair[0]; in evsig_set_base()
154 ev_uint8_t sig = signals[i]; in evsig_cb() local
155 if (sig < NSIG) in evsig_cb()
156 ncaught[sig]++; in evsig_cb()
177 AF_UNIX, SOCK_STREAM, 0, base->sig.ev_signal_pair) == -1) { in evsig_init()
188 evutil_make_socket_closeonexec(base->sig.ev_signal_pair[0]); in evsig_init()
189 evutil_make_socket_closeonexec(base->sig.ev_signal_pair[1]); in evsig_init()
190 base->sig.sh_old = NULL; in evsig_init()
[all …]
/external/vboot_reference/tests/
Dvb20_rsa_padding_tests.c47 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 …]
Dvb21_host_sig_tests.c46 struct vb2_signature *sig, *sig2; in sig_tests() local
82 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, NULL), in sig_tests()
84 TEST_PTR_NEQ(sig, NULL, " sig_ptr"); in sig_tests()
85 TEST_EQ(0, strcmp(vb2_common_desc(sig), test_desc), " desc"); in sig_tests()
86 TEST_EQ(0, memcmp(&sig->guid, &test_guid, sizeof(test_guid)), " guid"); in sig_tests()
87 TEST_EQ(sig->data_size, test_size, " data_size"); in sig_tests()
89 TEST_EQ(size, sig->c.total_size, " size"); in sig_tests()
90 TEST_SUCC(vb2_verify_data(test_data, test_size, sig, pubk, &wb), in sig_tests()
92 free(sig); in sig_tests()
94 TEST_SUCC(vb2_sign_data(&sig, test_data, test_size, prik, in sig_tests()
[all …]
Dvboot_common2_tests.c48 VbSignature *sig; in VerifyDataTest() local
51 sig = CalculateSignature(test_data, test_size, private_key); in VerifyDataTest()
52 TEST_PTR_NEQ(sig, 0, "VerifyData() calculate signature"); in VerifyDataTest()
57 if (!sig || !rsa) in VerifyDataTest()
60 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 0, in VerifyDataTest()
63 sig->sig_size -= 16; in VerifyDataTest()
64 TEST_EQ(VerifyData(test_data, test_size, sig, rsa), 1, in VerifyDataTest()
66 sig->sig_size += 16; in VerifyDataTest()
68 TEST_EQ(VerifyData(test_data, test_size - 1, sig, rsa), 1, in VerifyDataTest()
71 GetSignatureData(sig)[0] ^= 0x5A; in VerifyDataTest() local
[all …]
Dvb20_common2_tests.c78 const struct vb2_signature *sig) in test_verify_data() argument
86 uint32_t sig_total_size = sig->sig_offset + sig->sig_size; in test_verify_data()
98 memcpy(sig2, sig, sig_total_size); in test_verify_data()
104 memcpy(sig2, sig, sig_total_size); in test_verify_data()
111 memcpy(sig2, sig, sig_total_size); in test_verify_data()
116 memcpy(sig2, sig, sig_total_size); in test_verify_data()
120 memcpy(sig2, sig, sig_total_size); in test_verify_data()
125 memcpy(sig2, sig, sig_total_size); in test_verify_data()
129 memcpy(sig2, sig, sig_total_size); in test_verify_data()
144 struct vb2_signature *sig = NULL; in test_algorithm() local
[all …]
Drsa_utility_tests.c30 const uint8_t* sig, in RSAVerify() argument
136 uint8_t sig[4]; in TestVerifyBinary() local
142 TEST_EQ(RSAVerifyBinary_f(NULL, &key, buf, sizeof(buf), sig, 0), in TestVerifyBinary()
145 TEST_EQ(RSAVerifyBinary_f(keybuf, NULL, buf, sizeof(buf), sig, 0), in TestVerifyBinary()
150 TEST_EQ(RSAVerifyBinary_f(NULL, &key, buf, sizeof(buf), sig, kNumAlgorithms), in TestVerifyBinary()
154 TEST_EQ(RSAVerifyBinary_f(NULL, NULL, buf, sizeof(buf), sig, kNumAlgorithms), in TestVerifyBinary()
158 TEST_EQ(RSAVerifyBinary_f(keybuf, NULL, buf, sizeof(buf), sig, 3), in TestVerifyBinary()
164 TEST_EQ(RSAVerifyBinary_f(NULL, &key, buf, sizeof(buf), sig, 0), in TestVerifyBinary()
174 uint8_t sig[4]; in TestVerifyBinaryWithDigest() local
180 TEST_EQ(RSAVerifyBinaryWithDigest_f(NULL, &key, digest, sig, 0), in TestVerifyBinaryWithDigest()
[all …]
Dvb21_common_tests.c220 struct vb2_signature *sig; in test_verify_hash() local
235 TEST_SUCC(vb2_sign_data(&sig, test_data, sizeof(test_data), prik, NULL), in test_verify_hash()
239 sig, &pubk, &wb), in test_verify_hash()
242 *((uint8_t *)sig + sig->sig_offset) ^= 0xab; in test_verify_hash()
243 TEST_EQ(vb2_verify_data(test_data, sizeof(test_data), sig, &pubk, &wb), in test_verify_hash()
246 free(sig); in test_verify_hash()
257 struct vb2_signature *sig; in test_verify_keyblock() local
325 vb2_sign_data(&sig, buf, kbuf->sig_offset, prik[0], NULL); in test_verify_keyblock()
326 memcpy(buf + kbuf->sig_offset, sig, sig->c.total_size); in test_verify_keyblock()
327 free(sig); in test_verify_keyblock()
[all …]
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DSignature2Test.java90 Signature sig = Signature.getInstance("DSA"); in test_getParameters() local
92 sig.getParameters(); in test_getParameters()
102 Signature sig = Signature.getInstance("DSA"); in test_getParameterLjava_lang_String() local
105 sig.getParameter("r"); in test_getParameterLjava_lang_String()
106 sig.getParameter("s"); in test_getParameterLjava_lang_String()
138 Signature sig = Signature.getInstance("DSA"); in test_setParameterLjava_lang_StringLjava_lang_Object() local
141 sig.setParameter("r", BigInteger.ONE); in test_setParameterLjava_lang_StringLjava_lang_Object()
142 sig.setParameter("s", BigInteger.ONE); in test_setParameterLjava_lang_StringLjava_lang_Object()
154 Signature sig = Signature.getInstance("DSA"); in test_setParameterLjava_security_spec_AlgorithmParameterSpec() local
159 sig.setParameter(spec); in test_setParameterLjava_security_spec_AlgorithmParameterSpec()
[all …]
/external/javassist/src/main/javassist/bytecode/
DSignatureAttribute.java71 public void setSignature(String sig) { in setSignature() argument
72 int index = getConstPool().addUtf8Info(sig); in setSignature()
89 String sig = renameClass(getSignature(), oldname, newname); in renameClass() local
90 setSignature(sig); in renameClass()
94 String sig = renameClass(getSignature(), classnames); in renameClass() local
95 setSignature(sig); in renameClass()
294 TypeParameter(String sig, int nb, int ne, ObjectType sc, ObjectType[] si) { in TypeParameter() argument
295 name = sig.substring(nb, ne); in TypeParameter()
587 TypeVariable(String sig, int begin, int end) { in TypeVariable() argument
588 name = sig.substring(begin, end); in TypeVariable()
[all …]
/external/vboot_reference/host/lib/
Dhost_signature.c25 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/
Dcommon.c14 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/dbus/dbus/
Ddbus-signature.c428 const char *sig; in _dbus_signature_test() local
433 sig = ""; in _dbus_signature_test()
434 _dbus_assert (dbus_signature_validate (sig, NULL)); in _dbus_signature_test()
435 _dbus_assert (!dbus_signature_validate_single (sig, NULL)); in _dbus_signature_test()
436 dbus_signature_iter_init (&iter, sig); in _dbus_signature_test()
439 sig = DBUS_TYPE_STRING_AS_STRING; in _dbus_signature_test()
440 _dbus_assert (dbus_signature_validate (sig, NULL)); in _dbus_signature_test()
441 _dbus_assert (dbus_signature_validate_single (sig, NULL)); in _dbus_signature_test()
442 dbus_signature_iter_init (&iter, sig); in _dbus_signature_test()
445 sig = DBUS_TYPE_STRING_AS_STRING DBUS_TYPE_BYTE_AS_STRING; in _dbus_signature_test()
[all …]
/external/vboot_reference/firmware/lib/
Dvboot_common.c43 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 …]
/external/vboot_reference/firmware/lib21/
Dcommon.c176 int vb2_verify_signature(const struct vb2_signature *sig, uint32_t size) in vb2_verify_signature() argument
183 if (sig->c.magic != VB2_MAGIC_SIGNATURE) in vb2_verify_signature()
187 rv = vb2_verify_common_header(sig, size); in vb2_verify_signature()
196 if (sig->c.struct_version_major != VB2_SIGNATURE_VERSION_MAJOR) in vb2_verify_signature()
200 if (sig->c.fixed_size < sizeof(*sig)) in vb2_verify_signature()
204 rv = vb2_verify_common_member(sig, &min_offset, in vb2_verify_signature()
205 sig->sig_offset, sig->sig_size); in vb2_verify_signature()
210 expect_sig_size = vb2_sig_size(sig->sig_alg, sig->hash_alg); in vb2_verify_signature()
213 if (sig->sig_size != expect_sig_size) in vb2_verify_signature()
222 static uint8_t *vb2_signature_data(struct vb2_signature *sig) in vb2_signature_data() argument
[all …]
Dapi.c46 const struct vb2_signature *sig = NULL; in vb2api_init_hash2() local
63 sig = (const struct vb2_signature *) in vb2api_init_hash2()
66 if (!memcmp(guid, &sig->guid, sizeof(*guid))) in vb2api_init_hash2()
69 hash_offset += sig->c.total_size; in vb2api_init_hash2()
90 sd->hash_tag = vb2_offset_of(ctx->workbuf, sig); in vb2api_init_hash2()
91 sd->hash_remaining_size = sig->data_size; in vb2api_init_hash2()
94 *size = sig->data_size; in vb2api_init_hash2()
97 rv = vb2ex_hwcrypto_digest_init(sig->hash_alg, sig->data_size); in vb2api_init_hash2()
100 sig->hash_alg); in vb2api_init_hash2()
101 dc->hash_alg = sig->hash_alg; in vb2api_init_hash2()
[all …]
/external/boringssl/src/crypto/ecdsa/
Decdsa_asn1.c88 ECDSA_SIG *sig = OPENSSL_malloc(sizeof(ECDSA_SIG)); in ECDSA_SIG_new() local
89 if (sig == NULL) { in ECDSA_SIG_new()
92 sig->r = BN_new(); in ECDSA_SIG_new()
93 sig->s = BN_new(); in ECDSA_SIG_new()
94 if (sig->r == NULL || sig->s == NULL) { in ECDSA_SIG_new()
95 ECDSA_SIG_free(sig); in ECDSA_SIG_new()
98 return sig; in ECDSA_SIG_new()
101 void ECDSA_SIG_free(ECDSA_SIG *sig) { in ECDSA_SIG_free() argument
102 if (sig == NULL) { in ECDSA_SIG_free()
106 BN_free(sig->r); in ECDSA_SIG_free()
[all …]
/external/mesa3d/src/glsl/
Dir_function_detect_recursion.cpp136 function(ir_function_signature *sig) in function() argument
137 : sig(sig) in function()
162 ir_function_signature *sig; member in function
188 function *get_function(ir_function_signature *sig) in get_function() argument
190 function *f = (function *) hash_table_find(this->function_hash, sig); in get_function()
192 f = new(mem_ctx) function(sig); in get_function()
193 hash_table_insert(this->function_hash, f, sig); in get_function()
199 virtual ir_visitor_status visit_enter(ir_function_signature *sig) in visit_enter() argument
201 this->current = this->get_function(sig); in visit_enter()
205 virtual ir_visitor_status visit_leave(ir_function_signature *sig) in visit_leave() argument
[all …]
/external/vboot_reference/tests/futility/
Dtest_create.sh16 for sig in rsa1024 rsa2048 rsa4096 rsa8192; do
19 "${TESTKEYS}/key_${sig}.pem" "${TMP}_key_${sig}.${hash}"
20 cmp "${TESTKEYS}/key_${sig}.${hash}.vbprivk" \
21 "${TMP}_key_${sig}.${hash}.vbprivk"
22 cmp "${TESTKEYS}/key_${sig}.${hash}.vbpubk" \
23 "${TMP}_key_${sig}.${hash}.vbpubk"
30 for sig in rsa1024 rsa2048 rsa4096 rsa8192; do
33 "${TESTKEYS}/key_${sig}.pem" "${TMP}_key_${sig}.${hash}"
/external/compiler-rt/lib/asan/
Dasan_posix.cc41 SignalContext sig = SignalContext::Create(siginfo, context); in AsanOnDeadlySignal() local
46 bool IsStackAccess = sig.addr + 512 > sig.sp && sig.addr < sig.sp + 0xFFFF; in AsanOnDeadlySignal()
55 if (!IsStackAccess && IsAccessibleMemoryRange(sig.pc, 4)) { in AsanOnDeadlySignal()
56 u32 inst = *(unsigned *)sig.pc; in AsanOnDeadlySignal()
77 ReportStackOverflow(sig); in AsanOnDeadlySignal()
79 ReportDeadlySignal("FPE", sig); in AsanOnDeadlySignal()
81 ReportDeadlySignal("ILL", sig); in AsanOnDeadlySignal()
83 ReportDeadlySignal("SEGV", sig); in AsanOnDeadlySignal()
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/
DCodeEmitter.java70 Signature sig; field in CodeEmitter.State
75 State(ClassInfo classInfo, int access, Signature sig, Type[] exceptionTypes) { in State() argument
78 this.sig = sig; in State()
81 argumentTypes = sig.getArgumentTypes(); in State()
93 return sig; in getSignature()
106 … CodeEmitter(ClassEmitter ce, MethodVisitor mv, int access, Signature sig, Type[] exceptionTypes) { in CodeEmitter() argument
107 super(access, sig.getDescriptor(), mv); in CodeEmitter()
109 state = new State(ce.getClassInfo(), access, sig, exceptionTypes); in CodeEmitter()
123 return state.sig; in getSignature()
127 return state.sig.getReturnType(); in getReturnType()
[all …]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
DJcaContentSignerBuilder.java61 final Signature sig = helper.createSignature(sigAlgId); in build() local
65 sig.initSign(privateKey, random); in build()
69 sig.initSign(privateKey); in build()
74 private SignatureOutputStream stream = new SignatureOutputStream(sig); in build()
108 private Signature sig; field in SignatureOutputStream
110 SignatureOutputStream(Signature sig) in SignatureOutputStream() argument
112 this.sig = sig; in SignatureOutputStream()
120 sig.update(bytes, off, len); in write()
133 sig.update(bytes); in write()
146 sig.update((byte)b); in write()
[all …]
/external/mesa3d/src/gallium/state_trackers/d3d1x/d3d1xshader/src/
Ddxbc_parse.cpp69 int dxbc_parse_signature(dxbc_chunk_signature* sig, D3D11_SIGNATURE_PARAMETER_DESC** params) in dxbc_parse_signature() argument
71 unsigned count = bswap_le32(sig->count); in dxbc_parse_signature()
77 param.SemanticName = (char*)&sig->count + bswap_le32(sig->elements[i].name_offset); in dxbc_parse_signature()
78 param.SemanticIndex = bswap_le32(sig->elements[i].semantic_index); in dxbc_parse_signature()
79 param.SystemValueType = (D3D_NAME)bswap_le32(sig->elements[i].system_value_type); in dxbc_parse_signature()
80 param.ComponentType = (D3D_REGISTER_COMPONENT_TYPE)bswap_le32(sig->elements[i].component_type); in dxbc_parse_signature()
81 param.Register = bswap_le32(sig->elements[i].register_num); in dxbc_parse_signature()
82 param.Mask = sig->elements[i].mask; in dxbc_parse_signature()
83 param.ReadWriteMask = sig->elements[i].read_write_mask; in dxbc_parse_signature()
84 param.Stream = sig->elements[i].stream; in dxbc_parse_signature()
/external/valgrind/coregrind/
Dm_libcsignal.c70 set->sig[i] = ~0; in VG_()
80 set->sig[i] = 0; in VG_()
91 if (set->sig[i] != 0) return False; in VG_()
96 if ((set->sig[i] & mask) != 0) return False; in VG_()
110 if (set->sig[i] != ~0) return False; in VG_()
115 if ((set->sig[i] & mask) != mask) return False; in VG_()
129 if (set1->sig[i] != set2->sig[i]) return False; in VG_()
134 if ((set1->sig[i] & mask) != (set2->sig[i] & mask)) return False; in VG_()
149 set->sig[signum / _VKI_NSIG_BPW] |= (1ULL << (signum % _VKI_NSIG_BPW)); in VG_()
160 set->sig[signum / _VKI_NSIG_BPW] &= ~(1ULL << (signum % _VKI_NSIG_BPW)); in VG_()
[all …]

12345678910>>...31