-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 03/10/14 07:22, Nathan of Guardian wrote: > I have implemented support for Wifi Direct, using the same device > renaming hack I used with Bluetooth:
This is so cool! What's the max length of a device name? For aDTN we'd need to cram a signed message and its public key into each packet, with an outer layer of symmetric encryption and authentication. Using libsodium the overhead would be 32 bytes for the public key and 64 bytes for the signature (crypto_sign), plus 24 bytes for the IV and 16 bytes for the MAC (crypto_secretbox) That's 136 bytes in total. 248 bytes of Bluetooth device name = 186 bytes of base64-encoded data = 136 bytes of overhead + 50 bytes of payload. A bit on the small side. Does Wi-Fi Direct provide more space? Cheers, Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBCAAGBQJULnVPAAoJEBEET9GfxSfMAOMH/j+rj/C7tMl/IPgXbnbQf7CI JQtiPFt613GXTUlxvCpVAIJq4qn7evRDbBa6slhSYmlYGDWlXsMKOEOBowLYZbng mmpQezkbqU3OjSIol/2Lv2ExSvcqVil+yybSia8fmPgAN/XV58xTT7JWtDoWgAoT 1NY9ZNLWTcKvWYyDqZMSN0iUA5XPVmC1F6gYm4p7S4HaXM1Won8G5Uy2w9XktUZa kY62I1ieYlKSWRd0wK1HMRZRlKdgXe3+PWB4K5a6AXa94mZeOIP4goD/XX1Wc9nX QMbGrJsjf467BTDQl3l73vTK9vfGLDUh5NgU7O8e9YO5fZI2SGhBfz9ffzjjj4Y= =yZe9 -----END PGP SIGNATURE----- _______________________________________________ Guardian-dev mailing list Post: [email protected] List info: https://lists.mayfirst.org/mailman/listinfo/guardian-dev To Unsubscribe Send email to: [email protected] Or visit: https://lists.mayfirst.org/mailman/options/guardian-dev/archive%40mail-archive.com You are subscribed as: [email protected]
