aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeFunctionscan.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2025-04-02 15:32:40 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2025-04-02 15:32:40 +0300
commit09be39112654c3f158098fdb5f820143c0330763 (patch)
tree1864a2d06bac4af18cd9c62dbd2db638a8815991 /src/backend/executor/nodeFunctionscan.c
parent85d799ba8a7fe3f6a462fcccbb449e08d21f4ea4 (diff)
downloadpostgresql-09be39112654c3f158098fdb5f820143c0330763.tar.gz
postgresql-09be39112654c3f158098fdb5f820143c0330763.zip
Add timingsafe_bcmp(), for constant-time memory comparison
timingsafe_bcmp() should be used instead of memcmp() or a naive for-loop, when comparing passwords or secret tokens, to avoid leaking information about the secret token by timing. This commit just introduces the function but does not change any existing code to use it yet. Co-authored-by: Jelte Fennema-Nio <github-tech@jeltef.nl> Discussion: https://www.postgresql.org/message-id/7b86da3b-9356-4e50-aa1b-56570825e234@iki.fi
Diffstat (limited to 'src/backend/executor/nodeFunctionscan.c')
0 files changed, 0 insertions, 0 deletions