| /openbsd-src/sys/dev/ic/ |
| H A D | oosiop.c | 139 struct oosiop_cb *cb; in oosiop_cb_alloc() local 142 cb = TAILQ_FIRST(&sc->sc_free_cb); in oosiop_cb_alloc() 143 if (cb) in oosiop_cb_alloc() 144 TAILQ_REMOVE(&sc->sc_free_cb, cb, chain); in oosiop_cb_alloc() 147 return (cb); in oosiop_cb_alloc() 154 struct oosiop_cb *cb = xcb; in oosiop_cb_free() local 157 TAILQ_INSERT_TAIL(&sc->sc_free_cb, cb, chain); in oosiop_cb_free() 167 struct oosiop_cb *cb; in oosiop_attach() local 207 cb = TAILQ_FIRST(&sc->sc_free_cb); in oosiop_attach() 208 sc->sc_reselbuf = cb->xferdma->dm_segs[0].ds_addr + in oosiop_attach() [all …]
|
| /openbsd-src/gnu/usr.bin/cvs/src/ |
| H A D | zlib.c | 139 struct compress_buffer *cb = (struct compress_buffer *) closure; local 142 if (cb->buf->input == NULL) 153 bd = cb->buf->data; 167 cb->buf->data = bd; 170 cb->zstr.avail_out = size; 171 cb->zstr.next_out = (Bytef *) data; 182 cb->zstr.avail_in = bd->size; 183 cb->zstr.next_in = (Bytef *) bd->bufp; 187 zstatus = inflate (&cb->zstr, Z_NO_FLUSH); 192 compress_error (0, zstatus, &cb->zstr, "inflate"); [all …]
|
| /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
| H A D | 930126-1.c | 17 T * cb = (T *) (((T) (object & 0x3FF)) | 0x400); in Ldata() local 35 cb[19] = ((((cc) & 0xFF) << 16) | (9 & 0xFF)); in Ldata() 36 cb[21] = ((((cc) & 0xFF) << 16) | ((10) & 0xFF)); in Ldata() 37 cb[23] = ((((cc) & 0xFF) << 16) | (11 & 0xFF)); in Ldata() 38 cb[25] = ((((cc) & 0xFF) << 16) | (12 & 0xFF)); in Ldata() 39 cb[27] = ((((cc) & 0xFF) << 16) | (13 & 0xFF)); in Ldata() 40 cb[29] = ((((cc) & 0xFF) << 16) | (14 & 0xFF)); in Ldata() 41 cb[31] = ((((cc) & 0xFF) << 16) | (15 & 0xFF)); in Ldata() 42 cb[35] = ((((cc) & 0xFF) << 16) | (17 & 0xFF)); in Ldata() 43 cb[36] = ((0x1A) << 26) | (((0x39) << 26) | 1) & 0x3FF; in Ldata() [all …]
|
| /openbsd-src/libexec/login_token/ |
| H A D | token.c | 65 DES_cblock cb; member 93 tokenseed(TOKEN_CBlock *cb) in tokenseed() argument 95 cb->ul[0] = arc4random(); in tokenseed() 96 cb->ul[1] = arc4random(); in tokenseed() 108 TOKEN_CBlock cb; in tokenchallenge() local 125 h2cb(tr.secret, &cb); in tokenchallenge() 126 DES_fixup_key_parity(&cb.cb); in tokenchallenge() 127 DES_key_sched(&cb.cb, &ks); in tokenchallenge() 128 DES_ecb_encrypt(&tr.rim, &cb.cb, &ks, DES_ENCRYPT); in tokenchallenge() 129 memcpy(tr.rim, cb.cb, 8); in tokenchallenge() [all …]
|
| /openbsd-src/lib/libcrypto/pem/ |
| H A D | pem_all.c | 145 PEM_read_X509_REQ(FILE *fp, X509_REQ **x, pem_password_cb *cb, void *u) in PEM_read_X509_REQ() argument 148 (void **)x, cb, u); in PEM_read_X509_REQ() 161 PEM_read_bio_X509_REQ(BIO *bp, X509_REQ **x, pem_password_cb *cb, void *u) in PEM_read_bio_X509_REQ() argument 164 (void **)x, cb, u); in PEM_read_bio_X509_REQ() 193 PEM_read_X509_CRL(FILE *fp, X509_CRL **x, pem_password_cb *cb, void *u) in PEM_read_X509_CRL() argument 196 (void **)x, cb, u); in PEM_read_X509_CRL() 209 PEM_read_bio_X509_CRL(BIO *bp, X509_CRL **x, pem_password_cb *cb, void *u) in PEM_read_bio_X509_CRL() argument 212 (void **)x, cb, u); in PEM_read_bio_X509_CRL() 225 PEM_read_PKCS7(FILE *fp, PKCS7 **x, pem_password_cb *cb, void *u) in PEM_read_PKCS7() argument 228 (void **)x, cb, u); in PEM_read_PKCS7() [all …]
|
| H A D | pem_pk8.c | 71 const EVP_CIPHER *enc, char *kstr, int klen, pem_password_cb *cb, void *u); 73 const EVP_CIPHER *enc, char *kstr, int klen, pem_password_cb *cb, void *u); 83 int klen, pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey_nid() argument 85 return do_pk8pkey(bp, x, 0, nid, NULL, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey_nid() 91 char *kstr, int klen, pem_password_cb *cb, void *u) in PEM_write_bio_PKCS8PrivateKey() argument 93 return do_pk8pkey(bp, x, 0, -1, enc, kstr, klen, cb, u); in PEM_write_bio_PKCS8PrivateKey() 99 char *kstr, int klen, pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_bio() argument 101 return do_pk8pkey(bp, x, 1, -1, enc, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_bio() 107 char *kstr, int klen, pem_password_cb *cb, void *u) in i2d_PKCS8PrivateKey_nid_bio() argument 109 return do_pk8pkey(bp, x, 1, nid, NULL, kstr, klen, cb, u); in i2d_PKCS8PrivateKey_nid_bio() [all …]
|
| H A D | pem.h | 152 type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ 154 return PEM_ASN1_read((d2i_of_void *)d2i_##asn1, str,fp,(void **)x,cb,u); \ 171 unsigned char *kstr, int klen, pem_password_cb *cb, \ 174 return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \ 179 unsigned char *kstr, int klen, pem_password_cb *cb, \ 182 return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \ 187 type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\ 189 return PEM_ASN1_read_bio((d2i_of_void *)d2i_##asn1, str,bp,(void **)x,cb,u); \ 206 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) \ 208 return PEM_ASN1_write_bio((i2d_of_void *)i2d_##asn1,str,bp,x,enc,kstr,klen,cb,u); \ [all …]
|
| H A D | pem_pkey.c | 78 PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) in PEM_read_bio_PrivateKey() argument 88 bp, cb, u)) in PEM_read_bio_PrivateKey() 111 if (cb) in PEM_read_bio_PrivateKey() 112 klen = cb(psbuf, PEM_BUFSIZE, 0, u); in PEM_read_bio_PrivateKey() 150 unsigned char *kstr, int klen, pem_password_cb *cb, void *u) in PEM_write_bio_PrivateKey() argument 154 (char *)kstr, klen, cb, u); in PEM_write_bio_PrivateKey() 156 return PEM_write_bio_PrivateKey_traditional(bp, x, enc, kstr, klen, cb, in PEM_write_bio_PrivateKey() 163 const EVP_CIPHER *enc, unsigned char *kstr, int klen, pem_password_cb *cb, in PEM_write_bio_PrivateKey_traditional() argument 171 pem_str, bp, x, enc, kstr, klen, cb, u); in PEM_write_bio_PrivateKey_traditional() 232 PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) in PEM_read_PrivateKey() argument [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_deadlock_detector2.cpp | 92 void MutexInit(DDCallback *cb, DDMutex *m); 93 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock); 94 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 96 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock); 97 void MutexDestroy(DDCallback *cb, DDMutex *m); 99 DDReport *GetReport(DDCallback *cb); 103 u32 allocateId(DDCallback *cb); 148 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 149 VPrintf(2, "#%llu: DD::MutexInit(%p)\n", cb->lt->ctx, m); in MutexInit() 168 u32 DD::allocateId(DDCallback *cb) { in allocateId() argument [all …]
|
| H A D | sanitizer_deadlock_detector1.cpp | 48 void MutexInit(DDCallback *cb, DDMutex *m) override; 49 void MutexBeforeLock(DDCallback *cb, DDMutex *m, bool wlock) override; 50 void MutexAfterLock(DDCallback *cb, DDMutex *m, bool wlock, 52 void MutexBeforeUnlock(DDCallback *cb, DDMutex *m, bool wlock) override; 53 void MutexDestroy(DDCallback *cb, DDMutex *m) override; 55 DDReport *GetReport(DDCallback *cb) override; 58 void ReportDeadlock(DDCallback *cb, DDMutex *m); 92 void DD::MutexInit(DDCallback *cb, DDMutex *m) { in MutexInit() argument 94 m->stk = cb->Unwind(); in MutexInit() 103 void DD::MutexBeforeLock(DDCallback *cb, in MutexBeforeLock() argument [all …]
|
| /openbsd-src/sbin/isakmpd/ |
| H A D | conf.c | 107 struct conf_binding *cb, *next; in conf_remove_now() local 109 for (cb = LIST_FIRST(&conf_bindings[conf_hash(section)]); cb; in conf_remove_now() 110 cb = next) { in conf_remove_now() 111 next = LIST_NEXT(cb, link); in conf_remove_now() 112 if (strcasecmp(cb->section, section) == 0 && in conf_remove_now() 113 strcasecmp(cb->tag, tag) == 0) { in conf_remove_now() 114 LIST_REMOVE(cb, link); in conf_remove_now() 116 tag, cb->value)); in conf_remove_now() 117 free(cb->section); in conf_remove_now() 118 free(cb->tag); in conf_remove_now() [all …]
|
| /openbsd-src/sys/dev/pci/drm/i915/ |
| H A D | i915_sw_fence.c | 421 struct i915_sw_dma_fence_cb *cb = container_of(data, typeof(*cb), base); in dma_i915_sw_fence_wake() local 423 i915_sw_fence_set_error_once(cb->fence, dma->error); in dma_i915_sw_fence_wake() 424 i915_sw_fence_complete(cb->fence); in dma_i915_sw_fence_wake() 425 kfree(cb); in dma_i915_sw_fence_wake() 430 struct i915_sw_dma_fence_cb_timer *cb = arg; in timer_i915_sw_fence_wake() local 433 fence = xchg(&cb->base.fence, NULL); in timer_i915_sw_fence_wake() 438 cb->dma->ops->get_driver_name(cb->dma), in timer_i915_sw_fence_wake() 439 cb in timer_i915_sw_fence_wake() 450 struct i915_sw_dma_fence_cb_timer *cb = dma_i915_sw_fence_wake_timer() local 465 struct i915_sw_dma_fence_cb_timer *cb = irq_i915_sw_fence_work() local 479 struct i915_sw_dma_fence_cb *cb; i915_sw_fence_await_dma_fence() local 545 struct i915_sw_dma_fence_cb *cb = container_of(data, typeof(*cb), base); __dma_i915_sw_fence_wake() local 553 __i915_sw_fence_await_dma_fence(struct i915_sw_fence * fence,struct dma_fence * dma,struct i915_sw_dma_fence_cb * cb) __i915_sw_fence_await_dma_fence() argument [all...] |
| /openbsd-src/usr.sbin/unbound/util/ |
| H A D | ub_event.c | 102 static void (*NATIVE_BITS_CB(void (*cb)(int, short, void*)))(int, short, void*) in UB_EV_BITS_CB() 104 if(cb == comm_point_udp_callback) in UB_EV_BITS_CB() 106 else if(cb == comm_point_udp_ancil_callback) in UB_EV_BITS_CB() 108 else if(cb == comm_point_tcp_accept_callback) in UB_EV_BITS_CB() 110 else if(cb == comm_point_tcp_handle_callback) in UB_EV_BITS_CB() 112 else if(cb == comm_timer_callback) in UB_EV_BITS_CB() 114 else if(cb == comm_signal_callback) in UB_EV_BITS_CB() 116 else if(cb == comm_point_local_handle_callback) in UB_EV_BITS_CB() 118 else if(cb == comm_point_raw_handle_callback) in UB_EV_BITS_CB() 120 else if(cb == comm_point_http_handle_callback) in UB_EV_BITS_CB() [all …]
|
| H A D | ub_event_pluggable.c | 103 static void (*NATIVE_BITS_CB(void (*cb)(int, short, void*)))(int, short, void*) in UB_EV_BITS_CB() 105 if(cb == comm_point_udp_callback) in UB_EV_BITS_CB() 107 else if(cb == comm_point_udp_ancil_callback) in UB_EV_BITS_CB() 109 else if(cb == comm_point_tcp_accept_callback) in UB_EV_BITS_CB() 111 else if(cb == comm_point_tcp_handle_callback) in UB_EV_BITS_CB() 113 else if(cb == comm_timer_callback) in UB_EV_BITS_CB() 115 else if(cb == comm_signal_callback) in UB_EV_BITS_CB() 117 else if(cb == comm_point_local_handle_callback) in UB_EV_BITS_CB() 119 else if(cb == comm_point_raw_handle_callback) in UB_EV_BITS_CB() 121 else if(cb == tube_handle_signal) in UB_EV_BITS_CB() [all …]
|
| /openbsd-src/sys/dev/pci/drm/apple/ |
| H A D | iomfb_internal.h | 15 static void func(struct apple_dcp *dcp, bool oob, dcp_callback_t cb, \ 18 dcp_push(dcp, oob, &dcp_methods[handle], 0, 0, NULL, cb, cookie); \ 22 static void func(struct apple_dcp *dcp, bool oob, dcp_callback_t cb, \ 25 dcp_push(dcp, oob, &dcp_methods[handle], 0, sizeof(T), NULL, cb, cookie); \ 30 dcp_callback_t cb, void *cookie) \ 32 dcp_push(dcp, oob, &dcp_methods[handle], sizeof(T), 0, data, cb, cookie); \ 37 dcp_callback_t cb, void *cookie) \ 40 cb, cookie); \ 46 dcp_callback_t cb, void *cookie) \ 51 data, cb, cookie); \ [all …]
|
| /openbsd-src/lib/libcrypto/bn/ |
| H A D | bn_prime.c | 132 BN_GENCB_call(BN_GENCB *cb, int a, int b) in BN_GENCB_call() argument 135 if (!cb) in BN_GENCB_call() 137 switch (cb->ver) { in BN_GENCB_call() 140 if (!cb->cb.cb_1) in BN_GENCB_call() 142 cb->cb.cb_1(a, b, cb->arg); in BN_GENCB_call() 146 return cb->cb.cb_2(a, b, cb); in BN_GENCB_call() 157 const BIGNUM *rem, BN_GENCB *cb) in BN_generate_prime_ex() argument 195 if (!BN_GENCB_call(cb, 0, loops++)) in BN_generate_prime_ex() 222 if (!BN_GENCB_call(cb, 2, loops - 1)) in BN_generate_prime_ex() 237 BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb) in BN_is_prime_ex() argument [all …]
|
| /openbsd-src/sbin/unwind/libunbound/util/ |
| H A D | ub_event_pluggable.c | 103 static void (*NATIVE_BITS_CB(void (*cb)(int, short, void*)))(int, short, void*) in UB_EV_BITS_CB() 105 if(cb == comm_point_udp_callback) in UB_EV_BITS_CB() 107 else if(cb == comm_point_udp_ancil_callback) in UB_EV_BITS_CB() 109 else if(cb == comm_point_tcp_accept_callback) in UB_EV_BITS_CB() 111 else if(cb == comm_point_tcp_handle_callback) in UB_EV_BITS_CB() 113 else if(cb == comm_timer_callback) in UB_EV_BITS_CB() 115 else if(cb == comm_signal_callback) in UB_EV_BITS_CB() 117 else if(cb == comm_point_local_handle_callback) in UB_EV_BITS_CB() 119 else if(cb == comm_point_raw_handle_callback) in UB_EV_BITS_CB() 121 else if(cb == tube_handle_signal) in UB_EV_BITS_CB() [all …]
|
| /openbsd-src/lib/libcrypto/dh/ |
| H A D | dh_gen.c | 69 BN_GENCB *cb); 72 DH_generate_parameters_ex(DH *ret, int prime_len, int generator, BN_GENCB *cb) in DH_generate_parameters_ex() argument 75 return ret->meth->generate_params(ret, prime_len, generator, cb); in DH_generate_parameters_ex() 76 return dh_builtin_genparams(ret, prime_len, generator, cb); in DH_generate_parameters_ex() 107 dh_builtin_genparams(DH *ret, int prime_len, int generator, BN_GENCB *cb) in dh_builtin_genparams() argument 160 if (!BN_generate_prime_ex(ret->p, prime_len, 1, t1, t2, cb)) in dh_builtin_genparams() 162 if (!BN_GENCB_call(cb, 3, 0)) in dh_builtin_genparams() 184 BN_GENCB cb; in DH_generate_parameters() local 190 BN_GENCB_set_old(&cb, callback, cb_arg); in DH_generate_parameters() 192 if (DH_generate_parameters_ex(ret, prime_len, generator, &cb)) in DH_generate_parameters()
|
| /openbsd-src/usr.bin/x99token/ |
| H A D | x99token.c | 182 DES_cblock cb; in predict() local 184 memcpy(&cb, chal, sizeof(cb)); in predict() 186 printf("%.8s: ", (char *)cb); in predict() 187 DES_ecb_encrypt(&cb, &cb, &ks, DES_ENCRYPT); in predict() 189 printf("%c", digits[(cb[i]>>4) & 0xf]); in predict() 190 printf("%c", digits[(cb[i]>>0) & 0xf]); in predict() 194 if ((cb[i] &= 0xf) > 9) in predict() 195 cb[i] -= 10; in predict() 196 cb[i] |= 0x30; in predict() 199 memset(&cb, 0, sizeof(cb)); in predict()
|
| /openbsd-src/sys/dev/usb/ |
| H A D | udl.c | 699 void (*cb)(void *, int, int), void *cbarg) in udl_load_font() 1521 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; in udl_cmd_free_buf() 1523 cb->buf = malloc(UDL_CMD_MAX_XFER_SIZE, M_USBDEV, M_NOWAIT|M_ZERO); in udl_cmd_free_buf() 1524 if (cb->buf == NULL) { in udl_cmd_free_buf() 1529 cb->off = 0; 1530 cb->compblock = 0; in udl_cmd_insert_int_1() 1538 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; 1540 if (cb->buf != NULL) { in udl_cmd_insert_int_2() 1541 free(cb->buf, M_USBDEV, UDL_CMD_MAX_XFER_SIZE); in udl_cmd_insert_int_2() 1542 cb in udl_cmd_insert_int_2() 1503 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_alloc_buf() local 1520 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_free_buf() local 1532 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_int_1() local 1543 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_int_2() local 1555 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_int_3() local 1570 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_int_4() local 1581 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_buf() local 1591 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_buf_comp() local 1691 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_head_comp() local 1715 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_insert_check() local 1740 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_set_xfer_type() local 1748 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_save_offset() local 1757 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_restore_offset() local 1783 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_send() local 1815 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_cmd_send_async() local 2007 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_clear_screen() local 2266 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_fb_buf_write_comp() local 2356 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_fb_off_write_comp() local 2454 struct udl_cmd_buf *cb = &sc->sc_cmd_buf; udl_fb_off_copy_comp() local [all...] |
| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/dd/ |
| H A D | dd_rtl.cpp | 114 Callback cb(thr); in MutexBeforeLock() local 118 ctx->dd->MutexInit(&cb, &h->dd); in MutexBeforeLock() 119 ctx->dd->MutexBeforeLock(&cb, &h->dd, writelock); in MutexBeforeLock() 121 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexBeforeLock() 127 Callback cb(thr); in MutexAfterLock() local 131 ctx->dd->MutexInit(&cb, &h->dd); in MutexAfterLock() 132 ctx->dd->MutexAfterLock(&cb, &h->dd, writelock, trylock); in MutexAfterLock() 134 ReportDeadlock(thr, ctx->dd->GetReport(&cb)); in MutexAfterLock() 140 Callback cb(thr); in MutexBeforeUnlock() local 143 ctx->dd->MutexBeforeUnlock(&cb, &h->dd, writelock); in MutexBeforeUnlock() [all …]
|
| /openbsd-src/usr.bin/tmux/ |
| H A D | control.c | 227 control_free_block(struct control_state *cs, struct control_block *cb) in control_free_block() argument 229 free(cb->line); in control_free_block() 230 TAILQ_REMOVE(&cs->all_blocks, cb, all_entry); in control_free_block() 231 free(cb); in control_free_block() 271 struct control_block *cb, *cb1; in control_discard_pane() local 273 TAILQ_FOREACH_SAFE(cb, &cp->blocks, entry, cb1) { in control_discard_pane() 274 TAILQ_REMOVE(&cp->blocks, cb, entry); in control_discard_pane() 275 control_free_block(cs, cb); in control_discard_pane() 410 struct control_block *cb; in control_write() local 421 cb = xcalloc(1, sizeof *cb); in control_write() [all …]
|
| /openbsd-src/lib/libcrypto/rsa/ |
| H A D | rsa_gen.c | 69 static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb); 72 RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in RSA_generate_key_ex() argument 75 return rsa->meth->rsa_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex() 76 return rsa_builtin_keygen(rsa, bits, e_value, cb); in RSA_generate_key_ex() 81 rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) in rsa_builtin_keygen() argument 127 if (!BN_generate_prime_ex(rsa->p, bitsp, 0, NULL, NULL, cb)) in rsa_builtin_keygen() 135 if (!BN_GENCB_call(cb, 2, n++)) in rsa_builtin_keygen() 138 if (!BN_GENCB_call(cb, 3, 0)) in rsa_builtin_keygen() 149 cb)) in rsa_builtin_keygen() 164 if (!BN_GENCB_call(cb, 2, n++)) in rsa_builtin_keygen() [all …]
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | atomicio.c | 44 int (*cb)(void *, size_t), void *cb_arg) in atomicio6() 59 if (cb != NULL && cb(cb_arg, 0) == -1) { in atomicio6() 74 if (cb != NULL && cb(cb_arg, (size_t)res) == -1) { in atomicio6() 95 int (*cb)(void *, size_t), void *cb_arg) in atomiciov6() 117 if (cb != NULL && cb(cb_arg, 0) == -1) { in atomiciov6() 150 if (cb != NULL && cb(cb_arg, (size_t)res) == -1) { in atomiciov6()
|
| /openbsd-src/usr.bin/openssl/ |
| H A D | gendh.c | 87 static int dh_cb(int p, int n, BN_GENCB *cb); 131 BN_GENCB *cb = NULL; in gendh_main() local 142 if ((cb = BN_GENCB_new()) == NULL) { in gendh_main() 147 BN_GENCB_set(cb, dh_cb, bio_err); in gendh_main() 186 !DH_generate_parameters_ex(dh, numbits, cfg.g, cb)) in gendh_main() 196 BN_GENCB_free(cb); in gendh_main() 203 dh_cb(int p, int n, BN_GENCB *cb) in dh_cb() argument 215 BIO_write(BN_GENCB_get_arg(cb), &c, 1); in dh_cb() 216 (void) BIO_flush(BN_GENCB_get_arg(cb)); in dh_cb()
|