~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
base/keysz.[ch]: Add a flag to say that arguments are 16 bits wide.
[catacomb]
/
base
/
keysz.h
diff --git
a/base/keysz.h
b/base/keysz.h
index
97ed144
..
b83203b
100644
(file)
--- a/
base/keysz.h
+++ b/
base/keysz.h
@@
-55,12
+55,15
@@
* * @KSZ_SET@ requires that %$k \in {\,a_i\,}$%.
*/
* * @KSZ_SET@ requires that %$k \in {\,a_i\,}$%.
*/
+#define KSZ_OPMASK 0x1f /* Kinds of keysize specs */
enum {
KSZ_ANY, /* Allows any key at all */
KSZ_RANGE, /* Allows keys within a range */
enum {
KSZ_ANY, /* Allows any key at all */
KSZ_RANGE, /* Allows keys within a range */
- KSZ_SET
/* Allows specific sizes of keys */
+ KSZ_SET
,
/* Allows specific sizes of keys */
};
};
+#define KSZ_16BIT 0x20 /* Arguments are 16 bits long */
+
/*----- Key sizes for symmetric algorithms --------------------------------*/
/* --- @keysz@ --- *
/*----- Key sizes for symmetric algorithms --------------------------------*/
/* --- @keysz@ --- *