Home
last modified time | relevance | path

Searched full:sig (Results 1 – 25 of 1211) sorted by relevance

12345678910>>...49

/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_sign.c36 DSA_SIG *sig = OPENSSL_zalloc(sizeof(*sig)); in DSA_SIG_new() local
37 if (sig == NULL) in DSA_SIG_new()
39 return sig; in DSA_SIG_new()
42 void DSA_SIG_free(DSA_SIG *sig) in DSA_SIG_free() argument
44 if (sig == NULL) in DSA_SIG_free()
46 BN_clear_free(sig->r); in DSA_SIG_free()
47 BN_clear_free(sig->s); in DSA_SIG_free()
48 OPENSSL_free(sig); in DSA_SIG_free()
53 DSA_SIG *sig; in d2i_DSA_SIG() local
79 i2d_DSA_SIG(const DSA_SIG * sig,unsigned char ** ppout) i2d_DSA_SIG() argument
123 DSA_SIG sig; DSA_size() local
135 DSA_SIG_get0(const DSA_SIG * sig,const BIGNUM ** pr,const BIGNUM ** ps) DSA_SIG_get0() argument
143 DSA_SIG_set0(DSA_SIG * sig,BIGNUM * r,BIGNUM * s) DSA_SIG_set0() argument
155 ossl_dsa_sign_int(int type,const unsigned char * dgst,int dlen,unsigned char * sig,unsigned int * siglen,DSA * dsa) ossl_dsa_sign_int() argument
174 DSA_sign(int type,const unsigned char * dgst,int dlen,unsigned char * sig,unsigned int * siglen,DSA * dsa) DSA_sign() argument
[all...]
/freebsd/contrib/ntp/sntp/libevent/
H A Dsignal.c116 static void __cdecl evsig_handler(int sig);
126 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base_()
127 evsig_base_fd = base->sig.ev_signal_pair[1]; in evsig_set_base_()
161 ev_uint8_t sig = signals[i]; in evsig_cb() local
162 if (sig < NSIG) in evsig_cb()
163 ncaught[sig]++; in evsig_cb()
183 if (evutil_make_internal_pipe_(base->sig.ev_signal_pair) == -1) { in evsig_init_()
194 if (base->sig.sh_old) { in evsig_init_()
195 mm_free(base->sig.sh_old); in evsig_init_()
197 base->sig.sh_old = NULL; in evsig_init_()
[all …]
/freebsd/contrib/libevent/
H A Dsignal.c116 static void __cdecl evsig_handler(int sig);
126 evsig_base_n_signals_added = base->sig.ev_n_signals_added; in evsig_set_base_()
127 evsig_base_fd = base->sig.ev_signal_pair[1]; in evsig_set_base_()
161 ev_uint8_t sig = signals[i]; in evsig_cb() local
162 if (sig < NSIG) in evsig_cb()
163 ncaught[sig]++; in evsig_cb()
183 if (evutil_make_internal_pipe_(base->sig.ev_signal_pair) == -1) { in evsig_init_()
194 if (base->sig.sh_old) { in evsig_init_()
195 mm_free(base->sig.sh_old); in evsig_init_()
197 base->sig.sh_old = NULL; in evsig_init_()
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dmisuse.c9 sigabrt_handler_15(int sig) in sigabrt_handler_15() argument
11 (void) sig; in sigabrt_handler_15()
17 sigabrt_handler_14(int sig) in sigabrt_handler_14() argument
19 (void) sig; in sigabrt_handler_14()
28 sigabrt_handler_13(int sig) in sigabrt_handler_13() argument
30 (void) sig; in sigabrt_handler_13()
40 sigabrt_handler_12(int sig) in sigabrt_handler_12() argument
42 (void) sig; in sigabrt_handler_12()
53 sigabrt_handler_11(int sig) in sigabrt_handler_11() argument
55 (void) sig; in sigabrt_handler_11()
[all …]
/freebsd/lib/libsecureboot/openpgp/
H A Dopgp_sig.c109 decode_sig(int tag, unsigned char **pptr, size_t len, OpenPGP_sig *sig)
132 sig->pgpbytes = malloc(5);
133 if (!sig->pgpbytes)
135 memcpy(sig->pgpbytes, ptr, 5);
136 sig->pgpbytes_len = 5;
137 sig->sig_type = *ptr++;
139 sig->key_id = octets2hex(ptr, 8);
141 sig->sig_alg = *ptr++;
142 sig->hash_alg = *ptr++;
144 sig->sig_type = *ptr++;
[all …]
/freebsd/usr.sbin/ppp/
H A Dsig.c34 #include "sig.h"
50 signal_recorder(int sig) in signal_recorder() argument
52 caused[sig - 1]++; in signal_recorder()
58 * Set up signal_recorder to handle the given sig and record ``fn'' as
64 sig_signal(int sig, sig_type fn) in sig_signal() argument
68 if (sig <= 0 || sig > NSIG) { in sig_signal()
72 return signal(sig, fn); in sig_signal()
74 Result = handler[sig - 1]; in sig_signal()
76 signal(sig, fn); in sig_signal()
77 handler[sig - 1] = (sig_type) 0; in sig_signal()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_signal.c60 static int linux_pksignal(struct thread *td, int pid, int sig,
62 static int linux_psignal(struct thread *td, int pid, int sig);
64 int tgid, int sig, ksiginfo_t *ksi);
66 int tgid, int sig);
67 static void sicode_to_lsicode(int sig, int si_code, int *lsi_code);
169 int error, sig; in linux_do_sigaction() local
173 sig = linux_to_bsd_signal(linux_sig); in linux_do_sigaction()
184 if ((sig == SIGKILL || sig == SIGSTOP) && in linux_do_sigaction()
190 error = kern_sigaction(td, sig, nsa, osa, 0); in linux_do_sigaction()
247 error = linux_do_sigaction(td, args->sig, &nsa, &osa); in linux_signal()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dsignal.c39 sm_signal(sig, handler) in sm_signal() argument
40 int sig; in sm_signal()
61 if (sigaction(sig, &n, &o) < 0)
73 return signal(sig, handler);
75 return sigset(sig, handler);
86 if (sigaction(sig, &n, &o) < 0)
96 ** sig -- the signal to block.
105 sm_blocksignal(sig) in sm_blocksignal() argument
106 int sig; in sm_blocksignal()
112 return (sigblock(sigmask(sig)) & sigmask(sig)) != 0;
[all …]
/freebsd/crypto/openssl/providers/implementations/signature/
H A Deddsa_sig.c34 static int s390x_ed25519_digestsign(const ECX_KEY *edkey, unsigned char *sig,
36 static int s390x_ed448_digestsign(const ECX_KEY *edkey, unsigned char *sig,
39 const unsigned char *sig,
42 const unsigned char *sig,
231 int ed25519_digest_verify(void *vpeddsactx, const unsigned char *sig, in ed25519_digest_verify() argument
243 return s390x_ed25519_digestverify(edkey, sig, tbs, tbslen); in ed25519_digest_verify()
246 return ossl_ed25519_verify(tbs, tbslen, sig, edkey->pubkey, in ed25519_digest_verify()
250 int ed448_digest_verify(void *vpeddsactx, const unsigned char *sig, in ed448_digest_verify() argument
262 return s390x_ed448_digestverify(edkey, sig, tbs, tbslen); in ed448_digest_verify()
265 return ossl_ed448_verify(peddsactx->libctx, tbs, tbslen, sig, edkey->pubkey, in ed448_digest_verify()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_report.cpp220 static void ReportStackOverflowImpl(const SignalContext &sig, u32 tid, in ReportStackOverflowImpl() argument
227 SanitizerToolName, kDescription, (void *)sig.addr, (void *)sig.pc, in ReportStackOverflowImpl()
228 (void *)sig.bp, (void *)sig.sp, tid); in ReportStackOverflowImpl()
233 unwind(sig, unwind_context, stack); in ReportStackOverflowImpl()
238 static void ReportDeadlySignalImpl(const SignalContext &sig, u32 tid, in ReportDeadlySignalImpl() argument
243 const char *description = sig.Describe(); in ReportDeadlySignalImpl()
244 if (sig.is_memory_access && !sig.is_true_faulting_addr) in ReportDeadlySignalImpl()
246 SanitizerToolName, description, (void *)sig.pc, (void *)sig.bp, in ReportDeadlySignalImpl()
247 (void *)sig.sp, tid); in ReportDeadlySignalImpl()
250 SanitizerToolName, description, (void *)sig.addr, (void *)sig.pc, in ReportDeadlySignalImpl()
[all …]
/freebsd/lib/libsecureboot/
H A Dlocal.trust.mk37 .for sig ext url in ${VE_SIGN_URL_LIST:@x@${x:H:H} ${x:H:T} ${x:T}@}
38 SIGN_${sig}:= ${PYTHON} ${${sig}_SIGNER:U${SIGNER}} -u ${url} ${${sig}_SIGN_FLAGS:U-h sha256}
40 VE_SIGNATURE_LIST+= ${sig}
43 _SIGN_${sig}_USE: .USE
44 ${SIGN_${sig}} ${.ALLSRC}
46 _TA_${sig}_USE: .USE
47 ${SIGN_${sig}} -C ${.TARGET}
49 .if ${sig} == "OPENPGP"
50 ta_${sig:tl}.${ext}: _TA_${sig}_USE
51 ta_${ext}.h: ta_${sig:tl}.${ext}
[all …]
/freebsd/crypto/openssh/regress/unittests/sshsig/
H A Dmktestdata.sh21 rm -f rsa.sig dsa.sig ecdsa.sig ed25519.sig ecdsa_sk.sig ed25519_sk.sig
35 ssh-keygen -Y sign -f rsa -n $NAMESPACE - < signed-data > rsa.sig
36 ssh-keygen -Y sign -f dsa -n $NAMESPACE - < signed-data > dsa.sig
37 ssh-keygen -Y sign -f ecdsa -n $NAMESPACE - < signed-data > ecdsa.sig
38 ssh-keygen -Y sign -f ed25519 -n $NAMESPACE - < signed-data > ed25519.sig
40 -Y sign -f ecdsa_sk -n $NAMESPACE - < signed-data > ecdsa_sk.sig
42 -Y sign -f ed25519_sk -n $NAMESPACE - < signed-data > ed25519_sk.sig
/freebsd/sys/kern/
H A Dkern_sig.c105 static int killpg1(struct thread *td, int sig, int pgid, int all,
109 static int sigprop(int sig);
115 static struct thread *sigtd(struct proc *p, int sig, bool fast_sigblock);
261 sig = __i * sizeof((set)->__bits[0]) * NBBY + __sig; \
284 int old_boundary, sig; in ast_sig()
329 while ((sig = cursig(td)) != 0) { in ast_sig()
330 KASSERT(sig >= 0, ("sig %d", sig)); in ast_sig()
331 postsig(sig); in ast_sig()
285 int old_boundary, sig; ast_sig() local
755 sigprop(int sig) sigprop() argument
784 kern_sigaction(struct thread * td,int sig,const struct sigaction * act,struct sigaction * oact,int flags) kern_sigaction() argument
930 int sig; global() member
958 int sig; global() member
1061 sigdflt(struct sigacts * ps,int sig) sigdflt() argument
1340 int error, sig, timevalid = 0; kern_sigtimedwait() local
1610 int has_sig, sig; kern_sigsuspend() local
1778 int sig; global() member
1830 killpg1(struct thread * td,int sig,int pgid,int all,ksiginfo_t * ksi) killpg1() argument
2054 pgsignal(struct pgrp * pgrp,int sig,int checkctty,ksiginfo_t * ksi) pgsignal() argument
2077 postsig_done(int sig,struct thread * td,struct sigacts * ps) postsig_done() argument
2103 int sig; trapsignal() local
2150 sigtd(struct proc * p,int sig,bool fast_sigblock) sigtd() argument
2199 kern_psignal(struct proc * p,int sig) kern_psignal() argument
2210 pksignal(struct proc * p,int sig,ksiginfo_t * ksi) pksignal() argument
2235 tdsignal(struct thread * td,int sig) tdsignal() argument
2246 tdksignal(struct thread * td,int sig,ksiginfo_t * ksi) tdksignal() argument
2265 tdsendsignal(struct proc * p,struct thread * td,int sig,ksiginfo_t * ksi) tdsendsignal() argument
2554 tdsigwakeup(struct thread * td,int sig,sig_t action,int intrval) tdsigwakeup() argument
2820 ptracestop(struct thread * td,int sig,ksiginfo_t * si) ptracestop() argument
2948 int sig; reschedule_signals() local
3109 sigprocess(struct thread * td,int sig) sigprocess() argument
3295 int sig; issignal() local
3386 postsig(int sig) postsig() argument
3479 int ret, sig; sig_ast_needsigchk() local
3609 sigexit(struct thread * td,int sig) sigexit() argument
3693 childproc_jobstate(struct proc * p,int reason,int sig) childproc_jobstate() argument
4256 pgsigio(struct sigio ** sigiop,int sig,int checkctty) pgsigio() argument
4380 int sig; sig_drop_caught() local
[all...]
/freebsd/crypto/openssl/crypto/evp/
H A Dm_sigver.c85 || (signature = locpctx->op.sig.signature) == NULL in do_sigver_init()
86 || locpctx->op.sig.algctx == NULL)) in do_sigver_init()
202 locpctx->op.sig.signature = signature; in do_sigver_init()
205 locpctx->op.sig.algctx in do_sigver_init()
207 if (locpctx->op.sig.algctx == NULL) { in do_sigver_init()
266 ret = signature->digest_verify_init(locpctx->op.sig.algctx, in do_sigver_init()
273 ret = signature->digest_sign_init(locpctx->op.sig.algctx, in do_sigver_init()
413 || pctx->op.sig.algctx == NULL in EVP_DigestSignUpdate()
414 || pctx->op.sig.signature == NULL) in EVP_DigestSignUpdate()
417 if (pctx->op.sig.signature->digest_sign_update == NULL) { in EVP_DigestSignUpdate()
[all …]
H A Dsignature.c372 const OSSL_PARAM *EVP_SIGNATURE_gettable_ctx_params(const EVP_SIGNATURE *sig) in EVP_SIGNATURE_gettable_ctx_params() argument
376 if (sig == NULL || sig->gettable_ctx_params == NULL) in EVP_SIGNATURE_gettable_ctx_params()
379 provctx = ossl_provider_ctx(EVP_SIGNATURE_get0_provider(sig)); in EVP_SIGNATURE_gettable_ctx_params()
380 return sig->gettable_ctx_params(NULL, provctx); in EVP_SIGNATURE_gettable_ctx_params()
383 const OSSL_PARAM *EVP_SIGNATURE_settable_ctx_params(const EVP_SIGNATURE *sig) in EVP_SIGNATURE_settable_ctx_params() argument
387 if (sig == NULL || sig->settable_ctx_params == NULL) in EVP_SIGNATURE_settable_ctx_params()
390 provctx = ossl_provider_ctx(EVP_SIGNATURE_get0_provider(sig)); in EVP_SIGNATURE_settable_ctx_params()
391 return sig in EVP_SIGNATURE_settable_ctx_params()
631 EVP_PKEY_sign(EVP_PKEY_CTX * ctx,unsigned char * sig,size_t * siglen,const unsigned char * tbs,size_t tbslen) EVP_PKEY_sign() argument
675 EVP_PKEY_verify(EVP_PKEY_CTX * ctx,const unsigned char * sig,size_t siglen,const unsigned char * tbs,size_t tbslen) EVP_PKEY_verify() argument
719 EVP_PKEY_verify_recover(EVP_PKEY_CTX * ctx,unsigned char * rout,size_t * routlen,const unsigned char * sig,size_t siglen) EVP_PKEY_verify_recover() argument
[all...]
/freebsd/contrib/bmake/
H A Dsigaction.c7 * int sigaction(int sig, struct sigaction *act,
9 * int sigaddset(sigset_t *mask, int sig);
10 * int sigdelset(sigset_t *mask, int sig);
13 * int sigismember(sigset_t *mask, int sig);
18 * SIG_HDLR (*Signal(int sig, SIG_HDLR (*disp)(int)))(int);
68 * sigaddset() adds "sig" to the sigset_t pointed to by "mask".
70 * sigdelset() removes "sig" from the sigset_t pointed to
78 * sigismember() returns true if "sig" is found in "*mask".
189 sigaction(int sig, in sigaction() argument
197 oldh = sigset(sig, act->sa_handler); in sigaction()
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_sig.c76 int _sigwait(const sigset_t *set, int *sig);
167 _thr_send_sig(struct pthread *thread, int sig) in _thr_send_sig() argument
169 return thr_kill(thread->tid, sig); in _thr_send_sig()
188 sigcancel_handler(int sig __unused, in sigcancel_handler()
202 typedef void (*ohandler)(int sig, int code, struct sigcontext *scp,
209 thr_sighandler(int sig, siginfo_t *info, void *_ucp) in thr_sighandler() argument
220 usa = __libc_sigaction_slot(sig); in thr_sighandler()
234 if (THR_IN_CRITICAL(curthread) && SIGISMEMBER(_thr_deferset, sig)) { in thr_sighandler()
243 handle_signal(&act, sig, info, ucp); in thr_sighandler()
247 handle_signal(struct sigaction *actp, int sig, siginfo_t *info, ucontext_t *ucp) in handle_signal() argument
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_saos.c28 ASN1_OCTET_STRING sig; in RSA_sign_ASN1_OCTET_STRING() local
32 sig.type = V_ASN1_OCTET_STRING; in RSA_sign_ASN1_OCTET_STRING()
33 sig.length = m_len; in RSA_sign_ASN1_OCTET_STRING()
34 sig.data = (unsigned char *)m; in RSA_sign_ASN1_OCTET_STRING()
36 i = i2d_ASN1_OCTET_STRING(&sig, NULL); in RSA_sign_ASN1_OCTET_STRING()
48 i2d_ASN1_OCTET_STRING(&sig, &p); in RSA_sign_ASN1_OCTET_STRING()
67 ASN1_OCTET_STRING *sig = NULL; in RSA_verify_ASN1_OCTET_STRING() local
85 sig = d2i_ASN1_OCTET_STRING(NULL, &p, (long)i); in RSA_verify_ASN1_OCTET_STRING()
86 if (sig == NULL) in RSA_verify_ASN1_OCTET_STRING()
89 if (((unsigned int)sig->length != m_len) || in RSA_verify_ASN1_OCTET_STRING()
[all …]
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_sign/ed25519/ref10/
H A Dopen.c14 _crypto_sign_ed25519_verify_detached(const unsigned char *sig, in _crypto_sign_ed25519_verify_detached() argument
27 if (sig[63] & 224) { in _crypto_sign_ed25519_verify_detached()
31 if (sc25519_is_canonical(sig + 32) == 0 || in _crypto_sign_ed25519_verify_detached()
32 ge25519_has_small_order(sig) != 0) { in _crypto_sign_ed25519_verify_detached()
44 crypto_hash_sha512_update(&hs, sig, 32); in _crypto_sign_ed25519_verify_detached()
50 ge25519_double_scalarmult_vartime(&R, h, &A, sig + 32); in _crypto_sign_ed25519_verify_detached()
53 return crypto_verify_32(rcheck, sig) | (-(rcheck == sig)) | in _crypto_sign_ed25519_verify_detached()
54 sodium_memcmp(sig, rcheck, 32); in _crypto_sign_ed25519_verify_detached()
58 crypto_sign_ed25519_verify_detached(const unsigned char *sig, in crypto_sign_ed25519_verify_detached() argument
63 return _crypto_sign_ed25519_verify_detached(sig, m, mlen, pk, 0); in crypto_sign_ed25519_verify_detached()
/freebsd/contrib/ntp/
H A Dflock-build51 SIG=`perl -e 'print rand'`
67 echo $SIG > .buildkey-$i
70 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
71 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --disable-debugging --disable-saveconfig $BUILD_ARGS" &
72 ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto --enable-c99-snprintf --enable-leap-smear $BUILD_ARGS" &
73 ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks --disable-autokey --without-sntp --disable-thread-support $BUILD_ARGS" &
76 cat > .flockbuild-$i-$SIG <<-ENDQUOT
86 ./build $SIG $PARSE $STD $BUILD_ARGS &
94 ./build $SIG $PARSE $STD --disable-debugging --disable-saveconfig $BUILD_ARGS &
100 ./build $SIG
[all...]
/freebsd/lib/libc/compat-43/
H A Dsigpause.247 .Fn sighold "int sig"
49 .Fn sigignore "int sig"
53 .Fn sigrelse "int sig"
68 .Fa sig
86 .Fa sig
97 .Fa sig
100 .Fa sig 's
108 .Fa sig
114 .Fa sig
120 .Fa sig
[all …]
H A Dsigcompat.c104 xsi_sigpause(int sig) in xsi_sigpause() argument
110 if (sigdelset(&set, sig) == -1) in xsi_sigpause()
116 sighold(int sig) in sighold() argument
121 if (sigaddset(&set, sig) == -1) in sighold()
127 sigignore(int sig) in sigignore() argument
133 return (__libc_sigaction(sig, &sa, NULL)); in sigignore()
137 sigrelse(int sig) in sigrelse() argument
142 if (sigaddset(&set, sig) == -1) in sigrelse()
148 (*sigset(int sig, void (*disp)(int)))(int) in sigset() argument
154 if (sigaddset(&set, sig) == -1) in sigset()
[all …]
/freebsd/contrib/tcsh/
H A Dtc.sig.c2 * tc.sig.c: Signal routine emulations
36 sigset_interrupting(int sig, void (*fn) (int)) in sigset_interrupting() argument
43 if (sigaction(sig, &act, NULL) == 0) { in sigset_interrupting()
46 sigaddset(&set, sig); in sigset_interrupting()
93 queue_alrmcatch(int sig) in queue_alrmcatch() argument
95 USE(sig); in queue_alrmcatch()
100 queue_pchild(int sig) in queue_pchild() argument
102 USE(sig); in queue_pchild()
107 queue_phup(int sig) in queue_phup() argument
109 USE(sig); in queue_phup()
[all …]
/freebsd/crypto/openssl/crypto/bn/asm/
H A Dia64.S312 { .mib; setf.sig f8=r35 // w
338 { .mfi; (p25) getf.sig r36=f52 // low
344 { .mii; (p25) getf.sig r32=f44 // high
363 setf.sig f37=r0 // serves as carry at (p18) tick
386 getf.sig r8=f41 // the return value
418 { .mib; setf.sig f8=r35 // w
443 { .mfi; (p23) getf.sig r36=f45 // low
449 { .mmi; (p24) getf.sig r32=f40 // high
584 // result from getf.sig. I do nothing about it at this point for
694 { .mfi; getf.sig r16=f40
[all …]
/freebsd/sys/contrib/device-tree/Bindings/mmc/
H A Dmmci.txt23 - st,sig-dir-dat0 : bus signal direction pin used for DAT[0].
24 - st,sig-dir-dat2 : bus signal direction pin used for DAT[2].
25 - st,sig-dir-dat31 : bus signal direction pin used for DAT[3] and DAT[1].
26 - st,sig-dir-dat74 : bus signal direction pin used for DAT[4] to DAT[7].
27 - st,sig-dir-cmd : cmd signal direction pin used for CMD.
28 - st,sig-pin-fbclk : feedback clock signal pin used.
33 - st,sig-dir : signal direction polarity used for cmd, dat0 dat123.
63 st,sig-dir-dat0;
64 st,sig-dir-dat2;
65 st,sig-dir-cmd;
[all …]

12345678910>>...49