Fix major cockup with short keys in CAST-128.
[openssl.git] / crypto / cast / cast.h
index 528cb7c824475bbf0761adcfa679753f1dd455cb..cbeb4fc1faf1f8328f60e70d4f9e378f5955fe56 100644 (file)
@@ -74,6 +74,7 @@ extern "C" {
 typedef struct cast_key_st
        {
        CAST_LONG data[32];
+       int short_key;  /* Use reduced rounds for short key */
        } CAST_KEY;
 
 #ifndef NOPROTO