Document planned removal of BCUtil.constantTimeAreEquals(char[], char[])

This commit is contained in:
Paul Schaub 2022-04-04 13:08:24 +02:00
parent c8a1ca5b29
commit 2065b4e4ed
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ public final class BCUtil {
* test will fail. For best results always pass the expected value
* as the first parameter.
*
* TODO: This method was proposed as a patch to BC:
* https://github.com/bcgit/bc-java/pull/1141
* Replace usage of this method with upstream eventually.
* Remove once BC 172 gets released, given it contains the patch.
*
* @param expected first array
* @param supplied second array
* @return true if arrays equal, false otherwise.