Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 119) sorted by relevance

12345

/openbsd-src/lib/libcurses/base/
H A DMKunctrl.awk47 blob=""
60 blob = blob "\""
61 blob = blob "\n \""
90 blob = blob part "\\0";
96 blob = blob "\"";
101 blob = blob "\n/* printable values in 128-255 range */"
110 blob = blob "\""
112 blob = blob "\n \""
117 blob = blob part
135 blob = blob "\"\n"
[all …]
/openbsd-src/sys/dev/pci/drm/
H A Ddrm_property.c528 struct drm_property_blob *blob = in drm_property_free_blob() local
531 mutex_lock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob()
532 list_del(&blob->head_global); in drm_property_free_blob()
533 mutex_unlock(&blob->dev->mode_config.blob_lock); in drm_property_free_blob()
535 drm_mode_object_unregister(blob->dev, &blob->base); in drm_property_free_blob()
537 kvfree(blob); in drm_property_free_blob()
558 struct drm_property_blob *blob; in drm_property_create_blob() local
564 blob = kvzalloc(sizeof(struct drm_property_blob)+length, GFP_KERNEL); in drm_property_create_blob()
565 if (!blob) in drm_property_create_blob()
570 INIT_LIST_HEAD(&blob->head_file); in drm_property_create_blob()
[all …]
H A Ddrm_color_mgmt.c283 struct drm_property_blob *blob; in drm_crtc_legacy_gamma_set() local
305 blob = drm_property_create_blob(dev, in drm_crtc_legacy_gamma_set()
308 if (IS_ERR(blob)) { in drm_crtc_legacy_gamma_set()
309 ret = PTR_ERR(blob); in drm_crtc_legacy_gamma_set()
310 blob = NULL; in drm_crtc_legacy_gamma_set()
315 blob_data = blob->data; in drm_crtc_legacy_gamma_set()
331 use_gamma_lut ? NULL : blob); in drm_crtc_legacy_gamma_set()
334 use_gamma_lut ? blob : NULL); in drm_crtc_legacy_gamma_set()
341 drm_property_blob_put(blob); in drm_crtc_legacy_gamma_set()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.benjamin/
H A Dbool01.C15 int blob = ( 27 | int (y) );
16 return blob; //expect 27 or 0
23 int blob = ( 27 | int (y) ); in orbtrue() local
24 return blob; //expect 27 in orbtrue()
30 int blob = ( 27 | int (y) ); in orbfalse() local
31 return blob; //expect 27 in orbfalse()
37 int blob = ( 27 | int (y) ); in orbfalse2() local
38 return blob; //expect 27 in orbfalse2()
44 int blob = ( 27 | int (y) ); in ors() local
45 return blob; //expect 27 in ors()
[all …]
H A Dbool02.C14 int blob = ( 27 & int (y) );
15 return blob; //expect 1 or 0
22 int blob = ( 27 & int (y) ); in andbtrue() local
23 return blob; //expect 1 in andbtrue()
29 int blob = ( 27 & int (y) ); in andbfalse() local
30 return blob; //expect 0 in andbfalse()
36 int blob = ( 27 & int (y) ); in andbfalse2() local
37 return blob; //expect 0 in andbfalse2()
43 int blob = ( 27 & int (y) ); in ands() local
44 return blob; //expect 1 in ands()
/openbsd-src/lib/libfido2/src/
H A Dlargeblob.c29 largeblob_reset(largeblob_t *blob) in largeblob_reset() argument
31 fido_blob_reset(&blob->ciphertext); in largeblob_reset()
32 fido_blob_reset(&blob->nonce); in largeblob_reset()
33 blob->origsiz = 0; in largeblob_reset()
39 largeblob_t *blob; in largeblob_free() local
41 if (blob_ptr == NULL || (blob = *blob_ptr) == NULL) in largeblob_free()
43 largeblob_reset(blob); in largeblob_free()
44 free(blob); in largeblob_free()
64 largeblob_decrypt(const largeblob_t *blob, const fido_blob_t *key) in largeblob_decrypt() argument
74 if (largeblob_aad(aad, blob->origsiz) < 0) { in largeblob_decrypt()
[all …]
/openbsd-src/gnu/usr.bin/perl/regen/
H A Dmph.pl417 my $blob= "";
435 $blob .= $part;
438 length($blob)
455 if (index($blob, $key) >= 0) {
471 my $i1= index($blob, $prefix) >= 0;
472 my $i2= index($blob, $suffix) >= 0;
504 $blob .= $append;
510 if ($added < length $blob) {
512 $added, length($blob)
528 if (length($new_blob) < length($blob)) {
[all …]
/openbsd-src/usr.bin/ssh/
H A Dsshbuf-io.c38 struct sshbuf *blob; in sshbuf_load_fd() local
47 if ((blob = sshbuf_new()) == NULL) in sshbuf_load_fd()
56 if ((r = sshbuf_put(blob, buf, len)) != 0) in sshbuf_load_fd()
58 if (sshbuf_len(blob) > SSHBUF_SIZE_MAX) { in sshbuf_load_fd()
64 st.st_size != (off_t)sshbuf_len(blob)) { in sshbuf_load_fd()
69 *blobp = blob; in sshbuf_load_fd()
70 blob = NULL; /* transferred */ in sshbuf_load_fd()
74 sshbuf_free(blob); in sshbuf_load_fd()
H A Dkrl.c74 u_char *blob; member
123 if ((r = memcmp(a->blob, b->blob, MINIMUM(a->len, b->len))) != 0) in blob_cmp()
127 return memcmp(a->blob, b->blob, a->len); in blob_cmp()
174 free(rb->blob); in ssh_krl_free()
179 free(rb->blob); in ssh_krl_free()
184 free(rb->blob); in ssh_krl_free()
365 plain_key_blob(const struct sshkey *key, u_char **blob, size_t *blen) in plain_key_blob() argument
378 r = sshkey_to_blob(kcopy, blob, blen); in plain_key_blob()
385 revoke_blob(struct revoked_blob_tree *rbt, u_char *blob, size_t len) in revoke_blob() argument
391 rb->blob = blob; in revoke_blob()
[all …]
H A Dssh-pkcs11-helper.c117 u_char *blob; in process_add()
133 if ((r = sshkey_to_blob(keys[i], &blob, &blen)) != 0) { in process_add()
137 if ((r = sshbuf_put_string(msg, blob, blen)) != 0 || in process_add()
140 free(blob); in process_add()
180 u_char *blob, *data, *signature = NULL; in process_sign()
190 if ((r = sshbuf_get_string(iqueue, &blob, &blen)) != 0 || in process_sign()
195 if ((r = sshkey_from_blob(blob, blen, &key)) != 0) in process_sign()
248 free(blob); in process()
115 u_char *blob; process_add() local
178 u_char *blob, *data, *signature = NULL; process_sign() local
H A Dssh-pkcs11-client.c240 u_char *blob = NULL, *signature = NULL; in rsa_encrypt() local
261 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) { in rsa_encrypt()
268 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in rsa_encrypt()
285 free(blob); in rsa_encrypt()
319 u_char *blob = NULL, *signature = NULL; in ecdsa_do_sign()
344 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) { in ecdsa_do_sign()
351 (r = sshbuf_put_string(msg, blob, blen)) != 0 || in ecdsa_do_sign()
367 free(blob); in ecdsa_do_sign()
602 u_char *blob; in pkcs11_add_provider()
631 if ((r = sshbuf_get_string(msg, &blob,
316 u_char *blob = NULL, *signature = NULL; ecdsa_do_sign() local
563 u_char *blob; pkcs11_add_provider() local
[all...]
H A Dsshkey.c855 /* Use the existing blob */ in sshkey_fingerprint_raw()
951 u_char *blob = NULL, *ret = NULL;
963 if ((r = to_blob(k, &blob, &blob_len, 1, SSHKEY_SERIALIZE_DEFAULT))
970 if ((r = ssh_digest_memory(dgst_alg, blob, blob_len,
983 if (blob != NULL)
984 freezero(blob, blob_len);
1277 struct sshbuf *blob; in sshkey_write()
1299 if ((blob = sshbuf_new()) == NULL) in sshkey_cert_type()
1305 sshbuf_free(blob); in sshkey_check_rsa_length()
1308 if ((r = sshbuf_b64tod(blob, blobcop in sshkey_check_rsa_length()
826 u_char *blob = NULL, *ret = NULL; sshkey_fingerprint_raw() local
1152 struct sshbuf *blob; sshkey_read() local
1931 sshkey_from_blob(const u_char * blob,size_t blen,struct sshkey ** keyp) sshkey_from_blob() argument
2715 sshkey_private_to_blob2(struct sshkey * prv,struct sshbuf * blob,const char * passphrase,const char * comment,const char * ciphername,int rounds) sshkey_private_to_blob2() argument
2841 private2_uudecode(struct sshbuf * blob,struct sshbuf ** decodedp) private2_uudecode() argument
3063 sshkey_parse_private2(struct sshbuf * blob,int type,const char * passphrase,struct sshkey ** keyp,char ** commentp) sshkey_parse_private2() argument
3123 sshkey_parse_private2_pubkey(struct sshbuf * blob,int type,struct sshkey ** keyp) sshkey_parse_private2_pubkey() argument
3185 struct sshbuf *blob; sshkey_private_to_blob_pem_pkcs8() local
3267 sshkey_private_to_fileblob(struct sshkey * key,struct sshbuf * blob,const char * passphrase,const char * comment,int format,const char * openssh_format_cipher,int openssh_format_rounds) sshkey_private_to_fileblob() argument
3369 sshkey_parse_private_pem_fileblob(struct sshbuf * blob,int type,const char * passphrase,struct sshkey ** keyp) sshkey_parse_private_pem_fileblob() argument
3507 sshkey_parse_private_fileblob_type(struct sshbuf * blob,int type,const char * passphrase,struct sshkey ** keyp,char ** commentp) sshkey_parse_private_fileblob_type() argument
3557 sshkey_parse_pubkey_from_private_fileblob_type(struct sshbuf * blob,int type,struct sshkey ** pubkeyp) sshkey_parse_pubkey_from_private_fileblob_type() argument
[all...]
H A Dsshsig.c47 sshsig_armor(const struct sshbuf *blob, struct sshbuf **out) in sshsig_armor() argument
65 if ((r = sshbuf_dtob64(blob, buf, 1)) != 0) { in sshsig_armor()
170 struct sshbuf *blob = NULL; in sshsig_wrap_sign() local
175 (blob = sshbuf_new()) == NULL) { in sshsig_wrap_sign()
215 if ((r = sshbuf_put(blob, MAGIC_PREAMBLE, MAGIC_PREAMBLE_LEN)) != 0 || in sshsig_wrap_sign()
216 (r = sshbuf_put_u32(blob, SIG_VERSION)) != 0 || in sshsig_wrap_sign()
217 (r = sshkey_puts(key, blob)) != 0 || in sshsig_wrap_sign()
218 (r = sshbuf_put_cstring(blob, sig_namespace)) != 0 || in sshsig_wrap_sign()
219 (r = sshbuf_put_string(blob, NULL, 0)) != 0 || /* reserved */ in sshsig_wrap_sign()
220 (r = sshbuf_put_cstring(blob, hashal in sshsig_wrap_sign()
[all...]
H A Dauthfd.c239 const u_char *blob; in deserialise_identity2() local
242 if ((r = sshbuf_get_string_direct(ids, &blob, &blen)) != 0 || in deserialise_identity2()
245 if ((r = sshkey_from_blob(blob, blen, keyp)) != 0) in deserialise_identity2()
651 u_char *blob = NULL; in ssh_remove_identity() local
658 if ((r = sshkey_to_blob(key, &blob, &blen)) != 0) in ssh_remove_identity()
662 (r = sshbuf_put_string(msg, blob, blen)) != 0) in ssh_remove_identity()
673 if (blob != NULL) in ssh_remove_identity()
674 freezero(blob, blen); in ssh_remove_identity()
/openbsd-src/regress/usr.bin/ssh/unittests/sshbuf/
H A Dtest_sshbuf_getput_fuzz.c25 attempt_parse_blob(u_char *blob, size_t len) in attempt_parse_blob() argument
39 ASSERT_INT_EQ(sshbuf_put(p1, blob, len), 0); in attempt_parse_blob()
69 u_char blob[] = { in sshbuf_getput_fuzz_tests() local
108 fuzz = fuzz_begin(fuzzers, blob, sizeof(blob)); in sshbuf_getput_fuzz_tests()
111 attempt_parse_blob(blob, sizeof(blob)); in sshbuf_getput_fuzz_tests()
/openbsd-src/sys/dev/pci/drm/i915/display/
H A Dintel_color.c1088 struct drm_property_blob *blob; in create_linear_lut() local
1092 blob = drm_property_create_blob(&i915->drm, in create_linear_lut()
1095 if (IS_ERR(blob)) in create_linear_lut()
1096 return blob; in create_linear_lut()
1098 lut = blob->data; in create_linear_lut()
1108 return blob; in create_linear_lut()
1155 const struct drm_property_blob *blob) in i9xx_load_lut_8() argument
1162 if (!blob) in i9xx_load_lut_8()
1165 lut = blob->data; in i9xx_load_lut_8()
1173 const struct drm_property_blob *blob) in i9xx_load_lut_10() argument
[all …]
/openbsd-src/sys/dev/pci/drm/i915/gt/uc/
H A Dintel_uc_fw.c231 const struct uc_fw_blob blob; member
238 .blob = uc_, \
292 const struct uc_fw_blob *blob = &fw_blobs[i].blob; in __uc_fw_auto_select() local
306 if (uc_fw->file_selected.path == blob->path) in __uc_fw_auto_select()
312 uc_fw->file_selected.path = blob->path; in __uc_fw_auto_select()
313 uc_fw->file_wanted.path = blob->path; in __uc_fw_auto_select()
314 uc_fw->file_wanted.ver.major = blob->major; in __uc_fw_auto_select()
315 uc_fw->file_wanted.ver.minor = blob->minor; in __uc_fw_auto_select()
316 uc_fw->file_wanted.ver.patch = blob->patch; in __uc_fw_auto_select()
317 uc_fw->has_gsc_headers = blob->has_gsc_headers; in __uc_fw_auto_select()
[all …]
H A Dintel_guc_ct.c237 void *blob; in intel_guc_ct_init() local
248 err = intel_guc_allocate_and_map_vma(guc, blob_size, &ct->vma, &blob); in intel_guc_ct_init()
258 desc = blob; in intel_guc_ct_init()
259 cmds = blob + 2 * CTB_DESC_SIZE; in intel_guc_ct_init()
263 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init()
269 desc = blob + CTB_DESC_SIZE; in intel_guc_ct_init()
270 cmds = blob + 2 * CTB_DESC_SIZE + CTB_H2G_BUFFER_SIZE; in intel_guc_ct_init()
274 ptrdiff(desc, blob), ptrdiff(cmds, blob), cmds_size, in intel_guc_ct_init()
307 void *blob; in intel_guc_ct_enable() local
318 blob = __px_vaddr(ct->vma->obj); in intel_guc_ct_enable()
[all …]
/openbsd-src/regress/sys/kern/exec_self/
H A Dexec_self.c16 } const blob __attribute__((section(".openbsd.mutable"))) = { variable
31 va = (vaddr_t)&blob; in main()
35 if (madvise((void *)(va - off), sizeof(blob) + (off > 0 ? pgsz : 0), in main()
39 if (execl(argv[0], argv[0], &blob.string, (char *)NULL)) in main()
/openbsd-src/regress/lib/libc/malloc/malloc0test/
H A Dmalloc0test.c61 caddr_t blob; in main() local
96 blob = malloc(size); in main()
97 if (blob == NULL) { in main()
104 prot = test(blob, tsize); in main()
110 printf("%8p %6d %20s %10s\n", blob, size, in main()
/openbsd-src/usr.sbin/sasyncd/
H A Dnet.c666 u_int8_t *msg, *blob, *rhash, *iv, hash[SHA_DIGEST_LENGTH]; in net_read() local
688 blob = malloc(blob_len); in net_read()
689 if (!blob) { in net_read()
695 switch (r = read(p->socket, blob + pos, blob_len - pos)) { in net_read()
702 free(blob); in net_read()
711 memcpy(&v, blob + offset, sizeof v); in net_read()
716 free(blob); in net_read()
720 memcpy(&v, blob + offset, sizeof v); in net_read()
724 rhash = blob + offset; in net_read()
728 free(blob); in net_read()
[all …]
/openbsd-src/sys/dev/pci/drm/include/drm/
H A Ddrm_property.h288 bool drm_property_replace_blob(struct drm_property_blob **blob,
290 struct drm_property_blob *drm_property_blob_get(struct drm_property_blob *blob);
291 void drm_property_blob_put(struct drm_property_blob *blob);
H A Ddrm_color_mgmt.h73 static inline int drm_color_lut_size(const struct drm_property_blob *blob) in drm_color_lut_size() argument
75 return blob->length / sizeof(struct drm_color_lut); in drm_color_lut_size()
/openbsd-src/sys/dev/pci/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c96 __extract_blob_lut(const struct drm_property_blob *blob, uint32_t *size) in __extract_blob_lut() argument
98 *size = blob ? drm_color_lut_size(blob) : 0; in __extract_blob_lut()
99 return blob ? (struct drm_color_lut *)blob->data : NULL; in __extract_blob_lut()
/openbsd-src/sys/dev/pci/drm/apple/
H A Dparser.c35 const void *ptr = ctx->blob + ctx->pos; in parse_bytes()
141 tag = ctx->blob + ctx->pos; in consume_string()
142 key = ctx->blob + ctx->pos + sizeof(*tag); in consume_string()
204 static int parse_blob(struct dcp_parse_ctx *handle, size_t size, u8 const **blob) in parse_blob() argument
220 *blob = out; in parse_blob()
253 int parse(const void *blob, size_t size, struct dcp_parse_ctx *ctx) in parse() argument
258 .blob = blob, in parse()
929 const u8 *blob; in parse_mode_in_avep_element() local
931 ret = parse_blob(it.handle, sizeof(*cookie), &blob); in parse_mode_in_avep_element()
936 memcpy(cookie, blob, sizeof(*cookie)); in parse_mode_in_avep_element()

12345