Resolve the message encryption keys, given a message context. Will use the @c ctx::app_idx and @c ctx::net_idx fields to find a pair of message encryption keys. If @c ctx::app_idx represents a device key, the @c ctx::net_idx will be used to determine the net key. Otherwise, the @c ctx::net_idx parameter will be ignored.