MCPcopy Create free account
hub / github.com/apache/orc / changeIv

Method changeIv

java/core/src/java/org/apache/orc/impl/OutStream.java:108–115  ·  view source on GitHub ↗

Change the current Initialization Vector (IV) for the encryption. @param modifier a function to modify the IV in place

(Consumer<byte[]> modifier)

Source from the content-addressed store, hash-verified

106 * @param modifier a function to modify the IV in place
107 */
108 @Override
109 public void changeIv(Consumer<byte[]> modifier) {
110 if (iv != null) {
111 modifier.accept(iv);
112 resetState();
113 logKeyAndIv(name, key, iv);
114 }
115 }
116
117 /**
118 * Reset the cipher after changing the IV.

Callers

nothing calls this directly

Calls 3

resetStateMethod · 0.95
logKeyAndIvMethod · 0.95
acceptMethod · 0.65

Tested by

no test coverage detected