From: John Kohl Date: Thu, 20 Sep 1990 16:23:45 +0000 (+0000) Subject: add macros to hide the object deref in encryption functions X-Git-Tag: krb5-1.0-alpha2~269 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=958d44b2c40ac26b63aa165b3367248a473ed0b9;p=krb5.git add macros to hide the object deref in encryption functions git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1142 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/encryption.h b/src/include/krb5/encryption.h index 1c1c86606..071279d73 100644 --- a/src/include/krb5/encryption.h +++ b/src/include/krb5/encryption.h @@ -136,4 +136,13 @@ extern int krb5_max_cksum; /* max entry in array */ #define valid_cksumtype(cktype) ((cktype <= krb5_max_cksum) && (cktype > 0) && krb5_cksumarray[cktype]) +#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) +#define krb5_process_key(eblock, key) (*(eblock)->crypto_entry->process_key)(eblock, key) +#define krb5_finish_key(eblock) (*(eblock)->crypto_entry->finish_key)(eblock) +#define krb5_string_to_key(eblock, keytype, keyblock, data, princ) (*(eblock)->crypto_entry->string_to_key)(keytype, keyblock, data, princ) +#define krb5_init_random_key(eblock, keyblock, ptr) (*(eblock)->crypto_entry->init_random_key)(keyblock, ptr) +#define krb5_finish_random_key(eblock, ptr) (*(eblock)->crypto_entry->finish_random_key)(ptr) +#define krb5_random_key(eblock, ptr, keyblock) (*(eblock)->crypto_entry->random_key)(ptr, keyblock) + #endif /* KRB5_ENCRYPTION__ */