Home
last modified time | relevance | path

Searched refs:algolen (Results 1 – 7 of 7) sorted by relevance

/external/dropbear/
Dsvr-authpubkey.c42 static int checkpubkey(unsigned char* algo, unsigned int algolen,
45 static void send_msg_userauth_pk_ok(unsigned char* algo, unsigned int algolen,
55 unsigned int algolen; in svr_auth_pubkey() local
69 algo = buf_getstring(ses.payload, &algolen); in svr_auth_pubkey()
74 if (checkpubkey(algo, algolen, keyblob, keybloblen) == DROPBEAR_FAILURE) { in svr_auth_pubkey()
81 send_msg_userauth_pk_ok(algo, algolen, keyblob, keybloblen); in svr_auth_pubkey()
136 static void send_msg_userauth_pk_ok(unsigned char* algo, unsigned int algolen, in send_msg_userauth_pk_ok() argument
143 buf_putstring(ses.writepayload, algo, algolen); in send_msg_userauth_pk_ok()
154 static int checkpubkey(unsigned char* algo, unsigned int algolen, in checkpubkey() argument
166 if (have_algo(algo, algolen, sshhostkey) == DROPBEAR_FAILURE) { in checkpubkey()
[all …]
Dcli-authpubkey.c66 unsigned int algolen; in recv_msg_userauth_pk_ok() local
72 algotype = buf_getstring(ses.payload, &algolen); in recv_msg_userauth_pk_ok()
73 keytype = signkey_type_from_name(algotype, algolen); in recv_msg_userauth_pk_ok()
133 int algolen; in send_msg_userauth_pubkey() local
152 algoname = signkey_name_from_type(type, &algolen); in send_msg_userauth_pubkey()
154 buf_putstring(ses.writepayload, algoname, algolen); in send_msg_userauth_pubkey()
Dcli-kex.c213 unsigned int hostlen, algolen; in checkhostkey() local
229 algoname = signkey_name_from_type(ses.newkeys->algo_hostkey, &algolen); in checkhostkey()
260 if (strncmp(buf_getptr(line, algolen), algoname, algolen) != 0) { in checkhostkey()
265 buf_incrpos(line, algolen); in checkhostkey()
272 ret = cmp_base64_key(keyblob, keybloblen, algoname, algolen, in checkhostkey()
309 buf_putbytes(line, algoname, algolen); in checkhostkey()
Dcommon-algo.c195 int have_algo(char* algo, size_t algolen, algo_type algos[]) { in have_algo() argument
200 if (strlen(algos[i].name) == algolen in have_algo()
201 && (strncmp(algos[i].name, algo, algolen) == 0)) { in have_algo()
Dsignkey.c438 const unsigned char* algoname, unsigned int algolen, in cmp_base64_key() argument
478 if (filealgolen != algolen || memcmp(filealgo, algoname, algolen) != 0) { in cmp_base64_key()
Dalgo.h66 int have_algo(char* algo, size_t algolen, algo_type algos[]);
Dsignkey.h60 const unsigned char* algoname, unsigned int algolen,