/external/boringssl/src/include/openssl/ |
D | stack_macros.h | 29 #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 …]
|
D | stack.h | 215 OPENSSL_EXPORT size_t sk_num(const _STACK *sk); 219 OPENSSL_EXPORT void sk_zero(_STACK *sk); 223 OPENSSL_EXPORT void *sk_value(const _STACK *sk, size_t i); 227 OPENSSL_EXPORT void *sk_set(_STACK *sk, size_t i, void *p); 231 OPENSSL_EXPORT void sk_free(_STACK *sk); 235 OPENSSL_EXPORT void sk_pop_free(_STACK *sk, void (*free_func)(void *)); 240 OPENSSL_EXPORT size_t sk_insert(_STACK *sk, void *p, size_t where); 245 OPENSSL_EXPORT void *sk_delete(_STACK *sk, size_t where); 250 OPENSSL_EXPORT void *sk_delete_ptr(_STACK *sk, void *p); 258 OPENSSL_EXPORT int sk_find(_STACK *sk, size_t *out_index, void *p); [all …]
|
/external/boringssl/src/crypto/stack/ |
D | stack.c | 95 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 …]
|
D | make_macros.sh | 39 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/ |
D | socket.c | 92 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 …]
|
D | nl.c | 106 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/ |
D | findsuper.c | 101 #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/ |
D | x509_v3.c | 82 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 …]
|
D | x509name.c | 113 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 …]
|
D | x509_lu.c | 235 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_free() 247 sk=vfy->get_cert_methods; in X509_STORE_free() 248 for (j=0; j<sk_X509_LOOKUP_num(sk); j++) in X509_STORE_free() 250 lu=sk_X509_LOOKUP_value(sk,j); in X509_STORE_free() 254 sk_X509_LOOKUP_free(sk); in X509_STORE_free() 265 STACK_OF(X509_LOOKUP) *sk; in X509_STORE_add_lookup() 268 sk=v->get_cert_methods; in X509_STORE_add_lookup() 269 for (i=0; i<sk_X509_LOOKUP_num(sk); i++) in X509_STORE_add_lookup() 271 lu=sk_X509_LOOKUP_value(sk,i); in X509_STORE_add_lookup() 497 STACK_OF(X509) *sk; in STACK_OF() [all …]
|
D | x509_att.c | 81 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/libnl/lib/route/ |
D | cls.c | 70 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 …]
|
D | qdisc.c | 131 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 …]
|
D | class.c | 62 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()
|
D | route.c | 75 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/boringssl/src/crypto/ |
D | ex_data.c | 175 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 176 ad->sk = sk_void_new_null(); in CRYPTO_set_ex_data() 177 if (ad->sk == NULL) { in CRYPTO_set_ex_data() 183 n = sk_void_num(ad->sk); in CRYPTO_set_ex_data() 187 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data() 193 sk_void_set(ad->sk, index, val); in CRYPTO_set_ex_data() 198 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) { in CRYPTO_get_ex_data() 201 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data() 237 ad->sk = NULL; in CRYPTO_new_ex_data() 262 if (!from->sk) { in CRYPTO_dup_ex_data() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | KSSecretKeyEntryTest.java | 49 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/ |
D | server.c | 111 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/ |
D | ccolltst.c | 57 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/openssh/ |
D | ed25519.c | 28 unsigned char *sk in crypto_sign_ed25519_keypair() argument 36 randombytes(sk, 32); in crypto_sign_ed25519_keypair() 37 crypto_hash_sha512(extsk, sk, 32); in crypto_sign_ed25519_keypair() 47 sk[32 + i] = pk[i]; in crypto_sign_ed25519_keypair() 54 const unsigned char *sk in crypto_sign_ed25519() argument 66 crypto_hash_sha512(extsk, sk, 32); in crypto_sign_ed25519() 88 get_hram(hram, sm, sk+32, sm, mlen+64); in crypto_sign_ed25519()
|
/external/clang/test/CodeGen/ |
D | unsigned-promotion.c | 9 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/boringssl/src/crypto/asn1/ |
D | tasn_enc.c | 68 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/ |
D | v3_conf.c | 329 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/bison/runtime-po/ |
D | pl.po | 23 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/ |
D | eap_gpsk_common.c | 112 u8 *sk, size_t sk_len, in eap_gpsk_derive_keys_helper() argument 176 os_memcpy(sk, pos, sk_len); in eap_gpsk_derive_keys_helper() 190 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys_aes() argument 218 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_aes() 227 u8 *sk, size_t *sk_len) in eap_gpsk_derive_keys_sha256() argument 252 msk, emsk, sk, *sk_len, in eap_gpsk_derive_keys_sha256() 283 u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, in eap_gpsk_derive_keys() argument 319 msk, emsk, sk, sk_len, in eap_gpsk_derive_keys() 326 msk, emsk, sk, sk_len); in eap_gpsk_derive_keys() 499 static int eap_gpsk_compute_mic_aes(const u8 *sk, size_t sk_len, in eap_gpsk_compute_mic_aes() argument [all …]
|