Searched refs:checksum (Results 1 – 2 of 2) sorted by relevance
/system/keymaster/ |
D | ocb.c | 620 block checksum; /* Memory correct */ member 925 block offset, checksum; in ae_encrypt() local 933 ctx->ad_offset = ctx->checksum = zero_block(); in ae_encrypt() 945 checksum = ctx->checksum; in ae_encrypt() 956 checksum = xor_block(checksum, ptp[0]); in ae_encrypt() 959 checksum = xor_block(checksum, ptp[1]); in ae_encrypt() 962 checksum = xor_block(checksum, ptp[2]); in ae_encrypt() 966 checksum = xor_block(checksum, ptp[3]); in ae_encrypt() 970 checksum = xor_block(checksum, ptp[3]); in ae_encrypt() 973 checksum = xor_block(checksum, ptp[4]); in ae_encrypt() [all …]
|
/system/core/libnetutils/ |
D | packet.c | 65 static uint32_t checksum(void *buffer, unsigned int count, uint32_t startsum) in checksum() function 111 ip.check = finish_sum(checksum(&ip, sizeof(ip), 0)); in send_packet() 119 udpsum = checksum(&ip.saddr, sizeof(ip.saddr), 0); in send_packet() 120 udpsum = checksum(&ip.daddr, sizeof(ip.daddr), udpsum); in send_packet() 122 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet() 124 udpsum = checksum(&temp, sizeof(temp), udpsum); in send_packet() 127 udpsum = checksum(&udp, sizeof(udp), udpsum); in send_packet() 130 udpsum = checksum(msg, size, udpsum); in send_packet() 210 sum = finish_sum(checksum(&packet.ip, sizeof(packet.ip), 0)); in receive_packet() 231 sum = finish_sum(checksum(&packet, nread, 0)); in receive_packet()
|