Lines Matching refs:dgst_raw_len

954 fingerprint_b64(const char *alg, u_char *dgst_raw, size_t dgst_raw_len)  in fingerprint_b64()  argument
958 size_t rlen = ((dgst_raw_len + 2) / 3) * 4 + plen + 1; in fingerprint_b64()
961 if (dgst_raw_len > 65536 || (ret = calloc(1, rlen)) == NULL) in fingerprint_b64()
965 if (dgst_raw_len == 0) in fingerprint_b64()
967 if ((r = b64_ntop(dgst_raw, dgst_raw_len, in fingerprint_b64()
979 fingerprint_hex(const char *alg, u_char *dgst_raw, size_t dgst_raw_len) in fingerprint_hex() argument
982 size_t i, rlen = dgst_raw_len * 3 + strlen(alg) + 2; in fingerprint_hex()
984 if (dgst_raw_len > 65536 || (retval = calloc(1, rlen)) == NULL) in fingerprint_hex()
988 for (i = 0; i < dgst_raw_len; i++) { in fingerprint_hex()
997 fingerprint_bubblebabble(u_char *dgst_raw, size_t dgst_raw_len) in fingerprint_bubblebabble() argument
1005 rounds = (dgst_raw_len / 2) + 1; in fingerprint_bubblebabble()
1011 if ((i + 1 < rounds) || (dgst_raw_len % 2 != 0)) { in fingerprint_bubblebabble()
1078 fingerprint_randomart(const char *alg, u_char *dgst_raw, size_t dgst_raw_len, in fingerprint_randomart() argument
1102 for (i = 0; i < dgst_raw_len; i++) { in fingerprint_randomart()
1180 size_t dgst_raw_len; in sshkey_fingerprint() local
1182 if (sshkey_fingerprint_raw(k, dgst_alg, &dgst_raw, &dgst_raw_len) != 0) in sshkey_fingerprint()
1188 dgst_raw, dgst_raw_len); in sshkey_fingerprint()
1191 dgst_raw, dgst_raw_len); in sshkey_fingerprint()
1196 dgst_raw, dgst_raw_len); in sshkey_fingerprint()
1200 dgst_raw, dgst_raw_len); in sshkey_fingerprint()
1203 retval = fingerprint_bubblebabble(dgst_raw, dgst_raw_len); in sshkey_fingerprint()
1207 dgst_raw, dgst_raw_len, k); in sshkey_fingerprint()
1210 explicit_bzero(dgst_raw, dgst_raw_len); in sshkey_fingerprint()
1214 explicit_bzero(dgst_raw, dgst_raw_len); in sshkey_fingerprint()