INNER CODE UNIT · Swift

message

jedisct1/swift-sodium · Sources/Sodium/Aead.swift:98

        var message = Bytes(count: authenticatedCipherText.count - ABytes)
        var messageLen: UInt64 = 0

        guard crypto_aead_aegis128l_decrypt(
            &message, &messageLen,
            nil,
            authenticatedCipherText, UInt64(authenticatedCipherText.count),
            additionalData, UInt64(additionalData?.count ?? 0),
            nonce, secretKey
        ).exitCode == .SUCCESS else { return nil }

        return message
    }
}

extension Aead.Aegis128L: NonceGenerator {
    public typealias Nonce = Bytes
    public var NonceBytes: Int {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…