Home
last modified time | relevance | path

Searched refs:authlen (Results 1 – 12 of 12) sorted by relevance

/external/openssh/
Dcipher.c350 const u_char *src, u_int len, u_int aadlen, u_int authlen) in cipher_crypt() argument
354 len, aadlen, authlen, cc->encrypt); in cipher_crypt()
370 if (authlen) { in cipher_crypt()
373 if (authlen != cipher_authlen(cc->cipher)) in cipher_crypt()
382 authlen, (u_char *)src + aadlen + len)) in cipher_crypt()
386 if (authlen && in cipher_crypt()
396 if (authlen) { in cipher_crypt()
403 authlen, dest + aadlen + len)) in cipher_crypt()
Dsshkey-xmss.c896 size_t i, keylen, ivlen, blocksize, authlen, encrypted_len, aadlen; in sshkey_xmss_encrypt_state() local
912 authlen = cipher_authlen(cipher); in sshkey_xmss_encrypt_state()
956 encrypted_len + aadlen + authlen, &cp)) != 0 || in sshkey_xmss_encrypt_state()
960 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_encrypt_state()
987 size_t keylen, ivlen, authlen, aadlen; in sshkey_xmss_decrypt_state() local
1004 authlen = cipher_authlen(cipher); in sshkey_xmss_decrypt_state()
1036 if (sshbuf_len(encoded) < authlen || in sshkey_xmss_decrypt_state()
1037 sshbuf_len(encoded) - authlen < encrypted_len) { in sshkey_xmss_decrypt_state()
1053 encrypted_len, aadlen, authlen)) != 0) in sshkey_xmss_decrypt_state()
1057 if ((r = sshbuf_consume(encoded, encrypted_len + authlen)) != 0) in sshkey_xmss_decrypt_state()
Dcipher-chachapoly.h34 u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen,
Dpacket.c1073 u_int authlen = 0, aadlen = 0; in ssh_packet_send2_wrapped() local
1085 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_send2_wrapped()
1089 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_send2_wrapped()
1182 sshbuf_len(state->outgoing_packet) + authlen, &cp)) != 0) in ssh_packet_send2_wrapped()
1186 len - aadlen, aadlen, authlen)) != 0) in ssh_packet_send2_wrapped()
1490 u_int maclen, aadlen = 0, authlen = 0, block_size; in ssh_packet_read_poll2() local
1509 if ((authlen = cipher_authlen(enc->cipher)) != 0) in ssh_packet_read_poll2()
1514 aadlen = (mac && mac->enabled && mac->etm) || authlen ? 4 : 0; in ssh_packet_read_poll2()
1576 " aadlen %d", block_size, need, maclen, authlen, aadlen)); in ssh_packet_read_poll2()
1591 if (sshbuf_len(state->input) < aadlen + need + authlen + maclen) in ssh_packet_read_poll2()
[all …]
Dcipher-chachapoly.c71 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
Dcipher-chachapoly-libcrypto.c87 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument
Dkex.c889 u_int mode, ctos, need, dh_need, authlen; in kex_choose_conf() local
946 authlen = cipher_authlen(newkeys->enc.cipher); in kex_choose_conf()
948 if (authlen == 0 && in kex_choose_conf()
964 authlen == 0 ? newkeys->mac.name : "<implicit>", in kex_choose_conf()
Dsshkey.c3834 size_t i, pubkeylen, keylen, ivlen, blocksize, authlen; in sshkey_private_to_blob2() local
3863 authlen = cipher_authlen(cipher); in sshkey_private_to_blob2()
3923 sshbuf_len(encrypted) + authlen, &cp)) != 0) in sshkey_private_to_blob2()
3926 sshbuf_ptr(encrypted), sshbuf_len(encrypted), 0, authlen)) != 0) in sshkey_private_to_blob2()
4037 size_t keylen = 0, ivlen = 0, authlen = 0, slen = 0; in private2_decrypt() local
4102 authlen = cipher_authlen(cipher); in private2_decrypt()
4119 if (sshbuf_len(decoded) < authlen || in private2_decrypt()
4120 sshbuf_len(decoded) - authlen < encrypted_len) { in private2_decrypt()
4131 encrypted_len, 0, authlen)) != 0) { in private2_decrypt()
4137 if ((r = sshbuf_consume(decoded, encrypted_len + authlen)) != 0) in private2_decrypt()
/external/tcpdump/
Dprint-esp.c115 int authlen; member
216 end = end - sa->authlen; in esp_print_decrypt_buffer_by_ikev2()
341 int authlen = 0; in espprint_decode_encalgo() local
356 authlen = 12; in espprint_decode_encalgo()
368 sa->authlen = 0; in espprint_decode_encalgo()
374 sa->authlen = authlen; in espprint_decode_encalgo()
419 sa->authlen = 12; in espprint_decode_authalgo()
767 ep = ep - sa->authlen; in esp_print()
Dprint-zephyr.c44 int authlen; member
186 PARSE_FIELD_INT(z.authlen); in zephyr_print()
/external/libcups/scheduler/
Dauth.c318 int authlen; /* Auth string length */ in cupsdAuthorize() local
329 authlen = sizeof(authdata); in cupsdAuthorize()
330 httpDecode64_2(authdata, &authlen, authorization); in cupsdAuthorize()
332 if (authlen != kAuthorizationExternalFormLength) in cupsdAuthorize()
/external/libwebsockets/plugins/ssh-base/crypto/
Dchacha.c303 const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) in chachapoly_crypt() argument