server/keymgmt.c (km_samealgsp): Make sure the bulk transforms match.
[tripe] / server / keymgmt.c
index 17325dc..61cba57 100644 (file)
@@ -374,6 +374,7 @@ int km_samealgsp(const kdata *kdx, const kdata *kdy)
   const algswitch *a = &kdx->algs, *aa = &kdy->algs;
 
   return (group_samep(kdx->g, kdy->g) &&
+         a->bulk == aa->bulk &&
          a->c == aa->c && a->b == aa->b &&
          a->mgf == aa->mgf && a->h == aa->h &&
          a->m == aa->m && a->tagsz == aa->tagsz);