krb5: Add an optional encrypt_iov function to encryption types
Add a encrypt_iov function pointer to all of our encryption types which can be used to implement an iovec based encryption routine. Modify krb5_encrypt_iov so that it calls the iovec based routine if it is available.
This commit is contained in:

committed by
Jeffrey Altman

parent
62a8fc89bc
commit
57f7373583
@@ -120,6 +120,12 @@ struct _krb5_encryption_type {
|
||||
krb5_boolean encryptp,
|
||||
int usage,
|
||||
void *ivec);
|
||||
krb5_error_code (*encrypt_iov)(krb5_context context,
|
||||
struct _krb5_key_data *key,
|
||||
krb5_crypto_iov *iov, int niov,
|
||||
krb5_boolean encryptp,
|
||||
int usage,
|
||||
void *ivec);
|
||||
size_t prf_length;
|
||||
krb5_error_code (*prf)(krb5_context,
|
||||
krb5_crypto, const krb5_data *, krb5_data *);
|
||||
|
Reference in New Issue
Block a user