From 6b73c0e50f1747ab3deb6cd6d8c5a4c6d39a98a8 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 29 Jun 1999 01:55:21 +0000 Subject: [PATCH] * dk_encrypt.c (krb5_marc_dk_encrypt): Call krb5_marc_dk_encrypt_length() instead of krb5_dk_encrypt_length() to prevent blocksize errors. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11532 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/dk/ChangeLog | 6 ++++++ src/lib/crypto/dk/dk_encrypt.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib/crypto/dk/ChangeLog b/src/lib/crypto/dk/ChangeLog index 566ce30ea..1edb32e38 100644 --- a/src/lib/crypto/dk/ChangeLog +++ b/src/lib/crypto/dk/ChangeLog @@ -1,3 +1,9 @@ +1999-06-28 Tom Yu + + * dk_encrypt.c (krb5_marc_dk_encrypt): Call + krb5_marc_dk_encrypt_length() instead of krb5_dk_encrypt_length() + to prevent blocksize errors. + Mon May 10 15:16:34 1999 Danilo Almeida * Makefile.in: Do win32 build in subdir. diff --git a/src/lib/crypto/dk/dk_encrypt.c b/src/lib/crypto/dk/dk_encrypt.c index a1b85a3ac..30212c443 100644 --- a/src/lib/crypto/dk/dk_encrypt.c +++ b/src/lib/crypto/dk/dk_encrypt.c @@ -205,7 +205,7 @@ krb5_marc_dk_encrypt(enc, hash, key, usage, ivec, input, output) (*(enc->keysize))(&keybytes, &keylength); plainlen = krb5_roundup(blocksize+4+input->length, blocksize); - krb5_dk_encrypt_length(enc, hash, input->length, &enclen); + krb5_marc_dk_encrypt_length(enc, hash, input->length, &enclen); /* key->length, ivec will be tested in enc->encrypt */ -- 2.26.2