From 204f295bfb48011ce691378dff2e8ecdaed40efa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Fri, 10 Aug 2018 10:10:01 -0500 Subject: [PATCH] Expected length of signature depends on its group order, not field order --- umbral/signing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbral/signing.py b/umbral/signing.py index 378b41c..e6a0ceb 100644 --- a/umbral/signing.py +++ b/umbral/signing.py @@ -50,7 +50,7 @@ class Signature: @classmethod def expected_bytes_length(cls, curve: Optional[Curve] = None) -> int: curve = curve if curve is not None else default_curve() - return 2 * curve.field_order_size_in_bytes + return 2 * curve.group_order_size_in_bytes def verify(self, message: bytes, verifying_key: UmbralPublicKey) -> bool: """