NORX32-4-1
Dart
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
norx.dart
norx3241.dart

README.md

import 'dart:typed_data';
import 'norx.dart';

void main() {
    var k = new Uint8List(NORX_BYTES_KEY);
    var n = new Uint8List(NORX_BYTES_NONCE);
    var h = new Uint8List(0);
    var p = new Uint8List(0);
    var t = new Uint8List(0);

    var a = norxEncrypt(k, n, h, p, t);
    print(a.length == NORX_BYTES_TAG);
    var b = norxDecrypt(k, n, h, a, t);
    print(b);
}