pyca / pynacl

@@ -12,8 +12,6 @@
Loading
12 12
# See the License for the specific language governing permissions and
13 13
# limitations under the License.
14 14
15 -
from __future__ import absolute_import, division, print_function
16 -
17 15
from nacl import exceptions as exc
18 16
from nacl._sodium import ffi, lib
19 17
from nacl.exceptions import ensure

@@ -12,8 +12,6 @@
Loading
12 12
# See the License for the specific language governing permissions and
13 13
# limitations under the License.
14 14
15 -
from __future__ import absolute_import, division, print_function
16 -
17 15
from nacl import exceptions as exc
18 16
from nacl._sodium import ffi, lib
19 17
from nacl.exceptions import ensure

@@ -12,8 +12,6 @@
Loading
12 12
# See the License for the specific language governing permissions and
13 13
# limitations under the License.
14 14
15 -
from __future__ import absolute_import, division, print_function
16 -
17 15
from fractions import Fraction
18 16
19 17
import nacl.bindings
@@ -21,7 +19,7 @@
Loading
21 19
from nacl.utils import random
22 20
23 21
24 -
class Ristretto255Scalar(object):
22 +
class Ristretto255Scalar:
25 23
    SIZE = nacl.bindings.crypto_core_ristretto255_SCALAR_BYTES
26 24
    NONREDUCED_SIZE = (
27 25
        nacl.bindings.crypto_core_ristretto255_NONREDUCED_SCALAR_BYTES
@@ -191,7 +189,7 @@
Loading
191 189
    )
192 190
193 191
194 -
class Ristretto255Point(object):
192 +
class Ristretto255Point:
195 193
    SIZE = nacl.bindings.crypto_core_ristretto255_BYTES
196 194
    HASH_SIZE = nacl.bindings.crypto_core_ristretto255_HASH_BYTES
197 195
    ORDER = nacl.bindings.crypto_core_ristretto255_GROUP_ORDER

@@ -12,8 +12,6 @@
Loading
12 12
# See the License for the specific language governing permissions and
13 13
# limitations under the License.
14 14
15 -
from __future__ import absolute_import, division, print_function
16 -
17 15
import json
18 16
import os
19 17
from fractions import Fraction
@@ -57,7 +55,7 @@
Loading
57 55
    }
58 56
59 57
60 -
class TestRistretto255Scalar(object):
58 +
class TestRistretto255Scalar:
61 59
    order = 7237005577332262213973186563042994240857116359379907606001950938285454250989
62 60
    order_bytes = bytes.fromhex(
63 61
        "edd3f55c1a631258d69cf7a2def9de1400000000000000000000000000000010"
@@ -367,7 +365,7 @@
Loading
367 365
        assert text == "Ristretto255Scalar(123)"
368 366
369 367
370 -
class TestRistretto255Point(object):
368 +
class TestRistretto255Point:
371 369
    _vectors = _ristretto255_vectors()
372 370
    _base = bytes.fromhex(
373 371
        "e2f2ae0a6abc4e71a884a961c500515f58e30b6aa582dd8db6a65945e08d2d76"
@@ -385,7 +383,7 @@
Loading
385 383
        base = Ristretto255Point(self._base)
386 384
        point = Ristretto255Point.ZERO
387 385
388 -
        for i in range(idx):
386 +
        for __ in range(idx):
389 387
            point += base
390 388
391 389
        assert bytes(point) == encoding
@@ -612,7 +610,7 @@
Loading
612 610
            p * 2
613 611
614 612
615 -
class TestElGamal(object):
613 +
class TestElGamal:
616 614
    """
617 615
    ElGamal encryption.
618 616
    """
@@ -661,7 +659,7 @@
Loading
661 659
        assert orig_msg == decr_msg
662 660
663 661
664 -
class TestShamir(object):
662 +
class TestShamir:
665 663
    """
666 664
    Shamir's Secret Sharing
667 665
    """
Files Coverage
src/nacl 100.00%
tests 100.00%
Project Totals (52 files) 100.00%
Python 3.9 on Windows x64
Build #848492179 -
Python 3.6 on Windows x86
Build #848492179 -
Python 3.7 on Windows x86
Build #848492179 -
Python 3.8 on Windows x86
Build #848492179 -
Python 3.5 on Windows x86
Build #848492179 -
Python 3.9 on Windows x86
Build #848492179 -
Python 3.9 (minimal build) on macOS
Build #848492179 -
Python 3.9system on macOS
Build #848492179 -
Python 3.5 on macOS
Build #848492179 -
Python 3.9 on macOS
Build #848492179 -
Python 3.8 on macOS
Build #848492179 -
Python 3.5 on macOS
Build #848492179 -
Python 3.7 on macOS
Build #848492179 -
Python 3.9 on macOS
Build #848492179 -
Python 3.9minimal on macOS
Build #848492179 -
Python 3.8 on Windows x64
Build #848492179 -
Python 3.5 on Windows x64
Build #848492179 -
Python 3.7 on Windows x64
Build #848492179 -
Python 3.6 on Windows x64
Build #848492179 -
Python pypy3 on macOS
Build #848492179 -
Python 3.6 on macOS
Build #848492179 -
1
comment: false
2
coverage:
3
    status:
4
        patch:
5
            default:
6
                target: '100'
7
        project:
8
            default:
9
                target: '100'
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading