Added backend check to kdf primitives