path # lines of code Applications/Lightbulb/App.c 148 Applications/Lightbulb/App.h 44 Applications/Lightbulb/DB.c 419 Applications/Lightbulb/DB.h 30 Applications/Lightbulb/Main.c 212 Applications/Lock/App.c 222 Applications/Lock/App.h 63 Applications/Lock/DB.c 527 Applications/Lock/DB.h 34 Applications/Lock/Main.c 212 Applications/Main.c 212 External/Base64/util_base64.c 120 External/Base64/util_base64.h 18 External/HTTP/util_http_reader.c 482 External/HTTP/util_http_reader.h 43 External/JSON/util_json_reader.c 629 External/JSON/util_json_reader.h 34 HAP/HAP+Internal.h 75 HAP/HAP+KeyValueStoreDomains.h 27 HAP/HAP.h 995 HAP/HAPAccessory+Info.c 158 HAP/HAPAccessory+Info.h 22 HAP/HAPAccessoryServer+Internal.h 177 HAP/HAPAccessoryServer+Reset.c 61 HAP/HAPAccessoryServer.c 1381 HAP/HAPAccessorySetup.c 156 HAP/HAPAccessorySetup.h 41 HAP/HAPAccessorySetupInfo.c 387 HAP/HAPAccessorySetupInfo.h 27 HAP/HAPAccessoryValidation.c 702 HAP/HAPAccessoryValidation.h 18 HAP/HAPBLEAccessoryServer+Advertising.c 900 HAP/HAPBLEAccessoryServer+Advertising.h 53 HAP/HAPBLEAccessoryServer+Broadcast.c 233 HAP/HAPBLEAccessoryServer+Broadcast.h 37 HAP/HAPBLEAccessoryServer.c 178 HAP/HAPBLEAccessoryServer.h 68 HAP/HAPBLECharacteristic+Broadcast.c 324 HAP/HAPBLECharacteristic+Broadcast.h 44 HAP/HAPBLECharacteristic+Configuration.c 176 HAP/HAPBLECharacteristic+Configuration.h 30 HAP/HAPBLECharacteristic+Signature.c 62 HAP/HAPBLECharacteristic+Signature.h 21 HAP/HAPBLECharacteristic+Value.h 35 HAP/HAPBLECharacteristic.c 14 HAP/HAPBLECharacteristic.h 19 HAP/HAPBLECharacteristicParseAndWriteValue.c 506 HAP/HAPBLECharacteristicReadAndSerializeValue.c 297 HAP/HAPBLEPDU+TLV.c 640 HAP/HAPBLEPDU+TLV.h 75 HAP/HAPBLEPDU.c 526 HAP/HAPBLEPDU.h 84 HAP/HAPBLEPeripheralManager.c 1318 HAP/HAPBLEPeripheralManager.h 25 HAP/HAPBLEProcedure.c 1030 HAP/HAPBLEProcedure.h 59 HAP/HAPBLEProtocol+Configuration.c 159 HAP/HAPBLEProtocol+Configuration.h 33 HAP/HAPBLEService+Signature.c 17 HAP/HAPBLEService+Signature.h 18 HAP/HAPBLESession.c 269 HAP/HAPBLESession.h 35 HAP/HAPBLETransaction.c 243 HAP/HAPBLETransaction.h 68 HAP/HAPBitSet.c 25 HAP/HAPBitSet.h 26 HAP/HAPCharacteristic.c 1480 HAP/HAPCharacteristic.h 438 HAP/HAPCharacteristicTypes+TLV.h 16 HAP/HAPCharacteristicTypes.c 136 HAP/HAPCharacteristicTypes.h 469 HAP/HAPDeviceID.c 65 HAP/HAPDeviceID.h 28 HAP/HAPIP+ByteBuffer.c 41 HAP/HAPIP+ByteBuffer.h 28 HAP/HAPIPAccessory.c 1615 HAP/HAPIPAccessory.h 35 HAP/HAPIPAccessoryProtocol.c 2024 HAP/HAPIPAccessoryProtocol.h 131 HAP/HAPIPAccessoryServer.c 3765 HAP/HAPIPAccessoryServer.h 134 HAP/HAPIPCharacteristic.c 49 HAP/HAPIPCharacteristic.h 22 HAP/HAPIPSecurityProtocol.c 101 HAP/HAPIPSecurityProtocol.h 25 HAP/HAPIPServiceDiscovery.c 207 HAP/HAPIPServiceDiscovery.h 24 HAP/HAPIPSession.h 47 HAP/HAPJSONUtils.c 507 HAP/HAPJSONUtils.h 29 HAP/HAPLegacyImport.c 186 HAP/HAPLegacyImport.h 48 HAP/HAPLog+Attributes.h 828 HAP/HAPMACAddress.c 64 HAP/HAPMACAddress.h 21 HAP/HAPMFiAuth.h 32 HAP/HAPMFiHWAuth+Types.h 71 HAP/HAPMFiHWAuth.c 417 HAP/HAPMFiHWAuth.h 41 HAP/HAPMFiTokenAuth.c 105 HAP/HAPMFiTokenAuth.h 28 HAP/HAPPDU.c 21 HAP/HAPPDU.h 31 HAP/HAPPairing.c 114 HAP/HAPPairing.h 79 HAP/HAPPairingBLESessionCache.c 87 HAP/HAPPairingBLESessionCache.h 31 HAP/HAPPairingPairSetup.c 1114 HAP/HAPPairingPairSetup.h 28 HAP/HAPPairingPairVerify.c 871 HAP/HAPPairingPairVerify.h 27 HAP/HAPPairingPairings.c 854 HAP/HAPPairingPairings.h 27 HAP/HAPRequestHandlers+AccessoryInformation.c 213 HAP/HAPRequestHandlers+AccessoryInformation.h 71 HAP/HAPRequestHandlers+HAPProtocolInformation.c 33 HAP/HAPRequestHandlers+HAPProtocolInformation.h 23 HAP/HAPRequestHandlers+Pairing.c 70 HAP/HAPRequestHandlers+Pairing.h 58 HAP/HAPRequestHandlers.c 33 HAP/HAPRequestHandlers.h 75 HAP/HAPServiceTypes.c 43 HAP/HAPServiceTypes.h 104 HAP/HAPSession.c 640 HAP/HAPSession.h 154 HAP/HAPStringBuilder.c 72 HAP/HAPStringBuilder.h 28 HAP/HAPTLV+Internal.h 438 HAP/HAPTLV.c 458 HAP/HAPTLVMemory.c 35 HAP/HAPTLVReader.c 1067 HAP/HAPTLVWriter.c 573 HAP/HAPUUID.c 130 HAP/HAPUUID.h 28 HAP/HAPVersion.c 45 PAL/Crypto/MbedTLS/Ed25519/BaseTypes.h 132 PAL/Crypto/MbedTLS/Ed25519/apple.h 5 PAL/Crypto/MbedTLS/Ed25519/base_folding8.h 1026 PAL/Crypto/MbedTLS/Ed25519/curve25519_mehdi.c 293 PAL/Crypto/MbedTLS/Ed25519/curve25519_mehdi.h 101 PAL/Crypto/MbedTLS/Ed25519/curve25519_order.c 79 PAL/Crypto/MbedTLS/Ed25519/curve25519_utils.c 93 PAL/Crypto/MbedTLS/Ed25519/ed25519_sign.c 189 PAL/Crypto/MbedTLS/Ed25519/ed25519_signature.h 43 PAL/Crypto/MbedTLS/Ed25519/ed25519_verify.c 197 PAL/Crypto/MbedTLS/HAPMbedTLS.c 604 PAL/Crypto/OpenSSL/HAPOpenSSL.c 518 PAL/Darwin/HAPPlatform+Init.h 23 PAL/Darwin/HAPPlatform.m 1 PAL/Darwin/HAPPlatformAbort.m 1 PAL/Darwin/HAPPlatformAccessorySetup+Init.h 33 PAL/Darwin/HAPPlatformAccessorySetup.m 1 PAL/Darwin/HAPPlatformAccessorySetupDisplay.m 1 PAL/Darwin/HAPPlatformAccessorySetupNFC.m 1 PAL/Darwin/HAPPlatformBLEPeripheralManager+Init.h 25 PAL/Darwin/HAPPlatformBLEPeripheralManager.m 544 PAL/Darwin/HAPPlatformClock.m 1 PAL/Darwin/HAPPlatformKeyValueStore+Init.h 25 PAL/Darwin/HAPPlatformKeyValueStore+SDKDomains.h 16 PAL/Darwin/HAPPlatformKeyValueStore.m 122 PAL/Darwin/HAPPlatformLog+Init.h 23 PAL/Darwin/HAPPlatformLog.m 1 PAL/Darwin/HAPPlatformMFiHWAuth+Init.h 1 PAL/Darwin/HAPPlatformMFiHWAuth.m 1 PAL/Darwin/HAPPlatformMFiTokenAuth+Init.h 1 PAL/Darwin/HAPPlatformMFiTokenAuth.m 2 PAL/Darwin/HAPPlatformRandomNumber.m 5 PAL/Darwin/HAPPlatformRunLoop+Init.h 21 PAL/Darwin/HAPPlatformRunLoop.m 24 PAL/Darwin/HAPPlatformServiceDiscovery+Init.h 28 PAL/Darwin/HAPPlatformServiceDiscovery.m 47 PAL/Darwin/HAPPlatformTCPStreamManager+Init.h 32 PAL/Darwin/HAPPlatformTCPStreamManager.m 253 PAL/Darwin/HAPPlatformTimer.m 44 PAL/HAPAssert.c 32 PAL/HAPAssert.h 94 PAL/HAPBase+CompilerAbstraction.h 229 PAL/HAPBase+Crypto.c 97 PAL/HAPBase+Double.c 15 PAL/HAPBase+Float.c 374 PAL/HAPBase+Int.c 137 PAL/HAPBase+MACAddress.c 81 PAL/HAPBase+RawBuffer.c 41 PAL/HAPBase+Sha1Checksum.c 7 PAL/HAPBase+String.c 189 PAL/HAPBase+UTF8.c 27 PAL/HAPBase.h 502 PAL/HAPCrypto.h 196 PAL/HAPLog.c 139 PAL/HAPLog.h 365 PAL/HAPPlatform.h 41 PAL/HAPPlatformAbort.h 18 PAL/HAPPlatformAccessorySetup.h 38 PAL/HAPPlatformAccessorySetupDisplay.h 25 PAL/HAPPlatformAccessorySetupNFC.h 23 PAL/HAPPlatformBLEPeripheralManager.h 126 PAL/HAPPlatformClock.h 17 PAL/HAPPlatformKeyValueStore.h 59 PAL/HAPPlatformLog.h 30 PAL/HAPPlatformMFiHWAuth.h 32 PAL/HAPPlatformMFiTokenAuth.h 38 PAL/HAPPlatformRandomNumber.h 18 PAL/HAPPlatformRunLoop.h 24 PAL/HAPPlatformServiceDiscovery.h 38 PAL/HAPPlatformSystemInit.c 1 PAL/HAPPlatformTCPStreamManager.h 69 PAL/HAPPlatformTimer.h 25 PAL/Linux/HAPPlatform+Init.h 32 PAL/Linux/HAPPlatform.c 32 PAL/Linux/HAPPlatformAbort.c 6 PAL/Linux/HAPPlatformAccessorySetup+Init.h 25 PAL/Linux/HAPPlatformAccessorySetup.c 116 PAL/Linux/HAPPlatformAccessorySetupDisplay+Init.h 26 PAL/Linux/HAPPlatformAccessorySetupDisplay.c 85 PAL/Linux/HAPPlatformAccessorySetupNFC+Init.h 45 PAL/Linux/HAPPlatformAccessorySetupNFC.c 282 PAL/Linux/HAPPlatformBLEPeripheralManager+Init.h 1 PAL/Linux/HAPPlatformBLEPeripheralManager.c 1 PAL/Linux/HAPPlatformClock.c 56 PAL/Linux/HAPPlatformFileHandle.h 40 PAL/Linux/HAPPlatformFileManager.c 370 PAL/Linux/HAPPlatformFileManager.h 45 PAL/Linux/HAPPlatformKeyValueStore+Init.h 25 PAL/Linux/HAPPlatformKeyValueStore+SDKDomains.h 16 PAL/Linux/HAPPlatformKeyValueStore.c 310 PAL/Linux/HAPPlatformLog+Init.h 23 PAL/Linux/HAPPlatformLog.c 193 PAL/Linux/HAPPlatformMFiHWAuth+Init.h 22 PAL/Linux/HAPPlatformMFiHWAuth.c 105 PAL/Linux/HAPPlatformMFiTokenAuth+Init.h 26 PAL/Linux/HAPPlatformMFiTokenAuth.c 118 PAL/Linux/HAPPlatformRandomNumber.c 36 PAL/Linux/HAPPlatformRunLoop+Init.h 21 PAL/Linux/HAPPlatformRunLoop.c 489 PAL/Linux/HAPPlatformServiceDiscovery+Init.h 33 PAL/Linux/HAPPlatformServiceDiscovery.c 195 PAL/Linux/HAPPlatformSystemCommand.c 152 PAL/Linux/HAPPlatformSystemCommand.h 29 PAL/Linux/HAPPlatformTCPStreamManager+Init.h 54 PAL/Linux/HAPPlatformTCPStreamManager.c 647 PAL/Mock/HAPPlatform+Init.h 20 PAL/Mock/HAPPlatform.c 71 PAL/Mock/HAPPlatformAbort.c 6 PAL/Mock/HAPPlatformAccessorySetup+Init.h 22 PAL/Mock/HAPPlatformAccessorySetup.c 77 PAL/Mock/HAPPlatformAccessorySetupDisplay.c 22 PAL/Mock/HAPPlatformAccessorySetupNFC.c 12 PAL/Mock/HAPPlatformBLEPeripheralManager+Init.h 69 PAL/Mock/HAPPlatformBLEPeripheralManager+Test.h 30 PAL/Mock/HAPPlatformBLEPeripheralManager.c 368 PAL/Mock/HAPPlatformClock+Test.h 17 PAL/Mock/HAPPlatformClock.c 21 PAL/Mock/HAPPlatformKeyValueStore+Init.h 34 PAL/Mock/HAPPlatformKeyValueStore.c 157 PAL/Mock/HAPPlatformLog.c 104 PAL/Mock/HAPPlatformMFiHWAuth+Init.h 21 PAL/Mock/HAPPlatformMFiHWAuth.c 105 PAL/Mock/HAPPlatformMFiTokenAuth+Init.h 23 PAL/Mock/HAPPlatformMFiTokenAuth.c 40 PAL/Mock/HAPPlatformRandomNumber.c 15 PAL/Mock/HAPPlatformRunLoop.c 20 PAL/Mock/HAPPlatformServiceDiscovery+Init.h 29 PAL/Mock/HAPPlatformServiceDiscovery+Test.h 35 PAL/Mock/HAPPlatformServiceDiscovery.c 119 PAL/Mock/HAPPlatformStartup.S 1 PAL/Mock/HAPPlatformSystemCommand.c 152 PAL/Mock/HAPPlatformSystemCommand.h 29 PAL/Mock/HAPPlatformTCPStreamManager+Init.h 55 PAL/Mock/HAPPlatformTCPStreamManager+Test.h 37 PAL/Mock/HAPPlatformTCPStreamManager.c 309 PAL/Mock/HAPPlatformTimer+Init.h 17 PAL/Mock/HAPPlatformTimer.c 99 PAL/POSIX/HAPPlatform+Init.h 32 PAL/POSIX/HAPPlatform.c 32 PAL/POSIX/HAPPlatformAbort.c 6 PAL/POSIX/HAPPlatformAccessorySetup+Init.h 25 PAL/POSIX/HAPPlatformAccessorySetup.c 116 PAL/POSIX/HAPPlatformAccessorySetupDisplay+Init.h 26 PAL/POSIX/HAPPlatformAccessorySetupDisplay.c 85 PAL/POSIX/HAPPlatformAccessorySetupNFC+Init.h 45 PAL/POSIX/HAPPlatformAccessorySetupNFC.c 282 PAL/POSIX/HAPPlatformBLEPeripheralManager+Init.h 1 PAL/POSIX/HAPPlatformBLEPeripheralManager.c 1 PAL/POSIX/HAPPlatformClock.c 56 PAL/POSIX/HAPPlatformFileHandle.h 40 PAL/POSIX/HAPPlatformFileManager.c 370 PAL/POSIX/HAPPlatformFileManager.h 45 PAL/POSIX/HAPPlatformKeyValueStore+Init.h 25 PAL/POSIX/HAPPlatformKeyValueStore+SDKDomains.h 16 PAL/POSIX/HAPPlatformKeyValueStore.c 310 PAL/POSIX/HAPPlatformLog+Init.h 23 PAL/POSIX/HAPPlatformLog.c 193 PAL/POSIX/HAPPlatformMFiHWAuth+Init.h 22 PAL/POSIX/HAPPlatformMFiHWAuth.c 105 PAL/POSIX/HAPPlatformMFiTokenAuth+Init.h 26 PAL/POSIX/HAPPlatformMFiTokenAuth.c 118 PAL/POSIX/HAPPlatformRandomNumber.c 36 PAL/POSIX/HAPPlatformRunLoop+Init.h 21 PAL/POSIX/HAPPlatformRunLoop.c 489 PAL/POSIX/HAPPlatformServiceDiscovery+Init.h 33 PAL/POSIX/HAPPlatformServiceDiscovery.c 195 PAL/POSIX/HAPPlatformSystemCommand.c 152 PAL/POSIX/HAPPlatformSystemCommand.h 29 PAL/POSIX/HAPPlatformTCPStreamManager+Init.h 54 PAL/POSIX/HAPPlatformTCPStreamManager.c 647 PAL/Raspi/HAPPlatform+Init.h 32 PAL/Raspi/HAPPlatform.c 32 PAL/Raspi/HAPPlatformAbort.c 6 PAL/Raspi/HAPPlatformAccessorySetup+Init.h 25 PAL/Raspi/HAPPlatformAccessorySetup.c 116 PAL/Raspi/HAPPlatformAccessorySetupDisplay+Init.h 26 PAL/Raspi/HAPPlatformAccessorySetupDisplay.c 85 PAL/Raspi/HAPPlatformAccessorySetupNFC+Init.h 45 PAL/Raspi/HAPPlatformAccessorySetupNFC.c 282 PAL/Raspi/HAPPlatformBLEPeripheralManager+Init.h 1 PAL/Raspi/HAPPlatformBLEPeripheralManager.c 1 PAL/Raspi/HAPPlatformClock.c 56 PAL/Raspi/HAPPlatformFileHandle.h 40 PAL/Raspi/HAPPlatformFileManager.c 370 PAL/Raspi/HAPPlatformFileManager.h 45 PAL/Raspi/HAPPlatformKeyValueStore+Init.h 25 PAL/Raspi/HAPPlatformKeyValueStore+SDKDomains.h 16 PAL/Raspi/HAPPlatformKeyValueStore.c 310 PAL/Raspi/HAPPlatformLog+Init.h 23 PAL/Raspi/HAPPlatformLog.c 193 PAL/Raspi/HAPPlatformMFiHWAuth+Init.h 22 PAL/Raspi/HAPPlatformMFiHWAuth.c 105 PAL/Raspi/HAPPlatformMFiTokenAuth+Init.h 26 PAL/Raspi/HAPPlatformMFiTokenAuth.c 118 PAL/Raspi/HAPPlatformRandomNumber.c 36 PAL/Raspi/HAPPlatformRunLoop+Init.h 21 PAL/Raspi/HAPPlatformRunLoop.c 489 PAL/Raspi/HAPPlatformServiceDiscovery+Init.h 33 PAL/Raspi/HAPPlatformServiceDiscovery.c 195 PAL/Raspi/HAPPlatformSystemCommand.c 152 PAL/Raspi/HAPPlatformSystemCommand.h 29 PAL/Raspi/HAPPlatformTCPStreamManager+Init.h 54 PAL/Raspi/HAPPlatformTCPStreamManager.c 647 Tools/AccessorySetupGenerator/Main.c 261