• Home
  • Raw
  • Download

Lines Matching refs:alg

46 	int alg;  member
68 ssh_digest_by_alg(int alg) in ssh_digest_by_alg() argument
70 if (alg < 0 || alg >= SSH_DIGEST_MAX) in ssh_digest_by_alg()
72 if (digests[alg].id != alg) /* sanity */ in ssh_digest_by_alg()
74 if (digests[alg].mdfunc == NULL) in ssh_digest_by_alg()
76 return &(digests[alg]); in ssh_digest_by_alg()
82 int alg; in ssh_digest_alg_by_name() local
84 for (alg = 0; digests[alg].id != -1; alg++) { in ssh_digest_alg_by_name()
85 if (strcasecmp(name, digests[alg].name) == 0) in ssh_digest_alg_by_name()
86 return digests[alg].id; in ssh_digest_alg_by_name()
92 ssh_digest_alg_name(int alg) in ssh_digest_alg_name() argument
94 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_alg_name()
100 ssh_digest_bytes(int alg) in ssh_digest_bytes() argument
102 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_bytes()
114 ssh_digest_start(int alg) in ssh_digest_start() argument
116 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_start()
121 ret->alg = alg; in ssh_digest_start()
136 if (from->alg != to->alg) in ssh_digest_copy_state()
161 const struct ssh_digest *digest = ssh_digest_by_alg(ctx->alg); in ssh_digest_final()
185 ssh_digest_memory(int alg, const void *m, size_t mlen, u_char *d, size_t dlen) in ssh_digest_memory() argument
187 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_memory()
203 ssh_digest_buffer(int alg, const struct sshbuf *b, u_char *d, size_t dlen) in ssh_digest_buffer() argument
205 return ssh_digest_memory(alg, sshbuf_ptr(b), sshbuf_len(b), d, dlen); in ssh_digest_buffer()