Ported thrift_hsha to new driver