Searched refs:blob_len (Results 1 - 19 of 19) sorted by relevance

/netbsd-current/external/bsd/libfido2/dist/fuzz/
H A Dlibfuzzer.c85 size_t blob_len; local
89 if ((blob_len = pack(blob, sizeof(blob), p)) == 0 ||
90 blob_len > sizeof(blob)) {
95 if (SHA256(blob, blob_len, dgst) != dgst) {
112 if (write(fd, blob, blob_len) != (ssize_t)blob_len) {
197 size_t blob_len; variable
218 if ((blob_len = pack(blob, sizeof(blob), p)) == 0 ||
219 blob_len > sizeof(blob) || blob_len > maxsiz
[all...]
H A Dfuzz_netlink.c103 size_t blob_len; local
111 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
113 if (blob_len > len) {
118 memcpy(ptr, blob, blob_len);
120 return blob_len;
H A Dfuzz_hid.c132 size_t blob_len; local
144 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
145 if (blob_len > len)
146 blob_len = len;
148 memcpy(ptr, blob, blob_len);
150 return blob_len;
H A Dfuzz_largeblob.c146 size_t blob_len; local
162 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
164 if (blob_len > len) {
169 memcpy(ptr, blob, blob_len);
171 return blob_len;
H A Dfuzz_pcsc.c121 size_t blob_len; local
141 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
143 if (blob_len > len) {
148 memcpy(ptr, blob, blob_len);
150 return blob_len;
H A Dfuzz_bio.c182 size_t blob_len; local
208 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
210 if (blob_len > len) {
215 memcpy(ptr, blob, blob_len);
217 return blob_len;
H A Dfuzz_credman.c169 size_t blob_len; local
192 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
194 if (blob_len > len) {
199 memcpy(ptr, blob, blob_len);
201 return blob_len;
H A Dfuzz_assert.c168 size_t blob_len; local
193 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
195 if (blob_len > len) {
200 memcpy(ptr, blob, blob_len);
202 return blob_len;
H A Dfuzz_cred.c178 size_t blob_len; local
201 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
203 if (blob_len > len) {
208 memcpy(ptr, blob, blob_len);
210 return blob_len;
H A Dfuzz_mgmt.c166 size_t blob_len; local
193 assert((blob_len = pack(blob, sizeof(blob), &dummy)) != 0);
195 if (blob_len > len) {
200 memcpy(ptr, blob, blob_len);
202 return blob_len;
/netbsd-current/external/bsd/pam-u2f/dist/fuzz/
H A Dfuzz_auth.c273 size_t blob_len; local
280 blob_len = pack(data, maxsize, p);
283 return blob_len;
/netbsd-current/external/bsd/libfido2/dist/src/
H A Dlargeblob.c728 size_t key_len, unsigned char **blob_ptr, size_t *blob_len)
742 if (blob_ptr == NULL || blob_len == NULL) {
743 fido_log_debug("%s: invalid blob_ptr=%p, blob_len=%p", __func__,
744 (const void *)blob_ptr, (const void *)blob_len);
748 *blob_len = 0;
761 *blob_len = body.len;
774 size_t key_len, const unsigned char *blob_ptr, size_t blob_len,
789 if (blob_ptr == NULL || blob_len == 0) {
790 fido_log_debug("%s: invalid blob_ptr=%p, blob_len=%zu", __func__,
791 (const void *)blob_ptr, blob_len);
727 fido_dev_largeblob_get(fido_dev_t *dev, const unsigned char *key_ptr, size_t key_len, unsigned char **blob_ptr, size_t *blob_len) argument
773 fido_dev_largeblob_set(fido_dev_t *dev, const unsigned char *key_ptr, size_t key_len, const unsigned char *blob_ptr, size_t blob_len, const char *pin) argument
[all...]
H A Dcbor.c121 cbor_parse_reply(const unsigned char *blob, size_t blob_len, void *arg, argument
128 if (blob_len < 1) {
129 fido_log_debug("%s: blob_len=%zu", __func__, blob_len);
140 if ((item = cbor_load(blob + 1, blob_len - 1, &cbor)) == NULL) {
H A Dnetlink.c416 nl_parse_reply(const uint8_t *blob, size_t blob_len, uint16_t msg_type, argument
422 while (blob_len) {
423 if ((m = nlmsg_from_buf(&blob, &blob_len)) == NULL) {
/netbsd-current/external/bsd/wpa/dist/src/crypto/
H A Dtls_wolfssl.c423 const u8 *dh_blob, size_t blob_len)
431 if (wolfSSL_SetTmpDH_buffer(conn->ssl, dh_blob, blob_len,
463 size_t blob_len)
470 conn->ssl, client_cert_blob, blob_len,
515 size_t blob_len)
535 private_key_blob, blob_len,
1136 const u8 *ca_cert_blob, size_t blob_len,
1187 if (wolfSSL_CTX_load_verify_buffer(ctx, ca_cert_blob, blob_len,
1424 const u8 *dh_blob, size_t blob_len)
1432 if (wolfSSL_CTX_SetTmpDH_buffer(ctx, dh_blob, blob_len,
422 tls_connection_dh(struct tls_connection *conn, const char *dh_file, const u8 *dh_blob, size_t blob_len) argument
460 tls_connection_client_cert(struct tls_connection *conn, const char *client_cert, const u8 *client_cert_blob, size_t blob_len) argument
510 tls_connection_private_key(void *tls_ctx, struct tls_connection *conn, const char *private_key, const char *private_key_passwd, const u8 *private_key_blob, size_t blob_len) argument
1134 tls_connection_ca_cert(void *tls_ctx, struct tls_connection *conn, const char *ca_cert, const u8 *ca_cert_blob, size_t blob_len, const char *ca_path) argument
1423 tls_global_dh(void *ssl_ctx, const char *dh_file, const u8 *dh_blob, size_t blob_len) argument
[all...]
/netbsd-current/external/bsd/pam-u2f/dist/
H A Dutil.c59 size_t *blob_len) {
61 *blob_len = 0;
66 *blob_len = strlen(ascii_hex) / 2;
67 *blob = calloc(1, *blob_len);
71 for (size_t i = 0; i < *blob_len; i++) {
78 *blob_len = 0;
58 hex_decode(const char *ascii_hex, unsigned char **blob, size_t *blob_len) argument
/netbsd-current/crypto/external/cpl/tpm-tools/dist/lib/
H A Dtpm_tspi.c702 unloadNVDataPublic(UINT64 *offset, BYTE *blob, UINT32 blob_len, TPM_NV_DATA_PUBLIC *v) argument
708 if (off > blob_len)
/netbsd-current/external/bsd/wpa/dist/wpa_supplicant/dbus/
H A Ddbus_new_handlers.c1963 int blob_len; local
1978 dbus_message_iter_get_fixed_array(&array_iter, &blob_data, &blob_len);
1986 blob->data = os_memdup(blob_data, blob_len);
1992 blob->len = blob_len;
/netbsd-current/crypto/external/bsd/openssh/dist/
H A Dsshkey.c831 size_t blob_len = 0; local
842 if ((r = to_blob(k, &blob, &blob_len, 1, SSHKEY_SERIALIZE_DEFAULT))
849 if ((r = ssh_digest_memory(dgst_alg, blob, blob_len,
863 freezero(blob, blob_len);

Completed in 236 milliseconds