krb5: Stash the HMAC context in the krb5_crypto object

Store the EVP HMAC context in the krb5_crypto object so that we
don't have to allocate it for every hashing operating we perform.
This commit is contained in:
Simon Wilkinson
2018-05-14 14:21:41 +01:00
committed by Jeffrey Altman
parent e50faea7f0
commit b9b8e76376
4 changed files with 17 additions and 4 deletions

View File

@@ -205,6 +205,7 @@ struct krb5_crypto_data {
struct _krb5_encryption_type *et;
struct _krb5_key_data key;
EVP_MD_CTX *mdctx;
HMAC_CTX *hmacctx;
int num_key_usage;
struct _krb5_key_usage *key_usage;
};