Searched refs:msg_dec (Results 1 – 1 of 1) sorted by relevance
/external/libmtp/src/ |
D | mtpz.c | 1546 char *msg_dec = (char *)malloc(128); in ptp_mtpz_validatehandshakeresponse() local 1547 memset(msg_dec, 0, 128); in ptp_mtpz_validatehandshakeresponse() 1554 free(msg_dec); in ptp_mtpz_validatehandshakeresponse() 1558 if (mtpz_rsa_decrypt(128, (unsigned char *)message, 128, (unsigned char *)msg_dec, rsa) == 0) in ptp_mtpz_validatehandshakeresponse() 1563 free(msg_dec); in ptp_mtpz_validatehandshakeresponse() 1573 char *v10 = mtpz_hash_custom6A5DC(state, msg_dec + 21, 107, 20); in ptp_mtpz_validatehandshakeresponse() 1576 msg_dec[i + 1] ^= v10[i]; in ptp_mtpz_validatehandshakeresponse() 1578 char *v11 = mtpz_hash_custom6A5DC(state, msg_dec + 1, 20, 107); in ptp_mtpz_validatehandshakeresponse() 1581 msg_dec[i + 21] ^= v11[i]; in ptp_mtpz_validatehandshakeresponse() 1583 memcpy(hash_key, msg_dec + 112, 16); in ptp_mtpz_validatehandshakeresponse() [all …]
|