Change the current Initialization Vector (IV) for the encryption. @param modifier a function to modify the IV in place
(Consumer<byte[]> modifier)
| 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. |
nothing calls this directly
no test coverage detected