Implemented Generate Shared Key operation