Implemented key derivation, output record signing and encryption