diff --git a/README.md b/README.md index 94071a4..b939e9d 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,9 @@ Implementations of cryptographic algorithms for encryption and decryption in Dar | ----------------- | -------------------------------------------------------------------------------------------------------------------- | :----------: | | XOR | `XOR`, `xor`, `xorStream` | Wikipedia | | ChaCha20 | `ChaCha20`, `chacha20`, `chacha20Stream` | RFC-8439 | -| ChaCha20/Poly1305 | `ChaCha20Poly1305`, `chacha20poly1305digest`, `chacha20poly1305verify`, `chacha20poly1305`, `chacha20poly1305Stream` | RFC-8439 | -| Salsa20 | `Salsa20`, `salsa20`, `salsa20Stream` | Snuffle 2005 | -| Salsa20/Poly1305 | `Salsa20Poly1305`, `salsa20poly1305digest`, `salsa20poly1305verify`, `salsa20poly1305`, `salsa20poly1305Stream` | Snuffle 2005 | +| ChaCha20/Poly1305 | `ChaCha20Poly1305`, `chacha20poly1305Digest`, `chacha20poly1305Verify`, `chacha20poly1305`, `chacha20poly1305Stream` | RFC-8439 | +| Salsa20 | `Salsa20`, `salsa20`, `salsa20Stream` | Snuffle-2005 | +| Salsa20/Poly1305 | `Salsa20Poly1305`, `salsa20poly1305Digest`, `salsa20poly1305Verify`, `salsa20poly1305`, `salsa20poly1305Stream` | Snuffle-2005 | ## Getting started diff --git a/benchmark/chacha20_poly1305.dart b/benchmark/chacha20_poly1305.dart index 8844207..b042d27 100644 --- a/benchmark/chacha20_poly1305.dart +++ b/benchmark/chacha20_poly1305.dart @@ -36,7 +36,7 @@ class CipherlibDigestBenchmark extends Benchmark { @override void run() { - cipher.chacha20poly1305digest(input, key, nonce: nonce); + cipher.chacha20poly1305Digest(input, key, nonce: nonce); } } diff --git a/benchmark/salsa20_poly1305.dart b/benchmark/salsa20_poly1305.dart index c40ecea..193367f 100644 --- a/benchmark/salsa20_poly1305.dart +++ b/benchmark/salsa20_poly1305.dart @@ -36,7 +36,7 @@ class CipherlibDigestBenchmark extends Benchmark { @override void run() { - cipher.salsa20poly1305digest(input, key, nonce: nonce); + cipher.salsa20poly1305Digest(input, key, nonce: nonce); } } diff --git a/lib/src/chacha20_poly1305.dart b/lib/src/chacha20_poly1305.dart index 363e422..be3187b 100644 --- a/lib/src/chacha20_poly1305.dart +++ b/lib/src/chacha20_poly1305.dart @@ -14,7 +14,7 @@ export 'algorithms/chacha20_poly1305.dart' show ChaCha20Poly1305; /// - [key] : A 32-bytes long key. /// - [nonce] : A 12-bytes long nonce. Deafult: 0 /// - [aad] : Additional authenticated data. -HashDigest chacha20poly1305digest( +HashDigest chacha20poly1305Digest( List message, List key, { List? nonce, @@ -33,7 +33,7 @@ HashDigest chacha20poly1305digest( /// - [key] : A 32-bytes long key. /// - [nonce] : A 12-bytes long nonce. Deafult: 0 /// - [aad] : Additional authenticated data. -bool chacha20poly1305verify( +bool chacha20poly1305Verify( List message, List key, List mac, { diff --git a/lib/src/salsa20_poly1305.dart b/lib/src/salsa20_poly1305.dart index 2d49dab..af08b65 100644 --- a/lib/src/salsa20_poly1305.dart +++ b/lib/src/salsa20_poly1305.dart @@ -14,7 +14,7 @@ export 'algorithms/salsa20_poly1305.dart' show Salsa20Poly1305; /// - [key] : A 16 or 32-bytes long key. /// - [nonce] : A 16-bytes long nonce. Deafult: 0 /// - [aad] : Additional authenticated data. -HashDigest salsa20poly1305digest( +HashDigest salsa20poly1305Digest( List message, List key, { List? nonce, @@ -33,7 +33,7 @@ HashDigest salsa20poly1305digest( /// - [key] : A 16 or 32-bytes long key. /// - [nonce] : A 16-bytes long nonce. Deafult: 0 /// - [aad] : Additional authenticated data. -bool salsa20poly1305verify( +bool salsa20poly1305Verify( List message, List key, List mac, {