summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/krb
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/crypto/krb')
-rw-r--r--src/lib/crypto/krb/yarrow/ycipher.c1
-rw-r--r--src/lib/crypto/krb/yarrow/ycipher.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/crypto/krb/yarrow/ycipher.c b/src/lib/crypto/krb/yarrow/ycipher.c
index 71b89b0fa..7222d94c5 100644
--- a/src/lib/crypto/krb/yarrow/ycipher.c
+++ b/src/lib/crypto/krb/yarrow/ycipher.c
@@ -50,6 +50,7 @@ krb5int_yarrow_cipher_init(CIPHER_CTX *ctx, unsigned const char * key)
ctx->key = NULL;
keyblock.contents = malloc(keylength);
keyblock.length = keylength;
+ keyblock.enctype = yarrow_enc_type;
if (keyblock.contents == NULL)
return (YARROW_NOMEM);
randombits.data = (char *) key;
diff --git a/src/lib/crypto/krb/yarrow/ycipher.h b/src/lib/crypto/krb/yarrow/ycipher.h
index 21151bd8c..4d7dc9dfd 100644
--- a/src/lib/crypto/krb/yarrow/ycipher.h
+++ b/src/lib/crypto/krb/yarrow/ycipher.h
@@ -18,6 +18,7 @@ typedef struct
*/
#define yarrow_enc_provider krb5int_enc_aes256
+#define yarrow_enc_type ENCTYPE_AES256_CTS_HMAC_SHA1_96
#define CIPHER_BLOCK_SIZE 16
#define CIPHER_KEY_SIZE 32