Home
last modified time | relevance | path

Searched refs:sk (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/external/boringssl/src/include/openssl/
Dstack_macros.h29 #define sk_ACCESS_DESCRIPTION_num(sk) \ argument
30 sk_num(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk))
32 #define sk_ACCESS_DESCRIPTION_zero(sk) \ argument
33 sk_zero(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk));
35 #define sk_ACCESS_DESCRIPTION_value(sk, i) \ argument
37 CHECKED_CAST(_STACK *, const STACK_OF(ACCESS_DESCRIPTION) *, sk), (i)))
39 #define sk_ACCESS_DESCRIPTION_set(sk, i, p) \ argument
41 CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk), (i), \
44 #define sk_ACCESS_DESCRIPTION_free(sk) \ argument
45 sk_free(CHECKED_CAST(_STACK *, STACK_OF(ACCESS_DESCRIPTION) *, sk))
[all …]
Dstack.h209 OPENSSL_EXPORT size_t sk_num(const _STACK *sk);
213 OPENSSL_EXPORT void sk_zero(_STACK *sk);
217 OPENSSL_EXPORT void *sk_value(const _STACK *sk, size_t i);
221 OPENSSL_EXPORT void *sk_set(_STACK *sk, size_t i, void *p);
225 OPENSSL_EXPORT void sk_free(_STACK *sk);
229 OPENSSL_EXPORT void sk_pop_free(_STACK *sk, void (*free_func)(void *));
234 OPENSSL_EXPORT size_t sk_insert(_STACK *sk, void *p, size_t where);
239 OPENSSL_EXPORT void *sk_delete(_STACK *sk, size_t where);
244 OPENSSL_EXPORT void *sk_delete_ptr(_STACK *sk, void *p);
252 OPENSSL_EXPORT int sk_find(_STACK *sk, size_t *out_index, void *p);
[all …]
/external/boringssl/src/crypto/stack/
Dstack.c95 size_t sk_num(const _STACK *sk) { in sk_num() argument
96 if (sk == NULL) { in sk_num()
99 return sk->num; in sk_num()
102 void sk_zero(_STACK *sk) { in sk_zero() argument
103 if (sk == NULL || sk->num == 0) { in sk_zero()
106 memset(sk->data, 0, sizeof(void*) * sk->num); in sk_zero()
107 sk->num = 0; in sk_zero()
108 sk->sorted = 0; in sk_zero()
111 void *sk_value(const _STACK *sk, size_t i) { in sk_value() argument
112 if (!sk || i >= sk->num) { in sk_value()
[all …]
Dmake_macros.sh39 sk_num(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk))
42 sk_zero(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk));
45 ((${ptrtype}) sk_value(CHECKED_CAST(_STACK*, const STACK_OF(${type})*, sk), (i)))
48 …((${ptrtype}) sk_set(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk), (i), CHECKED_CAST(void*, ${ptr…
51 sk_free(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk))
54 …sk_pop_free(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk), CHECKED_CAST(void (*) (void*), void (*)…
57 …sk_insert(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk), CHECKED_CAST(void*, ${ptrtype}, p), (wher…
60 ((${ptrtype}) sk_delete(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk), (where)))
63 …((${ptrtype}) sk_delete_ptr(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk), CHECKED_CAST(void*, ${p…
66 …sk_find(CHECKED_CAST(_STACK*, STACK_OF(${type})*, sk), (out_index), CHECKED_CAST(void*, ${ptrtype}…
[all …]
/external/libnl/lib/
Dsocket.c92 struct nl_sock *sk; in __alloc_socket() local
94 sk = calloc(1, sizeof(*sk)); in __alloc_socket()
95 if (!sk) in __alloc_socket()
98 sk->s_fd = -1; in __alloc_socket()
99 sk->s_cb = cb; in __alloc_socket()
100 sk->s_local.nl_family = AF_NETLINK; in __alloc_socket()
101 sk->s_peer.nl_family = AF_NETLINK; in __alloc_socket()
102 sk->s_seq_expect = sk->s_seq_next = time(0); in __alloc_socket()
103 sk->s_local.nl_pid = generate_local_port(); in __alloc_socket()
104 if (sk->s_local.nl_pid == UINT_MAX) { in __alloc_socket()
[all …]
Dnl.c106 int nl_connect(struct nl_sock *sk, int protocol) in nl_connect() argument
111 sk->s_fd = socket(AF_NETLINK, SOCK_RAW, protocol); in nl_connect()
112 if (sk->s_fd < 0) { in nl_connect()
117 if (!(sk->s_flags & NL_SOCK_BUFSIZE_SET)) { in nl_connect()
118 err = nl_socket_set_buffer_size(sk, 0, 0); in nl_connect()
123 err = bind(sk->s_fd, (struct sockaddr*) &sk->s_local, in nl_connect()
124 sizeof(sk->s_local)); in nl_connect()
130 addrlen = sizeof(sk->s_local); in nl_connect()
131 err = getsockname(sk->s_fd, (struct sockaddr *) &sk->s_local, in nl_connect()
138 if (addrlen != sizeof(sk->s_local)) { in nl_connect()
[all …]
/external/e2fsprogs/misc/
Dfindsuper.c101 #define WHY(fmt, arg...) { printf("\r%Ld: " fmt, sk, ##arg) ; continue; }
117 loff_t sk=0, skl=0; in main() local
165 sk = skl = strtoll(argv[optind], &s, 0) << 10; in main()
173 if (sk < 0) { in main()
174 fprintf(stderr, _("startkb should be positive, not %llu\n"),sk); in main()
185 printf(_("starting at %llu, with %u byte increments\n"), sk, skiprate); in main()
190 for (; lseek64(fd, sk, SEEK_SET) != -1 && in main()
191 read(fd, &ext2, 512) == 512; sk += skiprate) { in main()
196 if (sk && !(sk & (interval - 1))) { in main()
205 printf("\r%11Lu: %8LukB/s @ %s", sk, in main()
[all …]
/external/boringssl/src/crypto/x509/
Dx509_v3.c82 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, const ASN1_OBJECT *obj, in X509v3_get_ext_by_OBJ() argument
88 if (sk == NULL) return(-1); in X509v3_get_ext_by_OBJ()
92 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ()
95 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_OBJ()
102 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
108 if (sk == NULL) return(-1); in X509v3_get_ext_by_critical()
112 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical()
115 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_critical()
146 STACK_OF(X509_EXTENSION) *sk=NULL; in STACK_OF()
156 if ((sk=sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF()
[all …]
Dx509name.c113 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_get_index_by_OBJ()
118 sk=name->entries; in X509_NAME_get_index_by_OBJ()
119 n=sk_X509_NAME_ENTRY_num(sk); in X509_NAME_get_index_by_OBJ()
122 ne=sk_X509_NAME_ENTRY_value(sk,lastpos); in X509_NAME_get_index_by_OBJ()
141 STACK_OF(X509_NAME_ENTRY) *sk; in X509_NAME_delete_entry()
145 sk=name->entries; in X509_NAME_delete_entry()
146 ret=sk_X509_NAME_ENTRY_delete(sk,loc); in X509_NAME_delete_entry()
147 n=sk_X509_NAME_ENTRY_num(sk); in X509_NAME_delete_entry()
153 set_prev=(sk_X509_NAME_ENTRY_value(sk,loc-1))->set; in X509_NAME_delete_entry()
156 set_next=sk_X509_NAME_ENTRY_value(sk,loc)->set; in X509_NAME_delete_entry()
[all …]
Dx509_lu.c240 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_free()
252 sk=vfy->get_cert_methods; in X509_STORE_free()
253 for (j=0; j<sk_X509_LOOKUP_num(sk); j++) in X509_STORE_free()
255 lu=sk_X509_LOOKUP_value(sk,j); in X509_STORE_free()
259 sk_X509_LOOKUP_free(sk); in X509_STORE_free()
270 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_add_lookup()
273 sk=v->get_cert_methods; in X509_STORE_add_lookup()
274 for (i=0; i<sk_X509_LOOKUP_num(sk); i++) in X509_STORE_add_lookup()
276 lu=sk_X509_LOOKUP_value(sk,i); in X509_STORE_add_lookup()
504 STACK_OF(X509) *sk; in STACK_OF()
[all …]
Dx509_att.c81 int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, const ASN1_OBJECT *obj, in X509at_get_attr_by_OBJ() argument
87 if (sk == NULL) return(-1); in X509at_get_attr_by_OBJ()
91 n=sk_X509_ATTRIBUTE_num(sk); in X509at_get_attr_by_OBJ()
94 ex=sk_X509_ATTRIBUTE_value(sk,lastpos); in X509at_get_attr_by_OBJ()
123 STACK_OF(X509_ATTRIBUTE) *sk=NULL; in STACK_OF()
133 if ((sk=sk_X509_ATTRIBUTE_new_null()) == NULL) in STACK_OF()
137 sk= *x; in STACK_OF()
141 if (!sk_X509_ATTRIBUTE_push(sk,new_attr)) in STACK_OF()
144 *x=sk; in STACK_OF()
145 return(sk); in STACK_OF()
[all …]
/external/boringssl/src/crypto/
Dex_data.c173 if (ad->sk == NULL) { in CRYPTO_set_ex_data()
174 ad->sk = sk_void_new_null(); in CRYPTO_set_ex_data()
175 if (ad->sk == NULL) { in CRYPTO_set_ex_data()
181 n = sk_void_num(ad->sk); in CRYPTO_set_ex_data()
185 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data()
191 sk_void_set(ad->sk, index, val); in CRYPTO_set_ex_data()
196 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) { in CRYPTO_get_ex_data()
199 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data()
231 ad->sk = NULL; in CRYPTO_new_ex_data()
236 if (from->sk == NULL) { in CRYPTO_dup_ex_data()
[all …]
/external/libnl/lib/route/
Dcls.c70 static int cls_request_update(struct nl_cache *cache, struct nl_sock *sk) in cls_request_update() argument
78 return nl_send_simple(sk, RTM_GETTFILTER, NLM_F_DUMP, &tchdr, in cls_request_update()
160 int rtnl_cls_add(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_add() argument
168 err = nl_send_auto_complete(sk, msg); in rtnl_cls_add()
173 return nl_wait_for_ack(sk); in rtnl_cls_add()
207 int rtnl_cls_change(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_change() argument
215 err = nl_send_auto_complete(sk, msg); in rtnl_cls_change()
220 return nl_wait_for_ack(sk); in rtnl_cls_change()
255 int rtnl_cls_delete(struct nl_sock *sk, struct rtnl_cls *cls, int flags) in rtnl_cls_delete() argument
263 err = nl_send_auto_complete(sk, msg); in rtnl_cls_delete()
[all …]
Dqdisc.c131 static int qdisc_request_update(struct nl_cache *c, struct nl_sock *sk) in qdisc_request_update() argument
138 return nl_send_simple(sk, RTM_GETQDISC, NLM_F_DUMP, &tchdr, in qdisc_request_update()
222 int rtnl_qdisc_add(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_add() argument
231 err = nl_send_auto_complete(sk, msg); in rtnl_qdisc_add()
236 return wait_for_ack(sk); in rtnl_qdisc_add()
278 int rtnl_qdisc_change(struct nl_sock *sk, struct rtnl_qdisc *qdisc, in rtnl_qdisc_change() argument
287 err = nl_send_auto_complete(sk, msg); in rtnl_qdisc_change()
292 return wait_for_ack(sk); in rtnl_qdisc_change()
352 int rtnl_qdisc_delete(struct nl_sock *sk, struct rtnl_qdisc *qdisc) in rtnl_qdisc_delete() argument
360 err = nl_send_auto_complete(sk, msg); in rtnl_qdisc_delete()
[all …]
Dclass.c62 static int class_request_update(struct nl_cache *cache, struct nl_sock *sk) in class_request_update() argument
69 return nl_send_simple(sk, RTM_GETTCLASS, NLM_F_DUMP, &tchdr, in class_request_update()
144 int rtnl_class_add(struct nl_sock *sk, struct rtnl_class *class, int flags) in rtnl_class_add() argument
152 err = nl_send_auto_complete(sk, msg); in rtnl_class_add()
157 return wait_for_ack(sk); in rtnl_class_add()
198 int rtnl_class_delete(struct nl_sock *sk, struct rtnl_class *class) in rtnl_class_delete() argument
206 err = nl_send_auto_complete(sk, msg); in rtnl_class_delete()
211 return wait_for_ack(sk); in rtnl_class_delete()
232 int rtnl_class_alloc_cache(struct nl_sock *sk, int ifindex, in rtnl_class_alloc_cache() argument
244 if (sk && (err = nl_cache_refill(sk, cache)) < 0) { in rtnl_class_alloc_cache()
Droute.c75 int rtnl_route_alloc_cache(struct nl_sock *sk, int family, int flags, in rtnl_route_alloc_cache() argument
87 if (sk && (err = nl_cache_refill(sk, cache)) < 0) { in rtnl_route_alloc_cache()
128 int rtnl_route_add(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_add() argument
136 err = nl_send_auto_complete(sk, msg); in rtnl_route_add()
141 return wait_for_ack(sk); in rtnl_route_add()
150 int rtnl_route_delete(struct nl_sock *sk, struct rtnl_route *route, int flags) in rtnl_route_delete() argument
158 err = nl_send_auto_complete(sk, msg); in rtnl_route_delete()
163 return wait_for_ack(sk); in rtnl_route_delete()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DKSSecretKeyEntryTest.java49 SecretKey sk = null; in testSecretKeyEntry() local
51 new KeyStore.SecretKeyEntry(sk); in testSecretKeyEntry()
62 SecretKey sk = new tmpSecretKey(); in testGetSecretKey() local
63 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testGetSecretKey()
64 assertEquals("Incorrect SecretKey", sk, ske.getSecretKey()); in testGetSecretKey()
72 SecretKey sk = new tmpSecretKey(); in testToString() local
73 KeyStore.SecretKeyEntry ske = new KeyStore.SecretKeyEntry(sk); in testToString()
/external/fio/
Dserver.c111 static int fio_sendv_data(int sk, struct iovec *iov, int count) in fio_sendv_data() argument
117 ret = writev(sk, iov, count); in fio_sendv_data()
150 int fio_send_data(int sk, const void *p, unsigned int len) in fio_send_data() argument
156 return fio_sendv_data(sk, &iov, 1); in fio_send_data()
159 int fio_recv_data(int sk, void *p, unsigned int len) in fio_recv_data() argument
162 int ret = recv(sk, p, len, MSG_WAITALL); in fio_recv_data()
223 struct fio_net_cmd *fio_net_recv_cmd(int sk) in fio_net_recv_cmd() argument
232 ret = fio_recv_data(sk, &cmd, sizeof(cmd)); in fio_net_recv_cmd()
276 ret = fio_recv_data(sk, pdu, cmd.pdu_len); in fio_net_recv_cmd()
418 static int fio_net_send_simple_stack_cmd(int sk, uint16_t opcode, uint64_t tag) in fio_net_send_simple_stack_cmd() argument
[all …]
/external/icu/icu4c/source/test/cintltst/
Dccolltst.c57 static char* dumpSk(uint8_t *sourceKey, char *sk) { in dumpSk() argument
61 *sk = 0; in dumpSk()
64 sprintf(sk+2*i, "%02X", sourceKey[i]); in dumpSk()
66 return sk; in dumpSk()
125 char sk[10000]; in reportCResult() local
126 log_verbose("SortKey1: %s\n", dumpSk(sourceKey, sk)); in reportCResult()
127 log_verbose("SortKey2: %s\n", dumpSk(targetKey, sk)); in reportCResult()
/external/boringssl/src/crypto/asn1/
Dtasn_enc.c68 static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out,
319 STACK_OF(ASN1_VALUE) *sk = (STACK_OF(ASN1_VALUE) *)*pval; in asn1_template_ex_i2d()
354 for (j = 0; j < sk_ASN1_VALUE_num(sk); j++) in asn1_template_ex_i2d()
356 skitem = sk_ASN1_VALUE_value(sk, j); in asn1_template_ex_i2d()
377 asn1_set_seq_out(sk, out, skcontlen, ASN1_ITEM_ptr(tt->item), in asn1_template_ex_i2d()
438 static int asn1_set_seq_out(STACK_OF(ASN1_VALUE) *sk, unsigned char **out, in asn1_set_seq_out() argument
449 if (sk_ASN1_VALUE_num(sk) < 2) in asn1_set_seq_out()
453 derlst = OPENSSL_malloc(sk_ASN1_VALUE_num(sk) in asn1_set_seq_out()
468 for (i = 0; i < sk_ASN1_VALUE_num(sk); i++) in asn1_set_seq_out()
470 skitem = sk_ASN1_VALUE_value(sk, i); in asn1_set_seq_out()
[all …]
/external/boringssl/src/crypto/x509v3/
Dv3_conf.c329 STACK_OF(X509_EXTENSION) **sk) in X509V3_EXT_add_nconf_sk()
341 if (sk) X509v3_add_ext(sk, ext, -1); in X509V3_EXT_add_nconf_sk()
352 STACK_OF(X509_EXTENSION) **sk = NULL; in X509V3_EXT_add_nconf()
354 sk = &cert->cert_info->extensions; in X509V3_EXT_add_nconf()
355 return X509V3_EXT_add_nconf_sk(conf, ctx, section, sk); in X509V3_EXT_add_nconf()
363 STACK_OF(X509_EXTENSION) **sk = NULL; in X509V3_EXT_CRL_add_nconf()
365 sk = &crl->crl->extensions; in X509V3_EXT_CRL_add_nconf()
366 return X509V3_EXT_add_nconf_sk(conf, ctx, section, sk); in X509V3_EXT_CRL_add_nconf()
374 STACK_OF(X509_EXTENSION) *extlist = NULL, **sk = NULL; in X509V3_EXT_REQ_add_nconf()
377 sk = &extlist; in X509V3_EXT_REQ_add_nconf()
[all …]
/external/clang/test/CodeGen/
Dunsigned-promotion.c9 unsigned short si, sj, sk; variable
33 si = sj + sk; in testshortadd()
55 si = sj - sk; in testshortsub()
76 si = sj * sk; in testshortmul()
/external/icu/icu4c/source/data/curr/
Dis.txt193 "grænhöfðeyskur skúti",
305 "Portúgalskur, gíneskur skúti",
321 "króatísk kúna",
333 "indónesísk rúpía",
497 "makaósk pataka",
513 "máritísk rúpía",
521 "malavísk kvaka",
541 "Mósambískur skúti",
553 "nígerísk næra",
589 "papúsk kína",
[all …]
/external/bison/runtime-po/
Dpl.po23 msgstr "błąd składni: nie można cofnąć przesunięcia symbolu leksykalnego"
27 msgstr "składnia jest niejednoznaczna"
33 msgstr "błąd składni"
38 msgstr "błąd składni, niespodziewany symbol %s"
43 msgstr "błąd składni, niespodziewany symbol %s, oczekiwano %s"
48 msgstr "błąd składni, niespodziewany symbol %s, oczekiwano %s lub %s"
53 msgstr "błąd składni, niespodziewany %s, oczekiwano %s lub %s lub %s"
59 "błąd składni, niespodziewany symbol %s, oczekiwano %s lub %s lub %s lub %s"
/external/wpa_supplicant_8/src/eap_common/
Deap_gpsk_common.c113 u8 *sk, size_t sk_len, in eap_gpsk_derive_keys_helper() argument
177 os_memcpy(sk, pos, sk_len); in eap_gpsk_derive_keys_helper()
191 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes() argument
219 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_aes()
228 u8 *sk, size_t *sk_len) in eap_gpsk_derive_keys_sha256() argument
253 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_sha256()
284 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys() argument
320 msk, emsk, sk, sk_len, in eap_gpsk_derive_keys()
327 msk, emsk, sk, sk_len); in eap_gpsk_derive_keys()
500 static int eap_gpsk_compute_mic_aes(const u8 *sk, size_t sk_len, in eap_gpsk_compute_mic_aes() argument
[all …]

12345678910>>...14