Skip to content

Commit bb90821

Browse files
author
tom zhou
committed
added final constraint
1 parent ce93f94 commit bb90821

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/com/iwebpp/crypto/TweetNacl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public static KeyPair keyPair_fromSecretKey(byte [] secretKey) {
368368
* @description
369369
* Secret Box algorithm, secret key
370370
* */
371-
public static class SecretBox {
371+
public static final class SecretBox {
372372

373373
private final static String TAG = "SecretBox";
374374

@@ -1149,7 +1149,7 @@ private static int crypto_onetimeauth(
11491149
* Port of Andrew Moon's Poly1305-donna-16. Public domain.
11501150
* https://github.com/floodyberry/poly1305-donna
11511151
*/
1152-
public static class poly1305 {
1152+
public static final class poly1305 {
11531153

11541154
private byte[] buffer;
11551155
private int[] r;

src/com/iwebpp/crypto/TweetNaclFast.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public static KeyPair keyPair_fromSecretKey(byte [] secretKey) {
387387
* @description
388388
* Secret Box algorithm, secret key
389389
* */
390-
public static class SecretBox {
390+
public static final class SecretBox {
391391

392392
private final static String TAG = "SecretBox";
393393

@@ -1450,7 +1450,7 @@ public static int crypto_stream_xor(byte [] c,int cpos, byte [] m,int mpos, long
14501450
* Port of Andrew Moon's Poly1305-donna-16. Public domain.
14511451
* https://github.com/floodyberry/poly1305-donna
14521452
*/
1453-
public static class poly1305 {
1453+
public static final class poly1305 {
14541454

14551455
private byte[] buffer;
14561456
private int[] r;

0 commit comments

Comments
 (0)