File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
src/test/java/com/kryptnostic/crypto Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ if( ( (branch.equals("develop") || branch.equals("master") || branch.contains("r
3636 signing {
3737 sign configurations. pom
3838 }
39-
39+
4040 publishing {
4141 repositories {
4242 maven {
Original file line number Diff line number Diff line change @@ -108,4 +108,4 @@ if( ( (branch.equals("develop") || branch.equals("master") || branch.contains("r
108108 }
109109 }
110110 }
111- }
111+ }
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public void testQueryHasherPairGeneration() throws SingularMatrixException {
5555 BitVector encryptedSearchHash = privateKey .prepareSearchToken ( fhePublicKey , term );
5656
5757 EnhancedBitMatrix expectedMatrix = EnhancedBitMatrix .squareMatrixfromBitVector ( globalHash .apply ( searchHash ) );
58+
5859 BitVector expected = BitVectors .fromMatrix ( expectedMatrix .multiply ( expectedMatrix ) );
5960
6061 Pair <SimplePolynomialFunction , SimplePolynomialFunction > p = privateKey .getQueryHasherPair (
@@ -76,6 +77,7 @@ public void testQueryHasherPairGeneration() throws SingularMatrixException {
7677 logger .info ( "Evaluation took: {} ms" , s .elapsed ( TimeUnit .MILLISECONDS ) );
7778
7879 EnhancedBitMatrix intermediateL = EnhancedBitMatrix .squareMatrixfromBitVector ( hL .apply ( encryptedSearchHash ) );
80+
7981 EnhancedBitMatrix intermediateR = EnhancedBitMatrix .squareMatrixfromBitVector ( hR .apply ( encryptedSearchHash ) );
8082
8183 EnhancedBitMatrix documentKey = privateKey .newObjectKey ();
@@ -95,5 +97,4 @@ public void testQueryHasherPairGeneration() throws SingularMatrixException {
9597 expectedMatrix ) );
9698 Assert .assertEquals ( expected , actual );
9799 }
98-
99100}
You can’t perform that action at this time.
0 commit comments