Commit cca26090 authored by Niels Möller's avatar Niels Möller

Updated (nettle_crypt_func *) casts, for nettle-2.0.

Rev: src/crypto.c:1.41
parent 77858231
......@@ -76,7 +76,7 @@ do_crypt_arcfour(struct crypto_instance *s,
assert(!(length % 8));
lsh_string_crypt(dst, di, src, si, length,
(nettle_crypt_func) arcfour_crypt, &self->ctx);
(nettle_crypt_func *) arcfour_crypt, &self->ctx);
}
static struct crypto_instance *
......@@ -119,7 +119,7 @@ do_aes_cbc_encrypt(struct crypto_instance *s,
lsh_string_cbc_encrypt(dst, di, src, si, length,
AES_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) aes_encrypt,
(nettle_crypt_func *) aes_encrypt,
&self->ctx.ctx);
}
......@@ -133,7 +133,7 @@ do_aes_cbc_decrypt(struct crypto_instance *s,
lsh_string_cbc_decrypt(dst, di, src, si, length,
AES_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) aes_decrypt,
(nettle_crypt_func *) aes_decrypt,
&self->ctx.ctx);
}
......@@ -190,7 +190,7 @@ do_aes_ctr_crypt(struct crypto_instance *s,
lsh_string_ctr_crypt(dst, di, src, si, length,
AES_BLOCK_SIZE, self->ctx.ctr,
(nettle_crypt_func) aes_encrypt,
(nettle_crypt_func *) aes_encrypt,
&self->ctx.ctx);
}
......@@ -232,7 +232,7 @@ do_des3_encrypt(struct crypto_instance *s,
lsh_string_cbc_encrypt(dst, di, src, si, length,
DES3_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) des3_encrypt,
(nettle_crypt_func *) des3_encrypt,
&self->ctx.ctx);
}
......@@ -246,7 +246,7 @@ do_des3_decrypt(struct crypto_instance *s,
lsh_string_cbc_decrypt(dst, di, src, si, length,
DES3_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) des3_decrypt,
(nettle_crypt_func *) des3_decrypt,
&self->ctx.ctx);
}
......@@ -308,7 +308,7 @@ do_cast128_encrypt(struct crypto_instance *s,
lsh_string_cbc_encrypt(dst, di, src, si, length,
CAST128_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) cast128_encrypt,
(nettle_crypt_func *) cast128_encrypt,
&self->ctx.ctx);
}
......@@ -322,7 +322,7 @@ do_cast128_decrypt(struct crypto_instance *s,
lsh_string_cbc_decrypt(dst, di, src, si, length,
CAST128_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) cast128_decrypt,
(nettle_crypt_func *) cast128_decrypt,
&self->ctx.ctx);
}
......@@ -368,7 +368,7 @@ do_twofish_encrypt(struct crypto_instance *s,
lsh_string_cbc_encrypt(dst, di, src, si, length,
TWOFISH_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) twofish_encrypt,
(nettle_crypt_func *) twofish_encrypt,
&self->ctx.ctx);
}
......@@ -382,7 +382,7 @@ do_twofish_decrypt(struct crypto_instance *s,
lsh_string_cbc_decrypt(dst, di, src, si, length,
TWOFISH_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) twofish_decrypt,
(nettle_crypt_func *) twofish_decrypt,
&self->ctx.ctx);
}
......@@ -427,7 +427,7 @@ do_blowfish_encrypt(struct crypto_instance *s,
lsh_string_cbc_encrypt(dst, di, src, si, length,
BLOWFISH_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) blowfish_encrypt,
(nettle_crypt_func *) blowfish_encrypt,
&self->ctx.ctx);
}
......@@ -441,7 +441,7 @@ do_blowfish_decrypt(struct crypto_instance *s,
lsh_string_cbc_decrypt(dst, di, src, si, length,
BLOWFISH_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) blowfish_decrypt,
(nettle_crypt_func *) blowfish_decrypt,
&self->ctx.ctx);
}
......@@ -493,7 +493,7 @@ do_serpent_encrypt(struct crypto_instance *s,
lsh_string_cbc_encrypt(dst, di, src, si, length,
SERPENT_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) serpent_encrypt,
(nettle_crypt_func *) serpent_encrypt,
&self->ctx.ctx);
}
......@@ -507,7 +507,7 @@ do_serpent_decrypt(struct crypto_instance *s,
lsh_string_cbc_decrypt(dst, di, src, si, length,
SERPENT_BLOCK_SIZE, self->ctx.iv,
(nettle_crypt_func) serpent_decrypt,
(nettle_crypt_func *) serpent_decrypt,
&self->ctx.ctx);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment