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
@@ -198,6 +198,7 @@ struct _krb5_encryption_type _krb5_enctype_des3_cbc_md5 = {
|
||||
&_krb5_checksum_rsa_md5_des3,
|
||||
0,
|
||||
_krb5_evp_encrypt,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
};
|
||||
@@ -215,6 +216,7 @@ struct _krb5_encryption_type _krb5_enctype_des3_cbc_sha1 = {
|
||||
&_krb5_checksum_hmac_sha1_des3,
|
||||
F_DERIVED | F_RFC3961_ENC | F_RFC3961_KDF,
|
||||
_krb5_evp_encrypt,
|
||||
NULL,
|
||||
16,
|
||||
DES3_prf
|
||||
};
|
||||
@@ -232,6 +234,7 @@ struct _krb5_encryption_type _krb5_enctype_old_des3_cbc_sha1 = {
|
||||
&_krb5_checksum_hmac_sha1_des3,
|
||||
0,
|
||||
_krb5_evp_encrypt,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
};
|
||||
@@ -249,6 +252,7 @@ struct _krb5_encryption_type _krb5_enctype_des3_cbc_none = {
|
||||
NULL,
|
||||
F_PSEUDO,
|
||||
_krb5_evp_encrypt,
|
||||
NULL,
|
||||
0,
|
||||
NULL
|
||||
};
|
||||
|
Reference in New Issue
Block a user