Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 248) sorted by relevance

12345678910

/external/chromium/net/third_party/nss/ssl/
Dsslsecur.c259 ssl_ResetSecurityInfo(&ss->sec, PR_TRUE); in SSL_ResetHandshake()
830 ss->sec.blockSize = 1; in ssl_CreateSecurityInfo()
831 ss->sec.blockShift = 0; in ssl_CreateSecurityInfo()
834 status = sslBuffer_Grow(&ss->sec.writeBuf, 4096); in ssl_CreateSecurityInfo()
843 ss->sec.send = os->sec.send; in ssl_CopySecurityInfo()
844 ss->sec.isServer = os->sec.isServer; in ssl_CopySecurityInfo()
845 ss->sec.keyBits = os->sec.keyBits; in ssl_CopySecurityInfo()
846 ss->sec.secretKeyBits = os->sec.secretKeyBits; in ssl_CopySecurityInfo()
848 ss->sec.peerCert = CERT_DupCertificate(os->sec.peerCert); in ssl_CopySecurityInfo()
849 if (os->sec.peerCert && !ss->sec.peerCert) in ssl_CopySecurityInfo()
[all …]
Dsslcon.c461 ssl2_CreateMAC(sslSecurityInfo *sec, SECItem *readKey, SECItem *writeKey, in ssl2_CreateMAC() argument
472 sec->hash = HASH_GetHashObject(HASH_AlgMD5); in ssl2_CreateMAC()
473 SECITEM_CopyItem(0, &sec->sendSecret, writeKey); in ssl2_CreateMAC()
474 SECITEM_CopyItem(0, &sec->rcvSecret, readKey); in ssl2_CreateMAC()
481 sec->hashcx = (*sec->hash->create)(); in ssl2_CreateMAC()
482 if (sec->hashcx == NULL) in ssl2_CreateMAC()
503 if (len > ss->sec.ci.sendBuf.space) { in ssl2_GetSendBuffer()
504 rv = sslBuffer_Grow(&ss->sec.ci.sendBuf, len); in ssl2_GetSendBuffer()
544 rv = (*ss->sec.send)(ss, msg, sizeof(msg), 0); in ssl2_SendErrorMessage()
566 if (ss->sec.ci.sentFinished == 0) { in ssl2_SendClientFinishedMessage()
[all …]
Dsslgathr.c109 PORT_Assert(ss->sec.hash != 0); in ssl2_GatherData()
230 - ss->sec.hash->length; in ssl2_GatherData()
259 if (gs->count & (ss->sec.blockSize - 1)) { in ssl2_GatherData()
263 ss->sec.blockSize)); in ssl2_GatherData()
278 rv = (*ss->sec.dec)(ss->sec.readcx, pBuf, &nout, gs->offset, in ssl2_GatherData()
289 macLen = ss->sec.hash->length; in ssl2_GatherData()
291 PRUint32 sequenceNumber = ss->sec.rcvSequence++; in ssl2_GatherData()
299 (*ss->sec.hash->begin)(ss->sec.hashcx); in ssl2_GatherData()
300 (*ss->sec.hash->update)(ss->sec.hashcx, ss->sec.rcvSecret.data, in ssl2_GatherData()
301 ss->sec.rcvSecret.len); in ssl2_GatherData()
[all …]
Dnotes.txt65 sec = ss->sec
66 ci = ss->sec->ci /* connect info */
71 sec->writeBuf outgoing ssl records are constructed here and encrypted in
101 sec->hash*
102 sec->hashcx (ptr and data)
103 sec->enc
104 sec->writecx* (ptr and content)
105 sec->sendSecret*(ptr and content)
106 sec->sendSequence locked by xmitBufLock
107 sec->blockSize
[all …]
Dsslauth.c56 if (ss->opt.useSecurity && ss->sec.peerCert) { in SSL_PeerCertificate()
57 return CERT_DupCertificate(ss->sec.peerCert); in SSL_PeerCertificate()
75 if (ss->sec.localCert) { in SSL_LocalCertificate()
76 return CERT_DupCertificate(ss->sec.localCert); in SSL_LocalCertificate()
78 if (ss->sec.ci.sid && ss->sec.ci.sid->localCert) { in SSL_LocalCertificate()
79 return CERT_DupCertificate(ss->sec.ci.sid->localCert); in SSL_LocalCertificate()
115 cipherName = ssl_cipherName[ss->sec.cipherType]; in SSL_SecurityStatus()
117 cipherName = ssl3_cipherName[ss->sec.cipherType]; in SSL_SecurityStatus()
129 *kp0 = ss->sec.keyBits; in SSL_SecurityStatus()
133 *kp1 = ss->sec.secretKeyBits; in SSL_SecurityStatus()
[all …]
Dssl3con.c645 isServer = (PRBool)(ss->sec.isServer != 0); in ssl3_config_match_init()
1265 ss->sec.keyBits = pwSpec->cipher_def->key_size * BPB; in ssl3_SetupPendingCipherSpec()
1266 ss->sec.secretKeyBits = pwSpec->cipher_def->secret_key_size * BPB; in ssl3_SetupPendingCipherSpec()
1267 ss->sec.cipherType = cipher; in ssl3_SetupPendingCipherSpec()
1442 PRBool server_encrypts = ss->sec.isServer; in ssl3_InitPendingContextsBypass()
1574 pwSpec->encodeContext = (ss->sec.isServer) ? serverContext : clientContext; in ssl3_InitPendingContextsBypass()
1575 pwSpec->decodeContext = (ss->sec.isServer) ? clientContext : serverContext; in ssl3_InitPendingContextsBypass()
1688 (ss->sec.isServer ? CKA_ENCRYPT : CKA_DECRYPT), in ssl3_InitPendingContextsPKCS11()
1711 (ss->sec.isServer ? CKA_DECRYPT : CKA_ENCRYPT), in ssl3_InitPendingContextsPKCS11()
1725 pwSpec->encodeContext = (ss->sec.isServer) ? serverContext : clientContext; in ssl3_InitPendingContextsPKCS11()
[all …]
/external/skia/src/core/
DSkBitmapProcState.h120 #define PACK_TWO_SHORTS(pri, sec) ((pri) << 16 | (sec)) argument
124 #define PACK_TWO_SHORTS(pri, sec) ((pri) | ((sec) << 16)) argument
130 static inline uint32_t pack_two_shorts(U16CPU pri, U16CPU sec) { in pack_two_shorts() argument
132 SkASSERT((uint16_t)sec == sec); in pack_two_shorts()
133 return PACK_TWO_SHORTS(pri, sec); in pack_two_shorts()
136 #define pack_two_shorts(pri, sec) PACK_TWO_SHORTS(pri, sec) argument
/external/iproute2/examples/
Dcbqinit.eth125 $TC class add dev $DEVICE parent 1:0 classid :1 est 1sec 8sec cbq \
35 $TC class add dev $DEVICE parent 1:1 classid :2 est 1sec 8sec cbq \
47 $TC class add dev $DEVICE parent 1:1 classid :3 est 2sec 16sec cbq \
55 $TC class add dev $DEVICE parent 1:1 classid :4 est 1sec 8sec cbq \
73 $TC class add dev $DEVICE parent 1:7FFE classid 1:7FFF est 4sec 32sec cbq \
/external/wpa_supplicant/
Dos.h25 void os_sleep(os_time_t sec, os_time_t usec);
28 os_time_t sec; member
43 ((a)->sec < (b)->sec || \
44 ((a)->sec == (b)->sec && (a)->usec < (b)->usec))
47 (res)->sec = (a)->sec - (b)->sec; \
50 (res)->sec--; \
70 int os_mktime(int year, int month, int day, int hour, int min, int sec,
Dos_win32.c21 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
23 if (sec) in os_sleep()
24 Sleep(sec * 1000); in os_sleep()
48 t->sec = (os_time_t) (tt / 1000000); in os_get_time()
55 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
63 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
64 sec > 60) in os_mktime()
73 tm.tm_sec = sec; in os_mktime()
Dpmksa_cache.c94 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { in pmksa_cache_expire()
116 int sec; in pmksa_cache_set_expiration() local
125 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration()
126 if (sec < 0) in pmksa_cache_set_expiration()
127 sec = 0; in pmksa_cache_set_expiration()
128 eloop_register_timeout(sec + 1, 0, pmksa_cache_expire, pmksa, NULL); in pmksa_cache_set_expiration()
133 sec = pmksa->pmksa->reauth_time - now.sec; in pmksa_cache_set_expiration()
134 if (sec < 0) in pmksa_cache_set_expiration()
135 sec = 0; in pmksa_cache_set_expiration()
136 eloop_register_timeout(sec, 0, pmksa_cache_reauth, pmksa, in pmksa_cache_set_expiration()
[all …]
Dos_unix.c25 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
27 if (sec) in os_sleep()
28 sleep(sec); in os_sleep()
39 t->sec = tv.tv_sec; in os_get_time()
45 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
53 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
54 sec > 60) in os_mktime()
63 tm.tm_sec = sec; in os_mktime()
/external/wpa_supplicant_6/wpa_supplicant/src/utils/
Dos.h25 void os_sleep(os_time_t sec, os_time_t usec);
28 os_time_t sec; member
43 ((a)->sec < (b)->sec || \
44 ((a)->sec == (b)->sec && (a)->usec < (b)->usec))
47 (res)->sec = (a)->sec - (b)->sec; \
50 (res)->sec--; \
70 int os_mktime(int year, int month, int day, int hour, int min, int sec,
Dos_win32.c21 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
23 if (sec) in os_sleep()
24 Sleep(sec * 1000); in os_sleep()
48 t->sec = (os_time_t) (tt / 1000000); in os_get_time()
55 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
63 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
64 sec > 60) in os_mktime()
73 tm.tm_sec = sec; in os_mktime()
Dos_unix.c25 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
27 if (sec) in os_sleep()
28 sleep(sec); in os_sleep()
39 t->sec = tv.tv_sec; in os_get_time()
45 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
53 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
54 sec > 60) in os_mktime()
63 tm.tm_sec = sec; in os_mktime()
/external/kernel-headers/original/linux/
Dktime.h51 s32 sec, nsec; member
53 s32 nsec, sec;
140 return (ktime_t) { .tv = { .sec = secs, .nsec = nsecs } }; in ktime_set()
204 return (ktime_t) { .tv = { .sec = (s32)ts.tv_sec, in timespec_to_ktime()
216 return (ktime_t) { .tv = { .sec = (s32)tv.tv_sec, in timeval_to_ktime()
228 return (struct timespec) { .tv_sec = (time_t) kt.tv.sec, in ktime_to_timespec()
241 .tv_sec = (time_t) kt.tv.sec, in ktime_to_timeval()
253 return (u64) kt.tv.sec * NSEC_PER_SEC + kt.tv.nsec; in ktime_to_ns()
Djiffies.h314 unsigned long sec = value->tv_sec; in timespec_to_jiffies() local
317 if (sec >= MAX_SEC_IN_JIFFIES){ in timespec_to_jiffies()
318 sec = MAX_SEC_IN_JIFFIES; in timespec_to_jiffies()
321 return (((u64)sec * SEC_CONVERSION) + in timespec_to_jiffies()
353 unsigned long sec = value->tv_sec; in timeval_to_jiffies() local
356 if (sec >= MAX_SEC_IN_JIFFIES){ in timeval_to_jiffies()
357 sec = MAX_SEC_IN_JIFFIES; in timeval_to_jiffies()
360 return (((u64)sec * SEC_CONVERSION) + in timeval_to_jiffies()
/external/wpa_supplicant_6/wpa_supplicant/src/rsn_supp/
Dpmksa_cache.c99 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { in pmksa_cache_expire()
121 int sec; in pmksa_cache_set_expiration() local
130 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration()
131 if (sec < 0) in pmksa_cache_set_expiration()
132 sec = 0; in pmksa_cache_set_expiration()
133 eloop_register_timeout(sec + 1, 0, pmksa_cache_expire, pmksa, NULL); in pmksa_cache_set_expiration()
138 sec = pmksa->pmksa->reauth_time - now.sec; in pmksa_cache_set_expiration()
139 if (sec < 0) in pmksa_cache_set_expiration()
140 sec = 0; in pmksa_cache_set_expiration()
141 eloop_register_timeout(sec, 0, pmksa_cache_reauth, pmksa, in pmksa_cache_set_expiration()
[all …]
/external/tcpdump/
Dprint-timed.c51 long sec, usec; in timed_print() local
89 sec = EXTRACT_32BITS(&tsp->tsp_time.tv_sec); in timed_print()
95 if (sec < 0 && usec != 0) { in timed_print()
96 sec++; in timed_print()
97 if (sec == 0) in timed_print()
101 printf("%ld.%06ld", sec, usec); in timed_print()
/external/v8/src/
Ddate.js265 function MakeTime(hour, min, sec, ms) { argument
268 if (!$isFinite(sec)) return $NaN;
272 + TO_INTEGER(sec) * msPerSecond
910 function DateSetSeconds(sec, ms) { argument
912 sec = ToNumber(sec);
914 var time = MakeTime(HOUR_FROM_TIME(t), MIN_FROM_TIME(t), sec, ms);
920 function DateSetUTCSeconds(sec, ms) { argument
922 sec = ToNumber(sec);
924 var time = MakeTime(HOUR_FROM_TIME(t), MIN_FROM_TIME(t), sec, ms);
930 function DateSetMinutes(min, sec, ms) { argument
[all …]
/external/webkit/JavaScriptCore/tests/mozilla/ecma/Date/
D15.9.5.30-1.js119 function addNewTestCase( time, hours, min, sec, ms, DateString) { argument
120 var UTCDate = UTCDateFromTime( SetHours( time, hours, min, sec, ms ));
121 var LocalDate = LocalDateFromTime( SetHours( time, hours, min, sec, ms ));
128 if ( sec == void 0 ) {
132 DateCase.setHours( hours, min, sec );
134 DateCase.setHours( hours, min, sec, ms );
203 function SetHours( t, hour, min, sec, ms ) { argument
207 var SEC = ( sec == void 0) ? SecFromTime(TIME) : Number(sec);
D15.9.5.28-1.js126 function addNewTestCase( time, min, sec, ms, DateString, UTCDate, LocalDate) { argument
129 if ( sec == void 0 ) {
133 DateCase.setMinutes( min, sec );
135 DateCase.setMinutes( min, sec, ms );
206 function SetMinutes( t, min, sec, ms ) { argument
209 var SEC = ( sec == void 0) ? SecFromTime(TIME) : Number(sec);
D15.9.5.29-1.js123 function addNewTestCase( time, min, sec, ms, DateString, UTCDate, LocalDate) { argument
126 if ( sec == void 0 ) {
130 DateCase.setUTCMinutes( min, sec );
132 DateCase.setUTCMinutes( min, sec, ms );
200 function SetUTCMinutes( t, min, sec, ms ) { argument
203 var SEC = ( sec == void 0) ? SecFromTime(TIME) : Number(sec);
/external/blktrace/btt/doc/
Dbtt.tex30 \section{\label{sec:intro}Introduction}
55 section~\ref{sec:cmd-line}), as we felt that discussing some of the
66 \newpage\section{\label{sec:getting-started}Getting Started}
78 will use \texttt{btt} with -- section~\ref{sec:o-D} shows how you
102 \newpage\section{\label{sec:output-overview}Output Overview}
347 \subsection*{\label{sec:detailed-data}Detailed Data}
350 \texttt{--all-data} or \texttt{-A} argument (see section~\ref{sec:o-A})
426 \newpage\section{\label{sec:data-files}Data Files Output}
434 provided in section~\ref{sec:activity}.
437 incoming IO requests, for more information see section~\ref{sec:qhist}.
[all …]
/external/blktrace/btt/
Diostat.c104 avgrq_sz = (double)(sp->sec[0] + sp->sec[1]) / nios; in __dump_stats()
123 fprintf(iostat_ofp, "%9.2lf ", (double)sp->sec[1] / dt); in __dump_stats()
124 fprintf(iostat_ofp, "%9.2lf ", (double)sp->sec[0] / dt); in __dump_stats()
125 fprintf(iostat_ofp, "%9.2lf ", (double)(sp->sec[1] / 2) / dt); in __dump_stats()
126 fprintf(iostat_ofp, "%9.2lf ", (double)(sp->sec[0] / 2) / dt); in __dump_stats()
138 sp->sec[0] = sp->sec[1] = 0; in __dump_stats()
151 asp->sec_s[i] += ((double)sp->sec[i] / dt); in __dump_stats()
260 ADD_STAT(dip, sec[rw], iop->t.bytes >> 9); in iostat_issue()

12345678910