/external/dropbear/ |
D | packet.c | 64 written = write(ses.sock, buf_getptr(writebuf, len), len); in write_packet() 123 len = read(ses.sock, buf_getptr(ses.readbuf, maxlen), maxlen); in read_packet() 198 buf_getptr(ses.readbuf, blocksize), in read_packet_init() 202 if (cbc_decrypt(buf_getptr(ses.readbuf, blocksize), in read_packet_init() 252 buf_getptr(ses.readbuf, len), len); in decrypt_packet() 256 if (cbc_decrypt(buf_getptr(ses.readbuf, blocksize), in decrypt_packet() 300 memcpy(ses.payload->data, buf_getptr(ses.decryptreadbuf, len), len); in decrypt_packet() 345 if (hmac_process(&hmac, buf_getptr(sourcebuf, len), len) != CRYPT_OK) { in checkmac() 355 if (memcmp(tempbuf, buf_getptr(macbuf, macsize), macsize) != 0) { in checkmac() 374 zstream->next_in = buf_getptr(buf, len); in buf_decompress() [all …]
|
D | buffer.c | 185 unsigned char* buf_getptr(buffer* buf, unsigned int len) { in buf_getptr() function 219 memcpy(ret, buf_getptr(buf, len), len); in buf_getstring() 237 LOAD32H(ret, buf_getptr(buf, 4)); in buf_getint() 328 if (*buf_getptr(buf, 1) & (1 << (CHAR_BIT-1))) { in buf_getmpint() 332 if (mp_read_unsigned_bin(mp, buf_getptr(buf, len), len) != MP_OKAY) { in buf_getmpint()
|
D | signkey.c | 215 buf_putstring(buf, buf_getptr(pubkeys, pubkeys->len), in buf_put_pub_key() 379 buf_putstring(buf, buf_getptr(sigblob, sigblob->len), in buf_put_sign() 452 if (base64_decode(buf_getptr(line, len), len, in cmp_base64_key() 462 *fingerprint = sign_key_fingerprint(buf_getptr(decodekey, decodekeylen), in cmp_base64_key() 468 || memcmp( buf_getptr(decodekey, decodekey->len), in cmp_base64_key() 477 filealgo = buf_getptr(decodekey, filealgolen); in cmp_base64_key()
|
D | cli-kex.c | 80 keyblob = buf_getptr(ses.payload, keybloblen); in recv_msg_kexdh_reply() 247 if (strncmp(cli_opts.remotehost, buf_getptr(line, hostlen), in checkhostkey() 260 if (strncmp(buf_getptr(line, algolen), algoname, algolen) != 0) { in checkhostkey() 319 fwrite(buf_getptr(line, line->len), line->len, 1, hostsfile); in checkhostkey()
|
D | keyimport.c | 171 len = fwrite(buf_getptr(buf, buf->len - buf->pos), in dropbear_write() 750 numbers[2].start = buf_getptr(keyblob, numbers[2].bytes); in openssh_write() 755 numbers[1].start = buf_getptr(keyblob, numbers[1].bytes); in openssh_write() 760 numbers[3].start = buf_getptr(keyblob, numbers[3].bytes); in openssh_write() 765 numbers[4].start = buf_getptr(keyblob, numbers[4].bytes); in openssh_write() 770 numbers[5].start = buf_getptr(keyblob, numbers[5].bytes); in openssh_write() 817 numbers[6].start = buf_getptr(extrablob, numbers[6].bytes); in openssh_write() 822 numbers[7].start = buf_getptr(extrablob, numbers[7].bytes); in openssh_write() 827 numbers[8].start = buf_getptr(extrablob, numbers[8].bytes); in openssh_write() 841 numbers[1].start = buf_getptr(keyblob, numbers[1].bytes); in openssh_write() [all …]
|
D | dropbearkey.c | 313 err = base64_encode(buf_getptr(buf, len), len, base64key, &base64len); 321 fp = sign_key_fingerprint(buf_getptr(buf, len), len); 356 len = write(fd, buf_getptr(buf, buf->len - buf->pos),
|
D | svr-authpubkey.c | 71 keyblob = buf_getptr(ses.payload, keybloblen); in svr_auth_pubkey() 104 if (buf_verify(ses.payload, key, buf_getptr(signbuf, signbuf->len), in svr_auth_pubkey() 213 if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) { in checkpubkey()
|
D | svr-auth.c | 79 buf_putstring(ses.writepayload, buf_getptr(svr_opts.banner, in send_msg_userauth_banner() 316 buf_putstring(ses.writepayload, buf_getptr(typebuf, typebuf->len), in send_msg_userauth_failure() 320 buf_getptr(typebuf, typebuf->len))); in send_msg_userauth_failure()
|
D | cli-authpubkey.c | 105 if (memcmp(buf_getptr(keybuf, remotelen), in recv_msg_userauth_pk_ok() 106 buf_getptr(ses.payload, remotelen), remotelen) != 0) { in recv_msg_userauth_pk_ok()
|
D | bignum.c | 73 sha1_process(hs, buf_getptr(buf, i), i); in sha1_process_mp()
|
D | buffer.h | 55 unsigned char* buf_getptr(buffer* buf, unsigned int len);
|
D | rsa.c | 237 if (mp_read_unsigned_bin(&rsa_s, buf_getptr(buf, buf->len - buf->pos), in buf_rsa_verify() 419 bytes_to_mp(rsa_em, buf_getptr(rsa_EM, rsa_EM->size), in rsa_pad_em()
|
D | common-kex.c | 564 sha1_process(&hs, buf_getptr(ses.kexhashbuf, ses.kexhashbuf->len), in kexdh_comb_key()
|
D | svr-chansession.c | 811 buf_getptr(motdbuf, len), len); in ptycommand()
|
D | common-channel.c | 705 buf_getptr(ses.payload, buflen), buflen); in common_recv_msg_channel_data()
|