impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4118: extract encryption utils from BufferedBlockMgr
Date Wed, 28 Sep 2016 23:28:27 GMT
Alex Behm has posted comments on this change.

Change subject: IMPALA-4118: extract encryption utils from BufferedBlockMgr

Patch Set 9:

File be/src/util/

Line 78:     SeedOpenSSLRNG();
> The RNG is global. Was the concern performance?
Concern was not really about perf, but about making the behavior as simple/understandable
as possible.
If the RNG was thread-local some threads might never reseed their RNG because they never happen
to hit the right global counter value, so that would have been wrong.

A global RNG and a global counter seem correct and easy to understand, so I'm happy.

Might be worth adding a comment somewhere that the RNG is global.
File be/src/util/openssl-util.h:

Line 35:  public:
> I thought about it and it seemed mostly not useful, since verification agai
How can you be sure the verification will fail? It seems like there's a remote chance that
the hash_ will be initialized to a value that coincidentally matches the hash of the data
you are passing in Verify(), but not the hash that would have been computed in Compute().
That chance even exists if we explicitly zero out hash_ or initialise it in some other way.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: Ibebe431f69c3c569cbff68171beaa32ef2ab03b6
Gerrit-PatchSet: 9
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Tim Armstrong <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Michael Ho <>
Gerrit-Reviewer: Tim Armstrong <>
Gerrit-HasComments: Yes

View raw message