aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypto/yarrow/ycipher.c
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>2001-11-09 21:11:38 +0000
committerSam Hartman <hartmans@mit.edu>2001-11-09 21:11:38 +0000
commit4117e231ca8a46489a8b1efa3bb478775f14d541 (patch)
tree66092c913c5a42993f0f7c8e3b6970bd27fc8bfd /src/lib/crypto/yarrow/ycipher.c
parent6a57be5618bd85948ce23598629ae9fcc0e81380 (diff)
downloadkrb5-4117e231ca8a46489a8b1efa3bb478775f14d541.zip
krb5-4117e231ca8a46489a8b1efa3bb478775f14d541.tar.gz
krb5-4117e231ca8a46489a8b1efa3bb478775f14d541.tar.bz2
Compiles now
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13974 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/crypto/yarrow/ycipher.c')
-rw-r--r--src/lib/crypto/yarrow/ycipher.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/crypto/yarrow/ycipher.c b/src/lib/crypto/yarrow/ycipher.c
index d354bae..b2c7a96 100644
--- a/src/lib/crypto/yarrow/ycipher.c
+++ b/src/lib/crypto/yarrow/ycipher.c
@@ -35,7 +35,7 @@
int krb5int_yarrow_cipher_init
(CIPHER_CTX *ctx,
- const char * key)
+ unsigned const char * key)
{
size_t keybytes, keylength;
const struct krb5_enc_provider *enc = &yarrow_enc_provider;
@@ -60,18 +60,17 @@ int krb5int_yarrow_cipher_init
}
int krb5int_yarrow_cipher_encrypt_block
-(CIPHER_CTX *ctx, const char *in,
- char *out)
+(CIPHER_CTX *ctx, const unsigned char *in,
+ unsigned char *out)
{
krb5_error_code ret;
- krb5_data ind;
- krb5_enc_data outd;
+ krb5_data ind, outd;
const struct krb5_enc_provider *enc = &yarrow_enc_provider;
ind.data = (char *) in;
ind.length = CIPHER_BLOCK_SIZE;
outd.data = out;
outd.length = CIPHER_BLOCK_SIZE;
- ret = enc->encrypt (ctx->key, 0, ind, outd);
+ ret = enc->encrypt (&ctx->key, 0, &ind, &outd);
if (ret)
return YARROW_FAIL;
return YARROW_OK;