Searched refs:cb (Results 151 - 175 of 497) sorted by relevance

1234567891011>>

/macosx-10.9.5/lsof-52/lsof/dialects/darwin/kmem/
H A Ddnode.c71 static char *cb = (char *)NULL; local
220 if (!cb) {
221 if (!(cb = (char *)malloc((MALLOC_S)(MAXPATHLEN + 1)))) {
226 if (!getcwd(cb, (size_t)(MAXPATHLEN + 1))) {
234 cb[MAXPATHLEN - 1] = '\0';
235 if (!(cbl = (size_t)strlen(cb))) {
247 if ((pl <= cbl) || strncmp(cb, pp, cbl))
251 if (cb[cbl - 1] == '/') {
/macosx-10.9.5/ruby-104/ruby/ext/openssl/
H A Dopenssl_missing.h30 # define PEM_read_bio_DSAPublicKey(bp,x,cb,u) (DSA *)PEM_ASN1_read_bio( \
31 (d2i_of_void *)d2i_DSAPublicKey,PEM_STRING_DSA_PUBLIC,(bp),(void **)(x),(cb),(u))
/macosx-10.9.5/tcl-102/tcl/tcl/generic/
H A DtclTomMath.h421 /* a/b => cb + d == a */
453 /* a/b => cb + d == a */
688 #define mp_prime_random(a, t, size, bbs, cb, dat) mp_prime_random_ex(a, t, ((size) * 8) + 1, (bbs==1)?LTM_PRIME_BBS:0, cb, dat)
705 int mp_prime_random_ex(mp_int *a, int t, int size, int flags, ltm_prime_callback cb, void *dat);
/macosx-10.9.5/vim-53/runtime/syntax/
H A Dvgrindefs.vim22 syn match vgrindefsField ":cb="
/macosx-10.9.5/vim-53/src/
H A Dos_win32.c1805 * If FALSE, still sets cb->IsValid if buffer characteristics were saved.
1809 ConsoleBuffer *cb)
1816 if (cb == NULL)
1819 if (!GetConsoleScreenBufferInfo(g_hConOut, &cb->Info))
1821 cb->IsValid = FALSE;
1824 cb->IsValid = TRUE;
1831 if (!cb->IsValid || cb->Buffer == NULL ||
1832 cb->BufferSize.X != cb
1808 SaveConsoleBuffer( ConsoleBuffer *cb) argument
1897 RestoreConsoleBuffer( ConsoleBuffer *cb, BOOL RestoreScreen) argument
3487 ConsoleBuffer *cb; local
[all...]
/macosx-10.9.5/Heimdal-323.92.1/lib/hcrypto/
H A Dbn.h86 } cb; member in struct:BN_GENCB
H A Ddh.c229 * @param cb Callback parameters to show progress, can be NULL.
237 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) argument
240 return dh->meth->generate_params(dh, prime_len, generator, cb);
429 dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb) argument
H A Drsa-gmp.c447 gmp_rsa_generate_key(RSA *rsa, int bits, BIGNUM *e, BN_GENCB *cb) argument
475 BN_GENCB_call(cb, 2, counter++);
483 BN_GENCB_call(cb, 3, 0);
487 BN_GENCB_call(cb, 2, counter++);
499 BN_GENCB_call(cb, 3, 1);
/macosx-10.9.5/cups-372.4/cups/cups/
H A Dsnmp-private.h130 double timeout, cups_snmp_cb_t cb,
H A Dipp.c1842 * The @code cb@ and @code context@ parameters provide a generic way to "filter" the
1855 ipp_copycb_t cb, /* I - Copy callback or @code NULL@ for none */
1861 DEBUG_printf(("ippCopyAttributes(dst=%p, src=%p, quickcopy=%d, cb=%p, context=%p)",
1862 dst, src, quickcopy, cb, context));
1876 if (!cb || (*cb)(context, dst, srcattr))
2976 ipp_iocb_t cb, /* I - Read callback function */
2992 DEBUG_printf(("ippReadIO(src=%p, cb=%p, blocking=%d, parent=%p, ipp=%p)",
2993 src, cb, blocking, parent, ipp));
3017 if ((*cb)(sr
1851 ippCopyAttributes( ipp_t *dst, ipp_t *src, int quickcopy, ipp_copycb_t cb, void *context) argument
2975 ippReadIO(void *src, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp) argument
5517 ippWriteIO(void *dst, ipp_iocb_t cb, int blocking, ipp_t *parent, ipp_t *ipp) argument
[all...]
/macosx-10.9.5/curl-78.94.1/curl/lib/
H A Dhash.h86 void (*cb)(void *user, void *ptr));
/macosx-10.9.5/libarchive-29/libarchive/libarchive/
H A Dfilter_fork_windows.c74 staInfo.cb = sizeof(staInfo);
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/
H A Ddelete.c190 slap_callback cb = { NULL, NULL, NULL, NULL }; local
191 cb.sc_response = slap_null_cb;
195 op->o_callback = &cb;
H A Dsasl.c365 slap_callback cb = { NULL, sasl_ap_lookup, NULL, NULL }; local
367 cb.sc_private = &sl;
420 op->o_callback = &cb;
461 slap_callback cb = { NULL, slap_null_cb, NULL, NULL }; local
538 op.o_callback = &cb;
805 slap_callback cb = { NULL, sasl_pws_lookup, NULL, NULL }; local
807 cb.sc_private = &sl;
818 op.o_callback = &cb;
1325 slap_callback cb = { NULL }; local
1382 cb
1569 int cb; local
[all...]
/macosx-10.9.5/OpenSSH-186/osslshim/ossl/
H A Dossl-dh.c250 * @param cb Callback parameters to show progress, can be NULL.
256 DH_generate_parameters_ex(DH *dh, int prime_len, int generator, BN_GENCB *cb) argument
259 return (dh->meth->generate_params(dh, prime_len, generator, cb));
459 dh_null_generate_params(DH *dh, int prime_num, int len, BN_GENCB *cb) argument
H A Dossl-pem.c420 pem_password_cb *cb, void *u)
442 if (!PEM_do_header(&cipher, data, &len, cb, u)) {
517 PEM_read_bio_PrivateKey(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) argument
525 if (!PEM_bytes_read_bio(&data, &len, &nm, PEM_STRING_EVP_PKEY, bp, cb, u)) {
698 pkey_str(x), bp, (char *)x, enc, kstr, klen, cb, u));
798 unsigned char *kstr, int klen, pem_password_cb *cb, void *u)
809 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u);
818 unsigned char *kstr, int klen, pem_password_cb *cb, void *u)
829 ret = PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u);
836 PEM_read_RSAPublicKey(FILE *fp, RSA *rsa, pem_password_cb *cb, voi argument
419 PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm, const char *name, BIO *bp, pem_password_cb *cb, void *u) argument
797 PEM_write_bio_RSAPrivateKey(BIO *bp, RSA *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, pem_password_cb *cb, void *u) argument
817 PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc, unsigned char *kstr, int klen, pem_password_cb *cb, void *u) argument
1774 PEM_read_PUBKEY(FILE *fp, EVP_PKEY **pkey, pem_password_cb *cb, void *u) argument
[all...]
/macosx-10.9.5/Security-55471.14.18/libsecurity_apple_csp/open_ssl/openssl/
H A Drsa.h238 int i2d_Netscape_RSA(RSA *a, unsigned char **pp, int (*cb)());
239 RSA *d2i_Netscape_RSA(RSA **a, unsigned char **pp, long length, int (*cb)());
242 RSA *d2i_Netscape_RSA_2(RSA **a, unsigned char **pp, long length, int (*cb)());
H A Dbio.h134 /* callback is int cb(BIO *bio,state,ret); */
221 #define BIO_set_callback(b,cb) ((b)->callback=(cb))
396 #define BIO_set_proxy_cb(b,cb) BIO_callback_ctrl(b,BIO_C_SET_PROXY_PARAM,3,(void *(*cb)()))
476 #define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,(void (*)())(cb))
500 /* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */
/macosx-10.9.5/ruby-104/ruby/ext/dl/lib/dl/
H A Dfunc.rb139 cb = Proc.new{|*args|
152 @cfunc.ptr = set_cdecl_callback(@cfunc.ctype, @stack.size, &cb)
154 @cfunc.ptr = set_stdcall_callback(@cfunc.ctype, @stack.size, &cb)
/macosx-10.9.5/xnu-2422.115.4/bsd/nfs/
H A Dnfs_bio.c1546 struct nfsreq_cbinfo cb; local
1575 cb.rcb_func = async ? nfs_buf_read_rpc_finish : NULL;
1576 cb.rcb_bp = bp;
1592 cb.rcb_args[0] = offset;
1593 cb.rcb_args[1] = len;
1595 cb.rcb_args[2] = nmp->nm_stategenid;
1597 error = nmp->nm_funcs->nf_read_rpc_async(np, boff + offset, len, thd, cred, &cb, &req);
1649 struct nfsreq_cbinfo cb; local
1666 cb = req->r_callback;
1667 bp = cb
2694 struct nfsreq_cbinfo cb; local
2806 struct nfsreq_cbinfo cb; local
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/overlays/
H A Dpcache.c843 slap_callback cb = { NULL, slap_null_cb, NULL, NULL }; local
858 op->o_callback = &cb;
1795 slap_callback cb = { NULL, remove_func, NULL, NULL }; local
1806 op->o_callback = &cb;
1825 for ( qi=cb.sc_private; qi; qi=qnext ) {
2340 slap_callback *cb = op->o_callback; local
2341 struct search_info *si = cb->sc_private;
2426 op->o_tmpfree( cb, op->o_tmpmemctx );
2594 slap_callback cb = { 0, slap_null_cb, 0, 0 }; local
2611 op->o_callback = &cb;
2835 slap_callback cb = { 0 }, *sc; local
2986 slap_callback *cb = op->o_callback; local
3079 slap_callback cb; local
3117 slap_callback *cb; local
3302 slap_callback cb = { NULL, slap_null_cb, NULL, NULL }; local
3393 slap_callback cb = { 0 }; local
4610 slap_callback cb = { 0 }; local
4796 slap_callback cb = { 0 }; local
5518 monitor_callback_t *cb = NULL; local
[all...]
H A Dtranslucent.c402 slap_callback cb = { 0 }; local
569 cb.sc_response = translucent_tag_cb;
570 cb.sc_private = op->orm_modlist;
575 cb.sc_next = op->o_callback;
576 op->o_callback = &cb;
580 op->o_callback = cb.sc_next;
635 slap_callback cb = { 0 }; local
707 cb.sc_response = slap_null_cb;
712 nop.o_callback = &cb;
1067 slap_callback cb local
[all...]
/macosx-10.9.5/Heimdal-323.92.1/lib/gssapi/ntlm/
H A Dinit_sec_context.c308 krb5_data response_data, data, cb; local
325 cb.data = channelbinding;
326 cb.length = sizeof(channelbinding);
328 krb5_data_zero(&cb);
348 ret = krb5_store_data(request, cb);
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/mac/libdes/src/
H A Ddes_opts.c405 /* crypto/des/des_opts.c */ /* Copyright (C) 1995-1997 Eric Young (eay@mincom.oz.au) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@mincom.oz.au). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@mincom.oz.au). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@mincom.oz.au)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tjh@mincom.oz.au)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ /* define PART1, PART2, PART3 or PART4 to build only with a few of the options. * This is for machines with 64k code segment size restrictions. */ #ifndef MSDOS #define TIMES #endif #include <stdio.h> #ifndef MSDOS #include <unistd.h> #else #include <io.h> extern void exit(); #endif #include <signal.h> #ifndef VMS #ifndef _IRIX #include <time.h> #endif #ifdef TIMES #include <sys/types.h> #include <sys/times.h> #endif #else /* VMS */ #include <types.h> struct tms { time_t tms_utime; time_t tms_stime; time_t tms_uchild; /* I dunno... */ time_t tms_uchildsys; /* so these names are a guess :-) */ } #endif #ifndef TIMES #include <sys/timeb.h> #endif #ifdef sun #include <limits.h> #include <sys/param.h> #endif #include "des.h" #include "spr.h" #define DES_DEFAULT_OPTIONS #if !defined(PART1) && !defined(PART2) && !defined(PART3) && !defined(PART4) #define PART1 #define PART2 #define PART3 #define PART4 #endif #ifdef PART1 #undef DES_UNROLL #undef DES_RISC1 #undef DES_RISC2 #undef DES_PTR #undef D_ENCRYPT #define des_encrypt des_encrypt_u4_cisc_idx #define des_encrypt2 des_encrypt2_u4_cisc_idx #define des_encrypt3 des_encrypt3_u4_cisc_idx #define des_decrypt3 des_decrypt3_u4_cisc_idx #undef HEADER_DES_LOCL_H #include "des_enc.c" #define DES_UNROLL #undef DES_RISC1 #undef DES_RISC2 #undef DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u16_cisc_idx #define des_encrypt2 des_encrypt2_u16_cisc_idx #define des_encrypt3 des_encrypt3_u16_cisc_idx #define des_decrypt3 des_decrypt3_u16_cisc_idx #undef HEADER_DES_LOCL_H #include "des_enc.c" #undef DES_UNROLL #define DES_RISC1 #undef DES_RISC2 #undef DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u4_risc1_idx #define des_encrypt2 des_encrypt2_u4_risc1_idx #define des_encrypt3 des_encrypt3_u4_risc1_idx #define des_decrypt3 des_decrypt3_u4_risc1_idx #undef HEADER_DES_LOCL_H #include "des_enc.c" #endif #ifdef PART2 #undef DES_UNROLL #undef DES_RISC1 #define DES_RISC2 #undef DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u4_risc2_idx #define des_encrypt2 des_encrypt2_u4_risc2_idx #define des_encrypt3 des_encrypt3_u4_risc2_idx #define des_decrypt3 des_decrypt3_u4_risc2_idx #undef HEADER_DES_LOCL_H #include "des_enc.c" #define DES_UNROLL #define DES_RISC1 #undef DES_RISC2 #undef DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u16_risc1_idx #define des_encrypt2 des_encrypt2_u16_risc1_idx #define des_encrypt3 des_encrypt3_u16_risc1_idx #define des_decrypt3 des_decrypt3_u16_risc1_idx #undef HEADER_DES_LOCL_H #include "des_enc.c" #define DES_UNROLL #undef DES_RISC1 #define DES_RISC2 #undef DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u16_risc2_idx #define des_encrypt2 des_encrypt2_u16_risc2_idx #define des_encrypt3 des_encrypt3_u16_risc2_idx #define des_decrypt3 des_decrypt3_u16_risc2_idx #undef HEADER_DES_LOCL_H #include "des_enc.c" #endif #ifdef PART3 #undef DES_UNROLL #undef DES_RISC1 #undef DES_RISC2 #define DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u4_cisc_ptr #define des_encrypt2 des_encrypt2_u4_cisc_ptr #define des_encrypt3 des_encrypt3_u4_cisc_ptr #define des_decrypt3 des_decrypt3_u4_cisc_ptr #undef HEADER_DES_LOCL_H #include "des_enc.c" #define DES_UNROLL #undef DES_RISC1 #undef DES_RISC2 #define DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u16_cisc_ptr #define des_encrypt2 des_encrypt2_u16_cisc_ptr #define des_encrypt3 des_encrypt3_u16_cisc_ptr #define des_decrypt3 des_decrypt3_u16_cisc_ptr #undef HEADER_DES_LOCL_H #include "des_enc.c" #undef DES_UNROLL #define DES_RISC1 #undef DES_RISC2 #define DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u4_risc1_ptr #define des_encrypt2 des_encrypt2_u4_risc1_ptr #define des_encrypt3 des_encrypt3_u4_risc1_ptr #define des_decrypt3 des_decrypt3_u4_risc1_ptr #undef HEADER_DES_LOCL_H #include "des_enc.c" #endif #ifdef PART4 #undef DES_UNROLL #undef DES_RISC1 #define DES_RISC2 #define DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u4_risc2_ptr #define des_encrypt2 des_encrypt2_u4_risc2_ptr #define des_encrypt3 des_encrypt3_u4_risc2_ptr #define des_decrypt3 des_decrypt3_u4_risc2_ptr #undef HEADER_DES_LOCL_H #include "des_enc.c" #define DES_UNROLL #define DES_RISC1 #undef DES_RISC2 #define DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u16_risc1_ptr #define des_encrypt2 des_encrypt2_u16_risc1_ptr #define des_encrypt3 des_encrypt3_u16_risc1_ptr #define des_decrypt3 des_decrypt3_u16_risc1_ptr #undef HEADER_DES_LOCL_H #include "des_enc.c" #define DES_UNROLL #undef DES_RISC1 #define DES_RISC2 #define DES_PTR #undef D_ENCRYPT #undef des_encrypt #undef des_encrypt2 #undef des_encrypt3 #undef des_decrypt3 #define des_encrypt des_encrypt_u16_risc2_ptr #define des_encrypt2 des_encrypt2_u16_risc2_ptr #define des_encrypt3 des_encrypt3_u16_risc2_ptr #define des_decrypt3 des_decrypt3_u16_risc2_ptr #undef HEADER_DES_LOCL_H #include "des_enc.c" #endif /* The following if from times(3) man page. It may need to be changed */ #ifndef HZ #ifndef CLK_TCK #ifndef VMS #define HZ 100.0 #else /* VMS */ #define HZ 100.0 #endif #else /* CLK_TCK */ #define HZ ((double)CLK_TCK) #endif #endif #define BUFSIZE ((long)1024) long run=0; #ifndef NOPROTO double Time_F(int s); #else double Time_F(); #endif #ifdef SIGALRM #if defined(__STDC__) || defined(sgi) #define SIGRETTYPE void #else #define SIGRETTYPE int #endif #ifndef NOPROTO SIGRETTYPE sig_done(int sig); #else SIGRETTYPE sig_done(); #endif SIGRETTYPE sig_done(sig) int sig; { signal(SIGALRM,sig_done); run=0; #ifdef LINT sig=sig; #endif } #endif #define START 0 #define STOP 1 double Time_F(s) int s; { double ret; #ifdef TIMES static struct tms tstart,tend; if (s == START) { times(&tstart); return(0); } else { times(&tend); ret=((double)(tend.tms_utime-tstart.tms_utime))/HZ; return((ret == 0.0)?1e-6:ret); } #else /* !times() */ static struct timeb tstart,tend; long i; if (s == START) { ftime(&tstart); return(0); } else { ftime(&tend); i=(long)tend.millitm-(long)tstart.millitm; ret=((double)(tend.time-tstart.time))+((double)i)/1000.0; return((ret == 0.0)?1e-6:ret); } #endif } #ifdef SIGALRM #define print_name(name) fprintf(stderr,"Doing %s's for 10 seconds\n",name); alarm(10); #else #define print_name(name) fprintf(stderr,"Doing %s %ld times\n",name,cb); #endif #define time_it(func,name,index) \ print_name(name); \ Time_F(START); \ for (count=0,run=1; COND(cb); count++) \ { \ unsigned long d[2]; \ func(d,&(sch[0]),DES_ENCRYPT); \ } \ tm[index]=Time_F(STOP); \ fprintf(stderr,"%ld %s's in %.2f second\n",count,name,tm[index]); \ tm[index]=((double)COUNT(cb))/tm[index]; #define print_it(name,index) \ fprintf(stderr,"%s bytes per sec = %12.2f (%5.1fuS)\n",name, \ tm[index]*8,1.0e6/tm[index]); int main(argc,argv) int argc; char **argv; { long count; static unsigned char buf[BUFSIZE]; static des_cblock key ={0x12,0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0}; static des_cblock key2={0x34,0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12}; static des_cblock key3={0x56,0x78,0x9a,0xbc,0xde,0xf0,0x12,0x34}; des_key_schedule sch,sch2,sch3; double d,tm[16],max=0; int rank[16]; char *str[16]; int max_idx=0,i,num=0,j; #ifndef SIGALARM long ca,cb,cc,cd,ce; #endif for (i=0; i<12; i++) { tm[i]=0.0; rank[i]=0; } #ifndef TIMES fprintf(stderr,"To get the most acurate results, try to run this\n"); fprintf(stderr,"program when this computer is idle.\n"); #endif des_set_key((C_Block *)key,sch); des_set_key((C_Block *)key2,sch2); des_set_key((C_Block *)key3,sch3); #ifndef SIGALRM fprintf(stderr,"First we calculate the approximate speed ...\n"); des_set_key((C_Block *)key,sch); count=10; do { long i; unsigned long data[2]; count*=2; Time_F(START); for (i=count; i; i--) des_encrypt(data,&(sch[0]),DES_ENCRYPT); d=Time_F(STOP); } while (d < 3.0); ca=count; cb=count*3; cc=count*3*8/BUFSIZE+1; cd=count*8/BUFSIZE+1; ce=count/20+1; #define COND(d) (count ! (…)
1 /* crypto/des/des_opts.c */ variable
/macosx-10.9.5/bind9-45.100/bind9/lib/dns/
H A Dopenssldh_link.c154 progress_cb(int p, int n, BN_GENCB *cb) argument
163 u.dptr = cb->arg;
174 BN_GENCB cb; local
210 BN_GENCB_set_old(&cb, NULL, NULL);
213 BN_GENCB_set(&cb, &progress_cb, u.dptr);
217 &cb)) {

Completed in 395 milliseconds

1234567891011>>