rnewson commented on PR #5820:
URL: https://github.com/apache/couchdb/pull/5820#issuecomment-3633367432
I think the needs_upgrade logic is;
```erlang
case {TargetScheme, TargetIterations, TargetPRF} of
! {CurrentScheme, _, _} when CurrentScheme == <<"simple">> ->
false;
! {CurrentScheme, CurrentIterations, CurrentPRF} when CurrentScheme
== <<"pbkdf2">> ->
false;
{_, _, _} ->
true
end.
```
1. if the target scheme is simple and the current scheme is simple, you
don't need to upgrade (and target iterations and target prf are not relevant).
2. if the target scheme is pbkdf2 and the target scheme is pbkdf2 and the
target iterations equal the current iterations and the target prf equals the
current prf, you don't need to upgrade
3. otherwise you do need to upgrade.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]