Coverage Summary for Class: GoAltBN128 (co.rsk.pcc.altBN128.impls)
Class |
Class, %
|
Method, %
|
Line, %
|
GoAltBN128 |
0%
(0/1)
|
0%
(0/4)
|
0%
(0/13)
|
1 package co.rsk.pcc.altBN128.impls;
2
3 import co.rsk.altbn128.cloudflare.JniBn128;
4
5 public class GoAltBN128 extends AbstractAltBN128 {
6 @Override
7 public int add(byte[] data, int length) {
8 byte[] jniOutput = new byte[64];
9 int res = new JniBn128().add(data, length, jniOutput);
10 output = jniOutput;
11 return res;
12 }
13
14 @Override
15 public int mul(byte[] data, int length) {
16 byte[] jniOutput = new byte[64];
17 int res = new JniBn128().mul(data, length, jniOutput);
18 output = jniOutput;
19 return res;
20 }
21
22 @Override
23 public int pairing(byte[] data, int length) {
24 byte[] jniOutput = new byte[32];
25 int res = new JniBn128().pairing(data, length, jniOutput);
26 output = jniOutput;
27 return res;
28 }
29 }