File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ class Password
2323
2424 def initialize ( options = { } )
2525 @t_cost = options [ :t_cost ] || DEFAULT_T_COST
26- raise ArgonHashFail , "Invalid t_cost" if @t_cost < MIN_T_COST || @t_cost > MAX_T_COST
26+ raise ArgonHashFail , "Invalid t_cost" if @t_cost < MIN_T_COST || @t_cost > MAX_T_COST
2727
2828 @m_cost = options [ :m_cost ] || DEFAULT_M_COST
29- raise ArgonHashFail , "Invalid m_cost" if @m_cost < MIN_M_COST || @m_cost > MAX_M_COST
29+ raise ArgonHashFail , "Invalid m_cost" if @m_cost < MIN_M_COST || @m_cost > MAX_M_COST
3030
3131 @p_cost = options [ :p_cost ] || DEFAULT_P_COST
32- raise ArgonHashFail , "Invalid p_cost" if @p_cost < MIN_P_COST || @p_cost > MAX_P_COST
32+ raise ArgonHashFail , "Invalid p_cost" if @p_cost < MIN_P_COST || @p_cost > MAX_P_COST
3333
3434 @salt_do_not_supply = options [ :salt_do_not_supply ]
3535 @secret = options [ :secret ]
You can’t perform that action at this time.
0 commit comments