Skip to content

Commit

Permalink
corrected namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfoolong committed Nov 23, 2023
1 parent 4400a83 commit 675d985
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ cool if you leave a follow or spend some virtual coffee.
For more demos see in folder `demo`.

```php
use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;
// convenient usage (generating random nonce and hashing keys for you)
$key = "mypassword";
$message = ["this can be any data type 😎 文 or encoding", 123];
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
},
"version": "1.0.0",
"require": {
"php": ">=8.0.0",
"ext-json": "*"
"php": ">=8.0.0"
}
}
2 changes: 1 addition & 1 deletion demo/convenient-usage.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
require __DIR__ . "/../src/Ascon.php";

use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;

// convenient usage of the ascon cipher for real world usage
// it automatically manages all the key conversion to correct key sizes
Expand Down
2 changes: 1 addition & 1 deletion demo/raw-usage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require __DIR__ . "/../src/Ascon.php";

use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;

// this show the usage of the original raw ascon encrypt/decrypt values
// you have to provide correct parameters and byte arrays to make this work
Expand Down
2 changes: 1 addition & 1 deletion src/Ascon.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace NullixAT\Ascon;
namespace Nullix\Ascon;

use Exception;

Expand Down
2 changes: 1 addition & 1 deletion tests/performance.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once __DIR__ . "/../src/Ascon.php";

use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;

$cycles = [
[
Expand Down
2 changes: 1 addition & 1 deletion tests/test-encrypt-decrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once __DIR__ . "/../src/Ascon.php";

use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;

$key20 = [
0x90,
Expand Down
2 changes: 1 addition & 1 deletion tests/test-hash.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once __DIR__ . "/../src/Ascon.php";

use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;

Ascon::$debug = false;
Ascon::$debugPermutation = false;
Expand Down
2 changes: 1 addition & 1 deletion tests/test-mac.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once __DIR__ . "/../src/Ascon.php";

use NullixAT\Ascon\Ascon;
use Nullix\Ascon\Ascon;

Ascon::$debug = false;
Ascon::$debugPermutation = false;
Expand Down

0 comments on commit 675d985

Please sign in to comment.