it: added key and key size to callback