Home
last modified time | relevance | path

Searched refs:keybuf (Results 1 – 20 of 20) sorted by relevance

/external/dropbear/
Dcli-authpubkey.c64 buffer* keybuf = NULL; in recv_msg_userauth_pk_ok() local
77 keybuf = buf_new(MAX_PUBKEY_SIZE); in recv_msg_userauth_pk_ok()
92 keybuf->pos = keybuf->len = 0; in recv_msg_userauth_pk_ok()
93 buf_put_pub_key(keybuf, keyitem->key, keytype); in recv_msg_userauth_pk_ok()
94 buf_setpos(keybuf, 0); in recv_msg_userauth_pk_ok()
95 buf_incrpos(keybuf, 4); /* first int is the length of the remainder (ie in recv_msg_userauth_pk_ok()
100 if (keybuf->len-4 != remotelen) { in recv_msg_userauth_pk_ok()
101 TRACE(("lengths differed: localh %d remote %d", keybuf->len, remotelen)) in recv_msg_userauth_pk_ok()
105 if (memcmp(buf_getptr(keybuf, remotelen), in recv_msg_userauth_pk_ok()
115 buf_free(keybuf); in recv_msg_userauth_pk_ok()
Dkeyimport.c543 unsigned char keybuf[32]; in openssh_read()
548 MD5Final(keybuf, &md5c); in openssh_read()
551 MD5Update(&md5c, keybuf, 16); in openssh_read()
554 MD5Final(keybuf+16, &md5c); in openssh_read()
559 des3_decrypt_pubkey_ossh(keybuf, (unsigned char *)key->iv, in openssh_read()
563 memset(keybuf, 0, sizeof(keybuf)); in openssh_read()
1349 unsigned char keybuf[32], iv[8];
1359 MD5Final(keybuf, &md5c);
1363 MD5Update(&md5c, keybuf, 16);
1364 MD5Final(keybuf+16, &md5c);
[all …]
/external/openfst/src/include/fst/extensions/far/
Dcreate.h66 ostringstream keybuf; in FarCreate() local
67 keybuf.width(generate_keys); in FarCreate()
68 keybuf.fill('0'); in FarCreate()
69 keybuf << i + 1; in FarCreate()
70 key = keybuf.str(); in FarCreate()
Dcompile-strings.h272 ostringstream keybuf; in FarCompileStrings() local
273 keybuf.width(key_size); in FarCompileStrings()
274 keybuf.fill('0'); in FarCompileStrings()
275 keybuf << n; in FarCompileStrings()
278 key = keybuf.str(); in FarCompileStrings()
285 key += keybuf.str(); in FarCompileStrings()
/external/qemu/distrib/sdl-1.2.15/src/video/dga/
DSDL_dgaevents.c98 char keybuf[32]; in DGA_DispatchEvent() local
100 if ( XLookupString(&xkey, keybuf, sizeof(keybuf), NULL, &state) ) { in DGA_DispatchEvent()
107 keysym.unicode = (Uint8)keybuf[0]; in DGA_DispatchEvent()
/external/openssl/crypto/pem/
Dpvkfmt.c738 unsigned char keybuf[20]; in do_PVK_body() local
755 if (!derive_pvk_key(keybuf, p, saltlen, in do_PVK_body()
764 if (!EVP_DecryptInit_ex(&cctx, EVP_rc4(), NULL, keybuf, NULL)) in do_PVK_body()
774 memset(keybuf + 5, 0, 11); in do_PVK_body()
775 if (!EVP_DecryptInit_ex(&cctx, EVP_rc4(), NULL, keybuf, in do_PVK_body()
778 OPENSSL_cleanse(keybuf, 20); in do_PVK_body()
792 OPENSSL_cleanse(keybuf, 20); in do_PVK_body()
897 unsigned char keybuf[20]; in i2b_PVK() local
908 if (!derive_pvk_key(keybuf, salt, PVK_SALTLEN, in i2b_PVK()
912 memset(keybuf + 5, 0, 11); in i2b_PVK()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11events.c588 char keybuf[32]; in X11_DispatchEvent() local
589 char *keydata = keybuf; in X11_DispatchEvent()
596 count = Xutf8LookupString(SDL_IC, &xevent.xkey, keydata, sizeof(keybuf), &xkeysym, &status); in X11_DispatchEvent()
717 if (keydata != NULL && keybuf != keydata) { in X11_DispatchEvent()
728 char keybuf[32]; in X11_DispatchEvent() local
735 keybuf, sizeof(keybuf), in X11_DispatchEvent()
743 keysym.unicode = (Uint8)keybuf[0]; in X11_DispatchEvent()
1252 char keybuf[32]; in X11_KeyToUnicode() local
1299 if ( XLookupString(&xkey, keybuf, sizeof(keybuf), NULL, NULL) ) in X11_KeyToUnicode()
1300 unicode = (unsigned char)keybuf[0]; in X11_KeyToUnicode()
/external/quake/quake/src/WinQuake/
Dsys_dos.cpp51 static unsigned char keybuf[KEYBUF_SIZE]; variable
149 keybuf[keybuf_head] = dos_inportb(0x60); in TrapKey()
494 k = keybuf[keybuf_tail++]; in Sys_SendKeyEvents()
499 next = keybuf[(keybuf_tail-2)&(KEYBUF_SIZE-1)]; in Sys_SendKeyEvents()
511 if ( keybuf[(keybuf_tail-2)&(KEYBUF_SIZE-1)]==0xe0 ) in Sys_SendKeyEvents()
517 if (k==0xc5 && keybuf[(keybuf_tail-2)&(KEYBUF_SIZE-1)] == 0x9d) in Sys_SendKeyEvents()
/external/sqlite/android/
Dsqlite3_android.cpp362 char keybuf[1024]; in tokenize() local
363 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1); in tokenize()
364 if (result > sizeof(keybuf)) { in tokenize()
372 base16Encode(base16buf, keybuf, keysize); in tokenize()
/external/clang/test/Rewriter/
Drewrite-modern-block.mm40 int rdar7547630(const char *keybuf, const char *valuebuf) {
45 __block const char *keys = keybuf, *values = valuebuf, *novalues;
/external/qemu/distrib/sdl-1.2.15/src/video/ipod/
DSDL_ipodvideo.c446 unsigned char keybuf[128]; in iPod_keyboard() local
455 nread = read (kbfd, keybuf, 128); in iPod_keyboard()
457 char ascii = iPod_SC_keymap[keybuf[i] & 0x7f]; in iPod_keyboard()
459 …if (dbgout) fprintf (dbgout, "Key! %02x is %c %s", keybuf[i], ascii, (keybuf[i] & 0x80)? "up" : "d… in iPod_keyboard()
462 ev.type = (keybuf[i] & 0x80)? SDL_KEYUP : SDL_KEYDOWN; in iPod_keyboard()
/external/wpa_supplicant_8/src/eap_common/
Dikev2_common.c697 u8 *keybuf, *pos; in ikev2_derive_sk_keys() local
716 keybuf = os_malloc(keybuf_len); in ikev2_derive_sk_keys()
717 if (keybuf == NULL) in ikev2_derive_sk_keys()
721 data, data_len, keybuf, keybuf_len)) { in ikev2_derive_sk_keys()
722 os_free(keybuf); in ikev2_derive_sk_keys()
726 pos = keybuf; in ikev2_derive_sk_keys()
783 os_free(keybuf); in ikev2_derive_sk_keys()
/external/openssh/
Dauthfile.c219 key_save_private_blob(Buffer *keybuf, const char *filename) in key_save_private_blob() argument
227 if (atomicio(vwrite, fd, buffer_ptr(keybuf), in key_save_private_blob()
228 buffer_len(keybuf)) != buffer_len(keybuf)) { in key_save_private_blob()
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/
DSDL_gsevents.c762 unsigned char keybuf[BUFSIZ]; in handle_keyboard() local
768 nread = read(keyboard_fd, keybuf, BUFSIZ); in handle_keyboard()
770 scancode = keybuf[i] & 0x7F; in handle_keyboard()
771 if ( keybuf[i] & 0x80 ) { in handle_keyboard()
/external/qemu/block/
Dqcow.c175 uint8_t keybuf[16]; in qcow_set_key() local
178 memset(keybuf, 0, 16); in qcow_set_key()
185 keybuf[i] = key[i]; in qcow_set_key()
189 if (AES_set_encrypt_key(keybuf, 128, &s->aes_encrypt_key) != 0) in qcow_set_key()
191 if (AES_set_decrypt_key(keybuf, 128, &s->aes_decrypt_key) != 0) in qcow_set_key()
Dqcow2.c257 uint8_t keybuf[16]; in qcow_set_key() local
260 memset(keybuf, 0, 16); in qcow_set_key()
267 keybuf[i] = key[i]; in qcow_set_key()
271 if (AES_set_encrypt_key(keybuf, 128, &s->aes_encrypt_key) != 0) in qcow_set_key()
273 if (AES_set_decrypt_key(keybuf, 128, &s->aes_decrypt_key) != 0) in qcow_set_key()
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
DSDL_dx5events.c279 static void handle_keyboard(const int numevents, DIDEVICEOBJECTDATA *keybuf) in handle_keyboard() argument
286 if ( keybuf[i].dwData & 0x80 ) { in handle_keyboard()
288 TranslateKey(keybuf[i].dwOfs, &keysym, 1)); in handle_keyboard()
291 TranslateKey(keybuf[i].dwOfs, &keysym, 0)); in handle_keyboard()
/external/wpa_supplicant_8/src/ap/
Dwpa_auth_ft.c404 u8 keybuf[32]; in wpa_ft_gtk_subelem() local
407 if (key_len > sizeof(keybuf)) in wpa_ft_gtk_subelem()
419 if (pad_len && key_len < sizeof(keybuf)) { in wpa_ft_gtk_subelem()
420 os_memcpy(keybuf, gsm->GTK[gsm->GN - 1], key_len); in wpa_ft_gtk_subelem()
421 os_memset(keybuf + key_len, 0, pad_len); in wpa_ft_gtk_subelem()
422 keybuf[key_len] = 0xdd; in wpa_ft_gtk_subelem()
424 key = keybuf; in wpa_ft_gtk_subelem()
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
DSDL_fbevents.c996 unsigned char keybuf[BUFSIZ]; in handle_keyboard() local
1002 nread = read(keyboard_fd, keybuf, BUFSIZ); in handle_keyboard()
1004 scancode = keybuf[i] & 0x7F; in handle_keyboard()
1005 if ( keybuf[i] & 0x80 ) { in handle_keyboard()
/external/mdnsresponder/mDNSCore/
DDNSDigest.c1322 mDNSu8 keybuf[1024]; in DNSDigest_ConstructHMACKeyfromBase64() local
1323 mDNSs32 keylen = DNSDigest_Base64ToBin(b64key, keybuf, sizeof(keybuf)); in DNSDigest_ConstructHMACKeyfromBase64()
1325 DNSDigest_ConstructHMACKey(info, keybuf, (mDNSu32)keylen); in DNSDigest_ConstructHMACKeyfromBase64()