when assigning attributes, assign the non-encrypted ones first

(so that the key, iv, etc can be passed as attributes)