cbc-mac generation
setting security-related packetbuf attributes
adapting to existing style