Lines Matching refs:length
195 …int length, //including MIC length if ( generate_mic == 1 ) ; [ just the length in the pack… in BLECrypt_if_encrypt_packet() argument
201 if ( length > 0 ) { //otherwise there is nothing to encrypt and for sure no MIC to add in BLECrypt_if_encrypt_packet()
202 uint8_t packet_payload_len = length - generate_mic*4; in BLECrypt_if_encrypt_packet()
226 encrypted_payload[length - 4 ] = 0; in BLECrypt_if_encrypt_packet()
227 encrypted_payload[length - 3 ] = 'M'; in BLECrypt_if_encrypt_packet()
228 encrypted_payload[length - 2 ] = 'I'; in BLECrypt_if_encrypt_packet()
229 encrypted_payload[length - 1 ] = 'C'; in BLECrypt_if_encrypt_packet()
238 …int length, //including MIC lenght if (has_mic == 1) ; [ just the length in the packet head… in BLECrypt_if_decrypt_packet() argument
245 if ( length == 0 ){ //otherwise there is nothing to decrypt and no MIC to check in BLECrypt_if_decrypt_packet()
250 if ( has_mic && ( length < 5 ) ){ in BLECrypt_if_decrypt_packet()
259 uint8_t packet_payload_len = length - has_mic*4; in BLECrypt_if_decrypt_packet()