|
@@ -141,7 +141,7 @@ struct crypt_config {
|
|
char *cipher;
|
|
char *cipher;
|
|
char *cipher_string;
|
|
char *cipher_string;
|
|
|
|
|
|
- struct crypt_iv_operations *iv_gen_ops;
|
|
|
|
|
|
+ const struct crypt_iv_operations *iv_gen_ops;
|
|
union {
|
|
union {
|
|
struct iv_essiv_private essiv;
|
|
struct iv_essiv_private essiv;
|
|
struct iv_benbi_private benbi;
|
|
struct iv_benbi_private benbi;
|
|
@@ -758,15 +758,15 @@ static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv,
|
|
return r;
|
|
return r;
|
|
}
|
|
}
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_plain_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_plain_ops = {
|
|
.generator = crypt_iv_plain_gen
|
|
.generator = crypt_iv_plain_gen
|
|
};
|
|
};
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_plain64_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_plain64_ops = {
|
|
.generator = crypt_iv_plain64_gen
|
|
.generator = crypt_iv_plain64_gen
|
|
};
|
|
};
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_essiv_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_essiv_ops = {
|
|
.ctr = crypt_iv_essiv_ctr,
|
|
.ctr = crypt_iv_essiv_ctr,
|
|
.dtr = crypt_iv_essiv_dtr,
|
|
.dtr = crypt_iv_essiv_dtr,
|
|
.init = crypt_iv_essiv_init,
|
|
.init = crypt_iv_essiv_init,
|
|
@@ -774,17 +774,17 @@ static struct crypt_iv_operations crypt_iv_essiv_ops = {
|
|
.generator = crypt_iv_essiv_gen
|
|
.generator = crypt_iv_essiv_gen
|
|
};
|
|
};
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_benbi_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_benbi_ops = {
|
|
.ctr = crypt_iv_benbi_ctr,
|
|
.ctr = crypt_iv_benbi_ctr,
|
|
.dtr = crypt_iv_benbi_dtr,
|
|
.dtr = crypt_iv_benbi_dtr,
|
|
.generator = crypt_iv_benbi_gen
|
|
.generator = crypt_iv_benbi_gen
|
|
};
|
|
};
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_null_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_null_ops = {
|
|
.generator = crypt_iv_null_gen
|
|
.generator = crypt_iv_null_gen
|
|
};
|
|
};
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_lmk_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_lmk_ops = {
|
|
.ctr = crypt_iv_lmk_ctr,
|
|
.ctr = crypt_iv_lmk_ctr,
|
|
.dtr = crypt_iv_lmk_dtr,
|
|
.dtr = crypt_iv_lmk_dtr,
|
|
.init = crypt_iv_lmk_init,
|
|
.init = crypt_iv_lmk_init,
|
|
@@ -793,7 +793,7 @@ static struct crypt_iv_operations crypt_iv_lmk_ops = {
|
|
.post = crypt_iv_lmk_post
|
|
.post = crypt_iv_lmk_post
|
|
};
|
|
};
|
|
|
|
|
|
-static struct crypt_iv_operations crypt_iv_tcw_ops = {
|
|
|
|
|
|
+static const struct crypt_iv_operations crypt_iv_tcw_ops = {
|
|
.ctr = crypt_iv_tcw_ctr,
|
|
.ctr = crypt_iv_tcw_ctr,
|
|
.dtr = crypt_iv_tcw_dtr,
|
|
.dtr = crypt_iv_tcw_dtr,
|
|
.init = crypt_iv_tcw_init,
|
|
.init = crypt_iv_tcw_init,
|