changed key length to 28 bytes and enforced appropriate advertisement packet structure