tuweni / org.apache.tuweni.crypto.sodium / XChaCha20Poly1305 / isAvailable

isAvailable

static fun isAvailable(): Boolean (source)

Check if Sodium and the XChaCha20Poly1305 algorithm is available.

XChaCha20Poly1305 is supported in sodium native library version >= 10.0.12.

Return
Boolean: true if Sodium and the XChaCha20Poly1305 algorithm is available.