Skip to content

Should Ecto.Type implementations of equal?/2 be constant time? #37

Answered by danielberkompas
halostatue asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danielberkompas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #16 on June 17, 2022 16:21.