You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
* How can I create or open a libsodium compatible sealed box in pure Java</a>.
19
+
* <br/>
20
+
* The main difference is on this version is being used the <a href="https://github.com/bcgit/bc-java/blob/master/core/src/main/java/org/bouncycastle/crypto/digests/Blake2bDigest.java">
21
+
* org.bouncycastle.crypto.digests.Blake2bDigest</a> from <a href="https://github.com/bcgit/bc-java">The Bouncy Castle Crypto Package For Java</a>
22
+
* instead of <a href="https://github.com/alphazero/Blake2b">Blake2b</a> to get the Blake2b hash.
23
+
* <br/><br/>
24
+
*
25
+
* Has also a dependency on TweetNaclFast from <a href="https://github.com/InstantWebP2P/tweetnacl-java">https://github.com/InstantWebP2P/tweetnacl-java</a>.
26
+
*
27
+
*
28
+
*/
29
+
publicclassSealedBoxUtility {
30
+
31
+
32
+
publicstaticfinalintcrypto_box_NONCEBYTES = 24;
33
+
//public static final int crypto_box_PUBLICKEYBYTES = 32;
34
+
//public static final int crypto_box_MACBYTES = 16;
35
+
//public static final int crypto_box_SEALBYTES = (crypto_box_PUBLICKEYBYTES + crypto_box_MACBYTES);
36
+
37
+
// libsodium
38
+
// int crypto_box_seal(unsigned char *c, const unsigned char *m,
39
+
// unsigned long long mlen, const unsigned char *pk);
0 commit comments