Lines Matching refs:key

38 k5_des_docrypt(krb5_context context, krb5_const krb5_keyblock *key,  in k5_des_docrypt()  argument
47 if (key->length != 8) in k5_des_docrypt()
58 (krb5_keyblock *)key, in k5_des_docrypt()
67 k5_des_encrypt(krb5_context context, krb5_const krb5_keyblock *key, in k5_des_encrypt() argument
71 return(k5_des_docrypt(context, key, ivec, input, output, 1)); in k5_des_encrypt()
75 k5_des_decrypt(krb5_context context, krb5_const krb5_keyblock *key, in k5_des_decrypt() argument
79 return(k5_des_docrypt(context, key, ivec, input, output, 0)); in k5_des_decrypt()
84 krb5_keyblock *key) in k5_des_make_key() argument
87 if (key->length != 8) in k5_des_make_key()
92 key->magic = KV5M_KEYBLOCK; in k5_des_make_key()
93 key->length = 8; in k5_des_make_key()
94 key->dk_list = NULL; in k5_des_make_key()
99 (void) memcpy(key->contents, randombits->data, randombits->length); in k5_des_make_key()
100 key->contents[7] = (((key->contents[0]&1)<<1) | ((key->contents[1]&1)<<2) | in k5_des_make_key()
101 ((key->contents[2]&1)<<3) | ((key->contents[3]&1)<<4) | in k5_des_make_key()
102 ((key->contents[4]&1)<<5) | ((key->contents[5]&1)<<6) | in k5_des_make_key()
103 ((key->contents[6]&1)<<7)); in k5_des_make_key()
105 mit_des_fixup_key_parity(key->contents); in k5_des_make_key()
108 key->kef_key.ck_data = NULL; in k5_des_make_key()
109 key->key_tmpl = NULL; in k5_des_make_key()
110 ret = init_key_kef(context->kef_cipher_mt, key); in k5_des_make_key()
112 key->hKey = CK_INVALID_HANDLE; in k5_des_make_key()
113 ret = init_key_uef(krb_ctx_hSession(context), key); in k5_des_make_key()