Skip to content

Commit

Permalink
explain how encrypt has been overloaded
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoward committed Dec 17, 2015
1 parent 1666095 commit f2b0462
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/krb5/crypto.h
Expand Up @@ -121,6 +121,11 @@ struct _krb5_encryption_type {
struct _krb5_checksum_type *checksum;
struct _krb5_checksum_type *keyed_checksum;
unsigned flags;
/*
* If F_AEAD is set, then this function is overloaded to schedule
* the AEAD cipher's initialization vector and MAC. See
* _krb5_evp_encrypt_gcm() for an example.
*/
krb5_error_code (*encrypt)(krb5_context context,
struct _krb5_key_data *key,
void *data, size_t len,
Expand Down

0 comments on commit f2b0462

Please sign in to comment.