mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
20 lines
393 B
Swift
20 lines
393 B
Swift
// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
|
|
|
|
import Sodium
|
|
|
|
public protocol NonceGenerator16ByteType {
|
|
func nonce() -> Array<UInt8>
|
|
}
|
|
|
|
extension NonceGenerator16ByteType {
|
|
|
|
}
|
|
|
|
extension OpenGroupAPI {
|
|
public class NonceGenerator16Byte: NonceGenerator, NonceGenerator16ByteType {
|
|
public var NonceBytes: Int { 16 }
|
|
|
|
public init() {}
|
|
}
|
|
}
|