check algorithm in getTSIGKey()

related #1520