Lines Matching refs:k2
239 u32 k1, k2; in des_round() local
242 k2 = (u32)(K >> 32); in des_round()
246 T = k2 ^ ((L[0] << 28) | (L[0] >> 4)); in des_round()
288 u32 k1, k2; in des_set_key() local
310 k2 = ((C << 15) & 0x20000000) | ((C << 17) & 0x10000000) in des_set_key()
323 ctx->sk[i] = (((u64)k2) << 32) | (u64)k1; in des_set_key()
326 ctx->sk[15-i] = (((u64)k2) << 32) | (u64)k1; in des_set_key()
383 ATTRIBUTE_WARN_UNUSED_RET int des3_set_keys(des3_context *ctx, const u8 k1[8], const u8 k2[8], cons… in des3_set_keys()
387 if((ctx == NULL) || (k1 == NULL) || (k2 == NULL)){ in des3_set_keys()
397 if(des_set_key(&(ctx->des[1]), k2, DES_DECRYPTION)){ in des3_set_keys()
419 if(des_set_key(&(ctx->des[1]), k2, DES_ENCRYPTION)){ in des3_set_keys()