Lines Matching refs:input_buffer

360 	uint8_t * input_buffer;  in lanplus_generate_rakp3_authcode()  local
380 input_buffer = malloc(input_buffer_length); in lanplus_generate_rakp3_authcode()
381 if (input_buffer == NULL) { in lanplus_generate_rakp3_authcode()
394 input_buffer[i] = session->v2_data.bmc_rand[16 - 1 - i]; in lanplus_generate_rakp3_authcode()
397 input_buffer[i] = session->v2_data.bmc_rand[i]; in lanplus_generate_rakp3_authcode()
405 memcpy(input_buffer + 16, &SIDm_lsbf, 4); in lanplus_generate_rakp3_authcode()
409 input_buffer[20] = intf->ssn_params.privlvl; in lanplus_generate_rakp3_authcode()
411 input_buffer[20] = session->v2_data.requested_role; in lanplus_generate_rakp3_authcode()
414 input_buffer[21] = strlen((const char *)intf->ssn_params.username); in lanplus_generate_rakp3_authcode()
417 for (i = 0; i < input_buffer[21]; ++i) in lanplus_generate_rakp3_authcode()
418 input_buffer[22 + i] = intf->ssn_params.username[i]; in lanplus_generate_rakp3_authcode()
422 printbuf((const uint8_t *)input_buffer, input_buffer_length, ">> rakp3 mac input buffer"); in lanplus_generate_rakp3_authcode()
429 input_buffer, in lanplus_generate_rakp3_authcode()
438 free(input_buffer); in lanplus_generate_rakp3_authcode()
439 input_buffer = NULL; in lanplus_generate_rakp3_authcode()
475 uint8_t * input_buffer; in lanplus_generate_sik() local
496 input_buffer = malloc(input_buffer_length); in lanplus_generate_sik()
497 if (input_buffer == NULL) { in lanplus_generate_sik()
510 input_buffer[i] = session->v2_data.console_rand[16 - 1 - i]; in lanplus_generate_sik()
513 input_buffer[i] = session->v2_data.console_rand[i]; in lanplus_generate_sik()
520 input_buffer[16 + i] = session->v2_data.bmc_rand[16 - 1 - i]; in lanplus_generate_sik()
523 input_buffer[16 + i] = session->v2_data.bmc_rand[i]; in lanplus_generate_sik()
527 input_buffer[32] = session->v2_data.requested_role; in lanplus_generate_sik()
535 input_buffer[32] &= ~0x10; in lanplus_generate_sik()
539 input_buffer[33] = strlen((const char *)intf->ssn_params.username); in lanplus_generate_sik()
542 for (i = 0; i < input_buffer[33]; ++i) in lanplus_generate_sik()
543 input_buffer[34 + i] = intf->ssn_params.username[i]; in lanplus_generate_sik()
563 printbuf((const uint8_t *)input_buffer, input_buffer_length, "session integrity key input"); in lanplus_generate_sik()
568 input_buffer, in lanplus_generate_sik()
573 free(input_buffer); in lanplus_generate_sik()
574 input_buffer = NULL; in lanplus_generate_sik()