Update edoc for decode callback

Add optional security namespace to decode callback edoc and update
encode spec.