zhuhaow/NEKit

View on GitHub
src/Crypto/Libsodium.swift

Summary

Maintainability
A
0 mins
Test Coverage
import Foundation
import Sodium

open class Libsodium {
    /// This must be accessed at least once before Libsodium is used.
    public static let initialized: Bool = {
        // this is loaded lasily and also thread-safe
        _ = sodium_init()
        return true
    }()
}