Searched refs:macalg (Results 1 – 1 of 1) sorted by relevance
48 struct macalg { struct58 static const struct macalg macs[] = { argument88 const struct macalg *m; in mac_alg_list()106 mac_setup_by_alg(struct sshmac *mac, const struct macalg *macalg) in mac_setup_by_alg() argument108 mac->type = macalg->type; in mac_setup_by_alg()110 if ((mac->hmac_ctx = ssh_hmac_start(macalg->alg)) == NULL) in mac_setup_by_alg()112 mac->key_len = mac->mac_len = ssh_hmac_bytes(macalg->alg); in mac_setup_by_alg()114 mac->mac_len = macalg->len / 8; in mac_setup_by_alg()115 mac->key_len = macalg->key_len / 8; in mac_setup_by_alg()118 if (macalg->truncatebits != 0) in mac_setup_by_alg()[all …]