Lines Matching defs:str
62 void DES_string_to_key(const char *str, DES_cblock *key)
69 length = strlen(str);
72 (*key)[i % 8] ^= (str[i] << 1);
75 j = str[i];
95 DES_cbc_cksum((const unsigned char *)str, key, length, &ks, key);
100 void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2)
108 length = strlen(str);
112 (*key2)[i] = (*key1)[i] = (str[i] << 1);
117 (*key2)[i % 8] ^= (str[i] << 1);
119 (*key1)[i % 8] ^= (str[i] << 1);
124 j = str[i];
152 DES_cbc_cksum((const unsigned char *)str, key1, length, &ks, key1);
160 DES_cbc_cksum((const unsigned char *)str, key2, length, &ks, key2);