Should Ecto.Type implementations of equal?/2
be constant time?
#37
Answered
by
danielberkompas
halostatue
asked this question in
Q&A
-
I’m not quite sure where the various |
Beta Was this translation helpful? Give feedback.
Answered by
danielberkompas
Jun 17, 2022
Replies: 1 comment
-
@halostatue I'm not an expert on when to use constant time, but I believe that Ecto.Type will call |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
danielberkompas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@halostatue I'm not an expert on when to use constant time, but I believe that Ecto.Type will call
equal?/2
on the unencrypted values. As a result, I don't think it's important to ensure that this is a constant time comparison.