mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 08:03:10 +02:00
Move CONFIG.NONCE_SIZE to acme.other
This commit is contained in:
@@ -10,8 +10,6 @@ import zope.interface
|
|||||||
from letsencrypt.acme import interfaces
|
from letsencrypt.acme import interfaces
|
||||||
from letsencrypt.acme import jose
|
from letsencrypt.acme import jose
|
||||||
|
|
||||||
from letsencrypt.client import CONFIG
|
|
||||||
|
|
||||||
|
|
||||||
class Signature(object):
|
class Signature(object):
|
||||||
"""ACME signature.
|
"""ACME signature.
|
||||||
@@ -28,7 +26,8 @@ class Signature(object):
|
|||||||
"""
|
"""
|
||||||
zope.interface.implements(interfaces.IJSONSerializable)
|
zope.interface.implements(interfaces.IJSONSerializable)
|
||||||
|
|
||||||
NONCE_LEN = CONFIG.NONCE_SIZE
|
NONCE_LEN = 16
|
||||||
|
"""Size of nonce in bytes, as specified in the ACME protocol."""
|
||||||
|
|
||||||
def __init__(self, alg, sig, nonce, jwk):
|
def __init__(self, alg, sig, nonce, jwk):
|
||||||
self.alg = alg
|
self.alg = alg
|
||||||
|
|||||||
@@ -72,9 +72,6 @@ CLIENT_CHALLENGES = frozenset(
|
|||||||
S_SIZE = 32
|
S_SIZE = 32
|
||||||
"""Byte size of S"""
|
"""Byte size of S"""
|
||||||
|
|
||||||
NONCE_SIZE = 16
|
|
||||||
"""byte size of Nonce"""
|
|
||||||
|
|
||||||
# Key Sizes
|
# Key Sizes
|
||||||
RSA_KEY_SIZE = 2048
|
RSA_KEY_SIZE = 2048
|
||||||
"""Key size"""
|
"""Key size"""
|
||||||
|
|||||||
Reference in New Issue
Block a user