security: KeyChain: implement sign for buffers.