Lines Matching refs:mlen
58 int mlen,
70 int mlen,
335 int mlen, // Unencrypted packet payload length (i.e. *not* including header and MAC/MIC) in BLECrypt_if_encrypt_packet_v3() argument
351 mlen, in BLECrypt_if_encrypt_packet_v3()
361 mlen, in BLECrypt_if_encrypt_packet_v3()
368 …memcpy(encrypted_packet_payload_and_mac, mdata, BS_MAX(mlen, 0) /*payload excluding possible mic*/… in BLECrypt_if_encrypt_packet_v3()
370 encrypted_packet_payload_and_mac[mlen] = 'M'; in BLECrypt_if_encrypt_packet_v3()
373 encrypted_packet_payload_and_mac[mlen+1] = 'I'; in BLECrypt_if_encrypt_packet_v3()
376 encrypted_packet_payload_and_mac[mlen+2] = 'C'; in BLECrypt_if_encrypt_packet_v3()
379 encrypted_packet_payload_and_mac[mlen+i] = 0; in BLECrypt_if_encrypt_packet_v3()
389 int mlen, // Unencrypted packet payload length (i.e. *not* including header and MAC/MIC) in BLECrypt_if_decrypt_packet_v3() argument
403 mlen, in BLECrypt_if_decrypt_packet_v3()
412 if (!no_mac && (mlen < 1)) { in BLECrypt_if_decrypt_packet_v3()
415 if (mlen <= 0) { in BLECrypt_if_decrypt_packet_v3()
420 mlen, in BLECrypt_if_decrypt_packet_v3()
428 memcpy(decrypted_packet_payload, mdata_and_mac, BS_MAX(mlen - maclen,0)); in BLECrypt_if_decrypt_packet_v3()