Searched refs:macalg (Results 1 – 1 of 1) sorted by relevance
47 struct macalg { struct57 static const struct macalg macs[] = { argument98 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() argument118 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()[all …]