From: John Kohl Date: Tue, 20 Nov 1990 14:41:07 +0000 (+0000) Subject: add krb5_use_cstype macro X-Git-Tag: krb5-1.0-alpha3~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b551c5b15188979d02d53480238db2abed0015fe;p=krb5.git add krb5_use_cstype macro git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1481 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h index dd86b7589..8e4f1355c 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -141,6 +141,8 @@ extern int krb5_max_cksum; /* max entry in array */ #define valid_cksumtype(cktype) ((cktype <= krb5_max_cksum) && (cktype > 0) && krb5_cksumarray[cktype]) +/* set up *eblockp to use etype */ +#define krb5_use_cstype(eblockp, etype) (eblockp)->crypto_entry = krb5_csarray[(etype)]->system #define krb5_encrypt(inptr, outptr, size, eblock, ivec) (*(eblock)->crypto_entry->encrypt_func)(inptr, outptr, size, eblock, ivec) #define krb5_decrypt(inptr, outptr, size, eblock, ivec) (*(eblock)->crypto_entry->decrypt_func)(inptr, outptr, size, eblock, ivec)