Lines Matching refs:macalg
47 struct macalg { struct
57 static const struct macalg macs[] = { argument
98 const struct macalg *m; in mac_alg_list()
116 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) in mac_setup_by_alg() argument
118 mac->type = macalg->type; in mac_setup_by_alg()
120 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) in mac_setup_by_alg()
122 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); in mac_setup_by_alg()
124 mac->mac_len = macalg->len / 8; in mac_setup_by_alg()
125 mac->key_len = macalg->key_len / 8; in mac_setup_by_alg()
128 if (macalg->truncatebits != 0) in mac_setup_by_alg()
129 mac->mac_len = macalg->truncatebits / 8; in mac_setup_by_alg()
130 mac->etm = macalg->etm; in mac_setup_by_alg()
137 const struct macalg *m; in mac_setup()