+typedef struct bulk {
+ const struct bulkops *ops;
+} bulk;
+
+typedef struct bulkops {
+ bulk *(*init)(key */*k*/, const char */*calg*/, const char */*halg*/);
+ int (*setup)(bulk */*b*/, gcipher */*cx*/);
+ size_t (*overhead)(bulk */*b*/);
+ const char *(*doit)(bulk */*b*/, uint32 /*seq*/, buf */*bb*/,
+ const void */*p*/, size_t /*sz*/);
+ void (*destroy)(bulk */*b*/);
+} bulkops;
+
+struct bulktab {
+ const char *name;
+ const bulkops *encops;
+ const bulkops *decops;
+};
+
+extern const struct bulktab bulktab[];
+