Method of generating a digital signature, method of verifying a digital signature, corresponding computer program product and device

By generating checkpoint values ​​that are executed in parallel, the computational load problem in the digital signature verification process is solved, resulting in a faster signature verification speed.

CN123187401APending Publication Date: 2026-11-27NAGRAVISION SA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580029478.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-07-16
Filing Date
2025-05-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing digital signature verification processes are computationally intensive, especially in vehicle-to-vehicle communication, blockchain, and IoT scenarios, where signature verification is slow and affects system responsiveness.

Method used

By generating checkpoint values ​​associated with digital signatures, verifiers are allowed to perform processing steps in parallel rather than sequentially, reducing computational load.

Benefits of technology

It significantly reduces the latency of digital signature verification and improves the system's response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123187401A_ABST
    Figure CN123187401A_ABST
Patent Text Reader

Abstract

A method is proposed for generating a digital signature associated with a digital message, verification of the digital signature involving evaluation of at least one mathematical function defined as a sequence of processing steps, the result of a given processing step in the sequence being used as input to a processing step in the sequence following said given processing step. Such a method comprises generating a digital signature of a digital message; determining at least one value corresponding to an expected output of a respective processing step, hereinafter referred to as a checkpoint value; and sending at least a portion of the digital signature and said at least one checkpoint value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure pertains to the field of digital signatures for digital messages.

[0002] More specifically, this disclosure relates to techniques for generating and verifying such digital signatures.

[0003] This disclosure can be applied to any technical field in which digital signatures are used and which must be verified. For example, it can be applied to secure communications, distribution of conditional access data (such as pay TV), public key infrastructure (PKI), connected devices, autonomous vehicles, digital currencies, blockchain, and other fields. Background Technology

[0004] Elliptic Curve Digital Signature Algorithm (ECDSA) is currently the most popular signature scheme, widely used in secure communication solutions, cryptocurrency platforms, and device security solutions. However, other digital signature schemes exist and are already in use, such as Schnorr signatures or Edwards Curve Digital Signature Algorithm (EdDSA). Other digital signature schemes are also predicted to be deployed in the future. The latter applies to post-quantum digital signatures, such as hash-based schemes or lattice-based schemes (e.g., Modular Lattice Digital Signature Algorithm (ML-DSA) based on the CRYSTALS-Dilithium algorithm).

[0005] All these schemes share the common characteristic of requiring a significant computational load, particularly for verifying the validity of digital signatures. However, in some cases, the speed of signature verification is crucial.

[0006] For example, this might be the case with vehicle-to-vehicle (V2V) communication frameworks, where the vehicle's safety processor must evaluate the authenticity of messages from other vehicles or road infrastructure (e.g., messages providing information about the location and speed of other vehicles). This authenticity is typically verified using digital signatures. It is estimated that, in worst-case scenarios, a vehicle's safety system must verify thousands of signatures per second, making the system's responsiveness crucial.

[0007] Another example is a platform where signatures are verified multiple times. This is similar to blockchain, where setting up a new node requires verifying all signatures (millions to billions) sequentially in the chain to achieve a trusted state. Similarly, consensus must be reached among a group of stakeholder nodes as quickly as possible. This typically means verifying a batch of signatures in the shortest possible time.

[0008] Another example is the IoT scenario, where edge devices collect numerous signatures from various devices and must enable rapid local processing and / or upgrades based on some critical messages that have been correctly verified.

[0009] Therefore, it is necessary to reduce the latency during digital signature verification. Summary of the Invention

[0010] One specific aspect of this disclosure relates to a method for generating a digital signature associated with a digital message. Verification of the digital signature involves evaluating at least one mathematical function defined as a sequence of processing steps. The result of a given processing step in the sequence is used as input to a subsequent processing step in the sequence. According to this method, a first electronic device performs: - Generate a digital signature for the digital message; - Determine at least one value corresponding to the expected output of the corresponding processing step, hereinafter referred to as the checkpoint value; and - Send at least a portion of the digital signature and the at least one checkpoint value to a second electronic device.

[0011] Therefore, this disclosure proposes a novel and inventive solution for reducing latency during digital signature verification.

[0012] More specifically, the checkpoint value sent along with the digital signature allows the second electronic device responsible for verifying the digital signature to implement the processing steps, using the corresponding checkpoint value as input, as independent processes executed in parallel. This parallel execution, rather than the sequential execution required by known techniques that do not provide checkpoint values, allows for a reduction in latency in the verification of digital signatures.

[0013] In some embodiments, the step of generating the digital signature implements an elliptic curve digital signature algorithm. The mathematical function corresponds to scalar point multiplication constructed based on point addition operations of the elliptic curve group. At least one processing step implements the addition of two points on the curve.

[0014] In some embodiments, the digital signature includes a first half and a second half. The second half is a function of the private key associated with the digital signature. The first electronic device executes: - Determine the first additional data as the function of the inverse of the latter half.

[0015] The step of sending to the second electronic device includes sending the first half of the digital signature as at least a part of it and sending the first additional data.

[0016] In the ECDSA scheme, the inverse of the latter part is used to verify the digital signature. Therefore, directly providing this inverse of the latter part to the second electronic device responsible for verifying the digital signature allows the second electronic device to avoid calculating the inverse. This further reduces the latency in digital signature verification.

[0017] In some embodiments, the digital signature includes a first half and a second half. The second half is a function of a private key associated with the digital signature. A first electronic device performs the following: determining at least one second additional data as a function resulting from an operation belonging to the group consisting of: - The product of the first half and the inverse of the second half; and - The product of the hash value of the message and the inverse of the latter half.

[0018] The transmission to the second electronic device includes the transmission of at least one second additional data.

[0019] In the ECDSA scheme, these products are used to verify digital signatures. Therefore, directly providing such products to the second electronic device responsible for verifying digital signatures allows the second electronic device to avoid calculating these products. This further reduces latency in digital signature verification.

[0020] In some embodiments, the first electronic device performs: determining at least one third additional data as a function of an operation belonging to the group consisting of: - The sum between the generator and the public key of the elliptic curve; and - The difference between the generator of the elliptic curve and the public key.

[0021] The transmission to the second electronic device includes the transmission of at least one third additional data.

[0022] These sums and differences are the input data for the Akishita ladder, an efficient implementation that allows for the verification of ECDSA-type digital signatures. Therefore, when using an Akishita ladder-based implementation, directly providing these sums and differences to the second electronic device responsible for verifying the digital signature allows for further reduction of latency in the verification process.

[0023] In some embodiments, the step of generating the digital signature implements a hash-based signature algorithm. The mathematical function corresponds to a combination of hash functions, and at least one processing step implements one of the hash functions.

[0024] In some embodiments, the step of generating the digital signature implements a lattice-based digital signature algorithm. The mathematical function corresponds to a number-theoretic transformation, and at least one processing step implements a stage of the lattice of the transformation.

[0025] Another aspect of this disclosure relates to a method for verifying a digital signature associated with a digital message. The verification of the digital signature involves evaluating at least one mathematical function defined as a sequence of processing steps. The result of a given processing step in the sequence is used as input to a processing step following that given processing step. According to this method, a second electronic device performs: - Receive at least a portion of the digital signature and at least one value corresponding to the expected output of the corresponding processing step from the first electronic device, referred to below as the checkpoint value; - Using the received at least one checkpoint value as input to a processing step following the corresponding processing step in the sequence, the at least one mathematical function is evaluated, wherein the first processing step in the sequence and the at least one processing step using the corresponding checkpoint value as input are executed independently as parallel processes; and - Verify the digital signature based on the at least one mathematical function that has been evaluated.

[0026] Therefore, by executing processing steps that use the corresponding checkpoint values ​​as input in parallel rather than sequentially, latency in verification is reduced.

[0027] In some embodiments, for at least one checkpoint value received corresponding to the expected output of the respective processing step, the second electronic device performs: - Compare the expected output with the execution output of the corresponding processing step; and - If the output and the expected output are different, information indicating that at least one received checkpoint value is inconsistent with the signature is generated.

[0028] Therefore, the consistency of the checkpoint values ​​is checked during the verification process. For example, if an inconsistency is detected, the step of verifying the digital signature using at least one evaluated mathematical function is not performed.

[0029] In some embodiments, the digital signature belongs to the elliptic curve digital signature type. The mathematical function corresponds to scalar point multiplication constructed based on point addition operations of the elliptic curve group. At least one processing step implements the addition of two points on the curve.

[0030] In some embodiments, the digital signature includes a first half and a second half, the second half being a function of a private key associated with the digital signature. The receiving step includes receiving the first half as a portion of the digital signature, and receiving first additional data as a function of the inverse of the second half.

[0031] In some embodiments, the digital signature includes a first half and a second half. The second half is a function of a private key associated with the digital signature. The receiving step includes receiving at least one second additional data as the result of a function belonging to the group consisting of: - The product of the first half and the inverse of the second half; and - The product of the hash value of the message and the inverse of the latter half.

[0032] The step of verifying the digital signature is also based on the at least one second additional data.

[0033] In some embodiments, the receiving step includes receiving at least one third additional data as the result of a function belonging to the group consisting of: - The sum between the generator and the public key of the elliptic curve; and - The difference between the generator of the elliptic curve and the public key.

[0034] Verification of the digital signature is also based on the at least one third additional data.

[0035] In some embodiments, the digital signature belongs to a hash-based signature type. The mathematical function corresponds to a combination of hash functions. At least one processing step implements one of the hash functions.

[0036] In some embodiments, the digital signature belongs to a lattice-based digital signature algorithm type. The mathematical function corresponds to a number-theoretic transformation. At least one processing step implements a level of the lattice of the transformation.

[0037] Another aspect of this disclosure relates to a computer program product comprising, when executed on a computer or processor, program code instructions for implementing (in any of the different embodiments discussed above) the method for generating a digital signature associated with a digital message.

[0038] Another aspect of this disclosure relates to a computer program product comprising, when executed on a computer or processor, program code instructions for implementing (in any of the different embodiments discussed above) the methods for verifying digital signatures associated with digital messages.

[0039] Another aspect of this disclosure relates to an electronic device comprising means configured to perform all or part of the steps of the method described above for generating a digital signature associated with a digital message (in any of the different embodiments discussed above). Therefore, the features and advantages of this device are the same as those of the corresponding steps of the method. Consequently, they will not be described in further detail.

[0040] Another aspect of this disclosure relates to an electronic device comprising means configured to perform all or part of the steps of the method described above for verifying digital signatures associated with digital messages (in any of the different embodiments discussed above). Therefore, the features and advantages of this device are the same as those of the corresponding steps of the method. Consequently, they will not be described in further detail. Attached Figure Description

[0041] Other features and advantages of the embodiments will become apparent from the following description, given by way of indicative rather than exhaustive examples, and from the accompanying drawings, in which: - Figure 1 The illustration depicts a first apparatus according to an embodiment of the present disclosure, the first apparatus including a first electronic device configured to generate a digital signature associated with a digital message to be sent to a second apparatus, the digital signature being verified by a second electronic device implemented in the second apparatus. - Figure 2 The diagram illustrates a flowchart of a method for generating a digital signature associated with a digital message according to an embodiment of the present disclosure. The method comprises... Figure 1 The first electronic device executes; - Figure 3 The diagram illustrates a flowchart of a method for verifying a digital signature associated with a digital message according to an embodiment of the present disclosure. The method comprises... Figure 1 The second electronic device performs the action; - Figure 4 The illustration shows a lattice representing number-theoretical transforms (NTTs) used in ML-DSA based on the CRYSTALS-Dilithium algorithm according to an embodiment of the present disclosure; - Figure 5 Illustrated explanation of the permitted execution according to an embodiment of this disclosure Figure 2 Each step of the Chinese method Figure 1 An example of a structural block of a first electronic device; - Figure 6 Illustrated explanation of the permitted execution according to an embodiment of this disclosure Figure 3 Each step of the Chinese method Figure 1 An example of a structural block for a second electronic device; - Figure 7 Illustrated illustration of permitted execution according to another embodiment of this disclosure. Figure 3 Each step of the Chinese method Figure 1 An example of a structural block for a second electronic device; - Figure 8 Illustrated illustration of an embodiment according to the present disclosure. Figure 7The ladder algorithm implemented in the device uses a Barrett-based reduction modulus. Example of a multiplier's structure block; - Figure 9a Illustrated illustration of an embodiment according to the present disclosure. Figure 7 Examples of structure blocks for doubling point operations in the ladder algorithm implemented in the device; and - Figure 9b Illustrated illustration of an embodiment according to the present disclosure. Figure 7 An example of a structure block for the differential point addition operation of the ladder algorithm implemented in a device. Detailed Implementation

[0042] In all the figures in this document, the same reference numerals denote similar elements and steps.

[0043] Now for reference Figure 1 We describe a first device 110 according to an embodiment of the present disclosure, the first device 110 including a first electronic device 110d configured to generate a digital signature associated with a digital message to be sent to a second device 120, the digital signature being verified by the second electronic device 120d implemented in the second device 120.

[0044] For example, the first device 110 is a car that needs to send digital messages to another car, which is here in the form of the second device 120. In another example, the first device 110 is a content provider's server that needs to send digital messages (e.g., including one or more chunks of content) to a receiver, which is here in the form of the second device 120. In yet another example, the first device 110 is a server in a blockchain that needs to send digital messages to another server in the blockchain, which is here in the form of the second device 120.

[0045] Back Figure 1 The first device 110 is communicatively connected to the second device 120 via a communication network 130 that implements a wired broadband communication link (e.g., an xDSL communication link). However, in some embodiments, the communication network 130 implements a wireless communication link. In such cases, the communication network 130 is based, for example, on a cellular protocol (e.g., a 3GPP 2G, 3G, 4G, or 5G protocol) or on a WiMAX protocol.

[0046] Back Figure 1The digital message sent by the first device 110 is associated with a digital signature. Within the scope of this disclosure, verification of a digital signature involves evaluating at least one mathematical function defined as a sequence of processing steps. The result of a given processing step in the sequence is used as the input to the processing step following that given processing step. Thus, the processing steps form a daisy chain that uses the result of a given processing step in the chain as the input to the next processing step in the chain.

[0047] The following combination Figure 2 and Figure 3 The mathematical function depends on the digital signature scheme under consideration. Similarly, depending on the embodiment, all or part of the signature is sent to the second device 120 for verification.

[0048] To reduce the latency during the verification of digital signatures by the second device 120, the first device 110 performs... Figure 2 The method for generating digital signatures. More specifically, the first device 110 determines at least one checkpoint value corresponding to the expected output of the corresponding processing step of the sequence of mathematical functions under consideration. Such checkpoint values ​​are sent to the second device 120 to allow the second device 20 to implement the processing steps using the corresponding checkpoint values ​​as input as independent processes executed in parallel.

[0049] See now Figure 2 We describe a method for generating a digital signature associated with a digital message according to an embodiment of the present disclosure, the method being performed by a first device 110.

[0050] In step S210, the first device 110 generates a digital signature for the digital message. As described above, verifying the digital signature involves evaluating at least one mathematical function defined as a sequence of processing steps. The result of a given processing step in the sequence is used as the input to the processing step following that given processing step in the sequence.

[0051] In step S220, the first device 110 determines at least one checkpoint value corresponding to the expected output of the corresponding processing step.

[0052] ECDSA situation

[0053] For example, in the case of ECDSA, in the prime field The Short Weierstrass elliptic curve E defined on the above is a set of points Among them, including those recorded as Together with the point of infinity, and belong And satisfy the equation curve E: (1) Where parameters Make the discriminant Not equal to zero modulus The group laws of elliptic curves are defined by the addition of two points on the curve: (2) The following are ways to obtain multiples of points: (3) To construct a cryptographic scheme, it is necessary to utilize the methods described above. , , and the following additional element domain parameters = { , , , , , h}: By its affine coordinates Defined base point The base point is Points of prime order; The level ; Cofactor .

[0054] The operation known as scalar dot multiplication is based on the dot addition operation of the elliptic curve group: (4) in It is an integer. yes point.

[0055] Given ECDSA domain parameters Key pair (in and the required hash function The process of generating an ECDSA signature is given by, for example, the following algorithm (Algorithm 1):

[0056] Conversely, verify the generated signature. The process is given by the following algorithm (Algorithm 2):

[0057] To reduce latency in message verification, we turn our attention to minimizing latency in scalar dot multiplication.

[0058] The key consideration here is that the verifier's task is not to perform a double scalar point multiplication. Instead, the verifier's goal is to verify that the result of the double scalar point multiplication is indeed as expected, i.e., the x-coordinate of the resulting point equals r modulo n. For example, the signer or a previous verifier may have previously undergone this process during generation (a step performed in many systems to verify the consistency of the generated signature, if not mandatory) or later. In this case, the signer (or a third party) can append a certain amount of additional data to the signature to simplify further multiple verifications.

[0059] To illustrate this behavior in a non-restrictive manner, for simplicity, we first analyze the case of single-scalar dot multiplication: if the scalar is not secret (as in the case of signature verification), then irregular algorithms can be used. Let's consider the most basic technique, the doubling and addition algorithm without precomputation (right-to-left version). The goal is to compute... Given an m-bit scalar The binary representation of is Let the point at infinity be denoted as Its working principle is as follows (Algorithm 3):

[0060] We observe that this is a sequential process. However, if the above algorithm has already been executed once, then at the end of each i-th iteration of the loop... and The values ​​can be saved as checkpoint values. We represent them as T. i R i ,in , . The value is the result of the calculation, that is... And value Unused. If someone then needs to verify the correctness of the calculation given all checkpoint values, he / she can perform the verification as follows (Algorithm 4):

[0061] We have switched from a fully sequential approach to a fully parallel approach because all iterations of the loop in Algorithm 4 can be executed in parallel. The returned result is true, for example, if all partial results are true. If the verifier has sufficient computational resources, it can allocate one resource specifically for each iteration. The latency of the verification process is limited to the latency of a single point addition (or point doubling) operation because for each value of i, and All computations can be performed in parallel. Essentially, all the computing resources of the verifier are used in parallel to verify the double-point chain. addition chain Is it related to scalar? The values ​​of the bits are consistent.

[0062] The case of double scalar dot multiplication is no different. We can use any known algorithm to compute it, save all its intermediate values ​​as checkpoint values, and append them to the signature. The verifier then uses the provided data and sufficient computational resources to perform verification in parallel for all iterations. This means that the latency of the signature verification algorithm can be as low as a single addition operation.

[0063] The number of checkpoint values ​​can be freely chosen. Instead of a single iteration of the verification ladder algorithm, computational resources can be allocated to sections, each containing several adjacent iterations. This is an efficient way to adjust the parallelization factor. The signer can choose how many checkpoint values ​​to provide to the verifier to simplify their task, for example, by keeping the signature size at a reasonable level. Note that whenever the checkpoint value remains constant from one processing step to the next, i.e., in the algorithm described above... In practice, it is not necessary to attach the corresponding checkpoint value (we only need to indicate...). This fact alone is sufficient.

[0064] Therefore, in the case of ECDSA, verification involves at least one mathematical function corresponding to a scalar dot product constructed based on the dot addition operation of the elliptic curve group, and at least one processing step to implement the addition of two points on the curve.

[0065] The same method applies to other digital signature schemes where verification involves evaluating such scalar dot multiplication. This is the case, for example, with EdDSA signatures or Schnorr signatures.

[0066] Hash-based signature cases

[0067] For hash-based signatures, the task is simple because many hash chains need to be computed during verification. Typically, these are sequential hash chains. Verification can be in the form of, for example, Parallelization is achieved with the help of checkpoint values. In this example, we do indeed obtain this. .

[0068] Therefore, in the case of hash-based signatures, verification involves at least one mathematical function corresponding to a combination of hash functions, and at least one processing step implementing one of the hash functions.

[0069] ML-DSA situation

[0070] ML-DSA (e.g., ML-DSA based on the CRYSTALS-Dilithium algorithm) is a lattice-based scheme. In this case, checkpoint values ​​that can be introduced as intermediate levels within the lattice can be identified. More specifically, checkpoint values ​​can be introduced in intermediate levels of the lattice representing number-theoretic transformations (NTTs). In a non-restrictive example of CRYSTALS-Dilithium, in Figure 4 In the NTT lattice shown in the diagram, checkpoint values ​​are inserted after each level, as indicated by the dashed line 400 in the figure, thus creating conditions for fully parallel verification of the computation.

[0071] Therefore, in the case of ML-DSA, verification involves at least one mathematical function corresponding to NTT, and at least one processing step implements a level of the lattice of the transformation.

[0072] Back Figure 2 In step S230, the first device 110 determines additional data. In step S240, the first device 110 sends at least a portion of the digital signature, the additional data, and at least one checkpoint value to the second device 120.

[0073] For example, reconsidering the ECDSA case, and more specifically Algorithm 2 shown above, we know that signature verification involves determining... Modular inverse operation.

[0074] Modular inverse operations are computationally quite cumbersome. Ideally, they should be removed from Elliptic Curve Cryptography (ECC) implementations. However, known ECC libraries still perform such modular inverse operations, for example, during ECDSA signature verification. Referring to Algorithm 2 above, we know that the first modular inverse operation occurs at the beginning of the verification process when the verifier needs to compute two scalars. To further calculate points Time. This needs to be determined. ,because and However, it can be noted that Its own value is unnecessary for the execution of Algorithm 2, as its sole purpose is computation. Therefore, keeping the signature size unchanged, we can rewrite it as follows: Instead In this way, the verifier can calculate the result using only two modular multiplications. Then, the double scalar multiplication continues. Therefore, this further reduces the latency in digital signature verification.

[0075] Some might think that formatting the signature as More work would be done on the generator side, but that's not the case. Following Algorithm 1 as shown above, the signer must perform an inversion operation to obtain... This way he can calculate using two multiplications and one addition. However, the signatory can directly obtain [the benefits]. As This also requires one inversion operation, two multiplications, and one addition, that is, the same number of operations of the same type.

[0076] Therefore, in some embodiments where the digital signature belongs to the ECDSA type, the digital signature includes a first half (e.g., ) and the second half (e.g. The second half is the private key (e.g., the private key associated with the digital signature). The function of ). In some of these embodiments, in step S230, the first device 110 determines first additional data (e.g., the function of the inverse of the second half) of the function. In step S240, the first device 110 sends the first half of the digital signature as a portion of the digital signature to the second device 120, and sends first additional data (e.g., the first half of the signature). and the first additional data ).

[0077] However, we can go a step further. In fact, referring again to Algorithm 2, we know that the second modular inverse operation is due to the following fact: at the computation point Afterwards, the verifying party needs to check whether... For simplicity, It is calculated using Jacobian, projective, or other inverse coordinate representations. Therefore, it seems necessary to return to... The affine representation of always requires an inversion operation. However, in reality, given... The projection indicates that the verifier can easily check whether a simple multiplication is needed. .Notice, It was never used for signature verification, so strictly speaking, there is no need to restore it.

[0078] For compatibility reasons, the signature is formatted as follows: This may not always be possible. In some embodiments, the signature size can be increased and stored as... That is, using additional data The extended original signature. The verifier can then immediately begin performing scalar dot multiplication. In parallel with this, the verifier can verify that the provided value makes... and In fact, otherwise the additional information in the signature might be unreliable. These two modulo-n multiplications can be run in parallel with scalar point multiplication, and therefore can be performed in parallel HW or SW implementations. The total latency of verification is simply reduced to the computation... This reduces latency. This further reduces latency in digital signature verification.

[0079] Therefore, in some embodiments where the digital signature belongs to the ECDSA type, the digital signature includes a first half (e.g., ) and the second half (e.g. The second half is the private key (e.g., the private key associated with the digital signature). The function of ). In some embodiments of these embodiments, in step S230, the first device 110 determines at least one second additional data (e.g., the result of an operation belonging to the following group) of the function. and / or The group includes: - The product between the inverse of the first half and the second half (e.g.) );and - The product between the hash of the message and the inverse of the second half (e.g., ).

[0080] In step S240, the first device 110 sends at least one second additional data to the second device 120.

[0081] Reconsidering the ECDSA case, let's now consider using the Shamir trick (1-bit window) to calculate on the general short Weierstrass curve using affine addition and doubling formulas. This is the case where any curve can be reduced to this form. Therefore, this technique is universal and applicable to all standard curves. For clarity, we assume here that the verifier obtains the maximum number of checkpoint values, i.e., the result of all addition and doubling operations. The coordinates of each checkpoint value are given in affine form, thus pushing more work (especially inversion operations) to the generator side.

[0082] For simplicity, we will only use the formula for the X-coordinate. The verification will be limited to the X-coordinate of the point, and the sequential verification method will use the X-step algorithm only to calculate the point. The situation was no different, and its X-coordinate was ultimately verified to be equal to... In other words, the ambiguity of the sign at the Y-coordinate of the intermediate point (i.e., the checkpoint value) and the Y-coordinate of the result can be considered inherent in the signature verification process.

[0083] Each iteration of the Shamir technique requires... (No addition) , or The addition depends on the two scalars. The two bits are then doubled. There is a checkpoint value for the result of the addition and a checkpoint value for the result of the doubling operation, so they can be verified in parallel.

[0084] The affine addition formula for equation (2) can be slightly rewritten as: (5) The values ​​of x1, y1, and x3 belong to the set of checkpoint values. For each iteration of the Shamir trick, x2 and y2 are... , or The coordinates. We define the following additional values: (6) if If the checkpoint coordinates are provided to the verifier, the two resources can perform the following checks in parallel: (7) Furthermore, we can conclude that if both checks are true for every pair of scalar bits, then all additions are correct. The left and right sides of the above equation involve only one domain multiplication on the critical path, so the total delay is one domain multiplication (plus two additions and one comparison).

[0085] The verifier may also need to check the consistency of the doubling operation. The affine doubling formula of equation (3) can be rewritten as (we use redundancy to highlight the number of additions): (8) Similar to what we did with the addition equation, we can define two values: (9) This allows the verifier's computational resources to be used only for parallel checks: (10) Similarly, the critical path contains only one field multiplication, two additions, and one comparison.

[0086] You can also check if the provided point coordinates are correct. It is a constant and can be considered part of the curve parameters, therefore it is fixed in the implementation, or it can be provided and verified in advance. About We can verify that it is a valid point on the curve. For example, we can use a similar method as described above, using the curve equation and a slightly extended representation. This can also be accomplished with a single multiplication delay. For For the coordinates, we can use the above method for the X coordinate and use a method with additional input for the Y coordinate. and A similar approach is used because the affine addition rule introduces related cubic terms. Therefore, with a few more additional inputs, we can be completely confident that all input data is valid and consistent, without affecting the critical path.

[0087] Except for all checkpoint values as well as (There may be more) The following combination Figure 7 In addition to the Akishita ladder algorithm discussed, extended signatures can also be provided to the verifier. This allows the verifier to immediately begin all of the above parallel verifications (modular). ) and the following two parallel verifications (modular) ): (11) Since these verifications involve the time delay of one field multiplication and comparison, we can conclude that the total time delay of the signature verification process is limited to one field multiplication and two field additions (modulo 1). This is followed by another comparison. Therefore, this further reduces the latency in verifying digital signatures.

[0088] Therefore, in some embodiments where the digital signature belongs to the ECDSA type, the digital signature includes a first half (e.g., ) and the second half (e.g. The second half is the private key (e.g., the private key associated with the digital signature). The function of ). In some of these embodiments, in step S230, the first device 110 determines at least one third additional data as the result of an operation belonging to the following group: - The sum between the generator of the elliptic curve and the public key (e.g.) );and - The difference between the generator of the elliptic curve and the public key (e.g.) ).

[0089] In step S240, in addition to at least one second additional data, the first device 110 also sends at least one third additional data to the second device 120.

[0090] However, in some embodiments, step S230 is not performed. In these embodiments, in step S240, the first device 110 does not send any of the first, second, and third additional data to the second device 120. In this case, in step S240, the first device 110 sends the digital signature and checkpoint value to the second device 120.

[0091] See now Figure 3 We describe a method for verifying a digital signature associated with a digital message according to an embodiment of the present disclosure, the method being performed by a second device 120.

[0092] More specifically, as described above, the verification of a digital signature involves evaluating at least one mathematical function defined as a sequence of processing steps. The result of a given processing step in the sequence is used as the input to the processing steps following that given processing step in the sequence.

[0093] In step S310, the second device 120 receives at least a portion of the digital signature and at least one checkpoint value corresponding to the expected output of the corresponding processing step from the first device 110.

[0094] In step S320, the second device 120 evaluates at least one mathematical function using the received at least one checkpoint value as input to a processing step following the corresponding processing step in the sequence. More specifically, the first processing step in the sequence and the at least one processing step using the corresponding checkpoint value as input are executed independently as parallel processes. Therefore, by executing the processing steps using the corresponding checkpoint value as input in parallel rather than sequentially, the latency in verification is reduced.

[0095] Back Figure 3 In step S330, for at least one checkpoint value received that corresponds to the expected output of the corresponding processing step, the second device 120 compares the expected output with the execution output of the corresponding processing step.

[0096] In step S340, if the output is different from the expected output, the second device 120 generates information indicating that at least one received checkpoint value is inconsistent with the signature.

[0097] Therefore, the consistency of the checkpoint values ​​is checked during the verification process. For example, if an inconsistency is detected between the output and the expected output, the process stops, and the next step S350, which verifies the digital signature using at least one evaluated mathematical function, is not executed. Conversely, if the output and the expected output are the same, the second device 120 executes the next step S350. However, in some embodiments, steps S330 and S340 are not executed, while step S350 is always executed.

[0098] Back Figure 3 In step S350, the second device 120 verifies the digital signature based on at least one evaluated mathematical function.

[0099] Reconsider the above combination Figure 2 From the given examples, we thus conclude that in some embodiments, digital signatures belong to the ECDSA type. The mathematical function corresponds to a scalar point multiplication constructed based on point addition operations of elliptic curve groups, where at least one processing step implements the addition of two points on the curve.

[0100] In some embodiments of these examples, the digital signature includes a first half (e.g., ) and the second half (e.g. The second half is the private key (e.g., the private key associated with the digital signature). In some embodiments of these embodiments, in step S310, the second device 120 receives the first half of the digital signature as at least a part of the digital signature, and receives first additional data (e.g., the first half of the signature) as the inverse of the second half. and the first additional data ).

[0101] Conversely, in some embodiments where the digital signature belongs to the ECDSA type, the digital signature includes a first half (e.g., ) and the second half (e.g. The second half is the private key (e.g., the private key associated with the digital signature). The function of ). In some embodiments of these embodiments, in step S310, the second device 120 receives at least one second additional data (e.g., the result of an operation belonging to the following group) of the function. and / or The group includes: - The product between the inverse of the first half and the second half (e.g.) );and - The product between the hash of the message and the inverse of the second half (e.g., ).

[0102] In step S350, the second device 120 verifies the digital signature based on at least one second additional data.

[0103] In some embodiments of these embodiments, in step S310, the second device 120 further receives at least one third additional data as a function belonging to the group consisting of: - The sum between the generator of the elliptic curve and the public key (e.g.) );and - The difference between the generator of the elliptic curve and the public key (e.g.) ).

[0104] In step S350, in addition to the at least one second additional data, the second device 120 also verifies the digital signature based on the at least one third additional data.

[0105] Alternatively, see the combination above. Figure 2 The examples given show that in some embodiments, digital signatures belong to the hash-based signature type. The mathematical function corresponds to a combination of hash functions, with at least one processing step implementing one of the hash functions.

[0106] Similarly, in some embodiments, the digital signature belongs to the ML-DSA type. The mathematical function corresponds to NTT, and at least one processing step implements a level of the lattice for this transformation.

[0107] In order to achieve the above combination Figure 2 The disclosed embodiments include all or part of the steps of the method for generating a digital signature associated with a digital message. In some embodiments, the first electronic device 110d includes ( Figure 5 ): - Non-volatile memory (NVM) 503 (e.g., read-only memory (ROM), hard disk, flash memory, etc.); - Volatile memory 501 (e.g., random access memory or RAM) and processor 502.

[0108] Non-volatile memory 503 is a non-transitory computer-readable medium. It stores executable program code instructions that are executed by processor 502 in order to enable combination. Figure 2 Some steps of the above-described method (method for generating digital signatures associated with digital messages) in the various disclosed embodiments.

[0109] During initialization, the aforementioned program code instructions are transferred from non-volatile memory 503 to volatile memory 501 for execution by processor 502. Volatile memory 501 also includes registers for storing variables and parameters required for this execution.

[0110] The steps of the method for generating a digital signature associated with a digital message can be implemented just as well in the following way: - Executes a set of program code instructions executed by a reprogrammable computing machine such as a PC, DSP (Digital Signal Processor), or microcontroller. These program code instructions can be stored on a non-transitory computer-readable medium, which can be removable (e.g., CD-ROM, DVD-ROM, USB flash drive) or non-removable; or - Dedicated machines or components, such as FPGA (Field Programmable Gate Array), ASIC (Application-Specific Integrated Circuit), or any dedicated hardware component.

[0111] In other words, this disclosure is not limited to a purely software-based implementation in the form of computer program instructions; on the contrary, this disclosure can also be implemented in hardware or in any form combining hardware and software components.

[0112] In order to achieve the above combination Figure 3 The disclosed embodiments include all or part of the steps of the method for verifying a digital signature associated with a digital message. In some embodiments, the second electronic device 120d includes ( Figure 6 ): - Non-volatile memory (NVM) 603 (e.g., read-only memory (ROM), hard disk, flash memory, etc.); - Volatile memory 601 (e.g., random access memory or RAM) and processor 602.

[0113] Non-volatile memory 603 is a non-transitory computer-readable medium. It stores executable program code instructions that are executed by processor 602 in order to enable combination. Figure 3 Some steps of the above-described method (a method for verifying digital signatures associated with digital messages) in the various disclosed embodiments.

[0114] During initialization, the aforementioned program code instructions are transferred from non-volatile memory 603 to volatile memory 601 for execution by processor 602. Volatile memory 601 also includes registers for storing variables and parameters required for this execution.

[0115] The steps for verifying the digital signature associated with a digital message can be implemented just as well in the following way: - Executes a set of program code instructions executed by a reprogrammable computing machine such as a PC, DSP (Digital Signal Processor), or microcontroller. These program code instructions can be stored on a non-transitory computer-readable medium, which can be removable (e.g., CD-ROM, DVD-ROM, USB flash drive) or non-removable; or - Dedicated machines or components, such as FPGA (Field Programmable Gate Array), ASIC (Application-Specific Integrated Circuit), or any dedicated hardware component.

[0116] In other words, this disclosure is not limited to a purely software-based implementation in the form of computer program instructions; on the contrary, this disclosure can also be implemented in hardware or in any form combining hardware and software components.

[0117] See now Figure 7 We describe an example of a structural block of a second electronic device 120d according to another embodiment of the present disclosure.

[0118] Reconsidering the ECDSA scenario, the implementation of the second electronic device 120d can be optimized by following the assumption that the second electronic device 120d receives the following from the first device 110: - Standard signature payload ,in It is the public key of the signer. It is the field element corresponding to the hash message; - Depend on The extended signature payload is composed of [a certain number of] units. As mentioned earlier, this allows the latency to be reduced to the latency of two scalar point multiplications and helps support different algorithms used for its execution. Note that... and The coordinates only need to be calculated once (e.g., during key generation) because they depend only on the signer's public key. Therefore, including them in the signature does not incur additional work when generating each signature; and - A certain number of checkpoint values, depending on the degree of parallelization of the target. For simplicity, we assume the scalar is divided into multiple equal-length segments of a power of 2. For a 256-bit curve, we can have 1, 2, 4, 8, 16, 32, 64, 128, or 256 segments (256, 128, 64, 32, 16, 8, 4, 2, and 1 bit respectively). Checkpoint values ​​are always inserted between two segments (marking both the start of a new segment and the end of the previous segment). The end of the MS segment is... The start of LS segmentation is a condition set by the double scalar multiplication algorithm, typically including a set. The point in the middle. If the number of segments is 1, there is no checkpoint value, which represents the normal sequential flow of scalar point multiplication (i.e., we do not utilize parallelism on the verification side).

[0119] This allows for a rethinking of the Akishita ladder algorithm to implement the second electronic device 120d.

[0120] More specifically, this ladder processes two scalars simultaneously, always relative to the point. , , One of them performs differential addition. This means we can maintain the critical path of 3 field multiplications without incurring the burden of the final point addition operation. Its state consists of 3 points. Therefore, it requires one less storage point compared to the double Montgomery staircase.

[0121] Akishita steps are suitable for Montgomery-type curves. However, nothing prevents them from being applied to the most common curve type, namely short Weierstrass curves.

[0122] This staircase requires two points in an affine form. , As input, this data can be included in the extended signature payload, as mentioned earlier. These values ​​can be easily checked by performing a differential addition and a doubling operation in parallel. The first operation will... and Add (difference equals hard-coded value) To obtain . It can be simply by... The sign is inverted to obtain the result. The second operation is... The doubling is performed, and the result is compared with the result of the addition. Conveniently, both operations and the check are performed using the same logic of the ladder algorithm, as described below.

[0123] Akishita's original ladder algorithm requires a preamble and a finish phase. In the preamble, two scalars are scanned to find the most significant non-zero bit pair (therefore, the timing of this phase is variable). In the finish phase, different operations are performed based on the values ​​of the two least significant bits of the scalars. This somewhat disrupts the regularity of the computation when pipelined implementations check a large number of signatures simultaneously. These special steps are not actually necessary, and the ladder algorithm can be rewritten in a fully regular form by avoiding this initial and final processing. This rewrite is achieved by prepending and postpending a 0 bit to both scalars, extending their bit length by 2 bits, as shown in the following algorithm (Algorithm 5), where express The i-th position:

[0124] Table 1 below contains the different point operations to be performed in each iteration of the "for" loop, based on the values ​​of the scalar bit segments. Each column contains the new values ​​for the relevant points. The value in parentheses for each difference addition operation is the point difference to be used. This ladder is always performed. The next iteration.

[0125] Table 1: Akishita Ladder Status Update

[0126] Based on the above, we can outline the design of fine-grained pipelined hardware that performs one iteration of the "for" loop for this step and uses the hardware iteratively as many times as needed. Due to pipelined architecture, this hardware can process multiple segments simultaneously. These segments may belong to the same signature (with checkpoint values) or different signatures, thus forcing parallel computation in all possible cases. Deep pipelined architecture is a direct result of the need for long pipelines in high-radix multipliers to operate at high frequencies in hardware. The benefit of this is that throughput can be significantly improved with only a slight compromise on minimum achievable latency.

[0127] Each signature has a degree of parallelization potential, determined by the number of checkpoint values ​​inserted as supplementary data. All these segments can immediately enter the pipeline. They will undergo the required number of iterations to compute their final point. For each signature, another dot addition and another doubling operation will also enter the pipeline for verification. and The correctness of the input.

[0128] In addition to the ladder pipeline, we can also instantiate a modulo-n multiplier 730 to verify the consistency of parameters in the extended signature payload, as shown in equation (11). The latency of the modulo-n check is that of a first-order domain multiplication, which is at most one-third of the latency of a single ladder iteration, and each signature is checked twice. Thus, even in the case of minimum latency, a multiplier 730 is sufficient to perform them in parallel with the ladder execution. The minimum reachable latency for verifying signatures on an m-bit curve corresponds to the case of m checkpoint values, which is approximately equal to One clock cycle, of which It is a model The number of pipeline stages in a multiplier.

[0129] Each iteration of the ladder algorithm (operating on a scalar bit segment) performs at most three point addition operations and one doubling operation, which can be performed in parallel. Therefore, the main pipeline can contain an instance of three point addition circuits 710 and one point doubling circuit 720. Since these circuits have the same critical path of three multiplications, we assume they have the same number of pipeline stages (any minor differences can be balanced using virtual registers). The use of these blocks is iterative. When all bits of a segment have been processed, the resulting point is forwarded to the final stage, where a multiplication and a comparison are performed to check its correctness (as combined with the above). Figure 2 Otherwise, the data is fed back into the pipeline.

[0130] As the number of pipeline stages increases, the clock frequency and the number of registers also increase. Since current FPGA clock frequencies cannot grow much higher than 500 MHz, trade-offs must be considered to accommodate logic resources, such as those of a single VU9P FPGA. For example, if we choose m stages in a stepped pipeline, where m is the maximum bit size of the supported curve, this offers the advantage of constant throughput across all signature sizes, roughly equivalent to one verified signature every m clock cycles. The minimum achievable latency is approximately... One clock cycle.

[0131] While the dot operation runs at a high clock frequency, the rest of the logic can run at a lower clock frequency. If we instantiate the logic managing the signature stream N times, we can reduce the clock frequency by, for example, a factor of N outside the pipeline. Each control logic block will process the same number of segments (and possibly a different number of signatures depending on the number of checkpoint values ​​for each signature) and insert them into the stepped pipeline, as if the control logic block were running at a slow clock rate (but with a latency reduction of a factor of N). Serializer 740 and deserializer 750 can perform serial-to-parallel conversion of data before and after the stepped pipeline. This allows for maintaining a high clock rate for the core arithmetic logic block ( Figure 7 The dashed line indicates logic that operates at a high clock frequency and provides the advantage of a relaxed clock for the control section.

[0132] The core logic can connect to the external interface via a high-speed bus 760 (e.g., PCI Express), and the host CPU can manage the signing and result streams through memory access. Subsequently, N control logic blocks can process signatures in parallel. Assuming a core logic clock frequency of 500 MHz, an interface clock of 125 MHz (N=4), and a 256-bit ECC curve, the sustained throughput of this architecture is approximately 1.8 million signature verifications per second, corresponding to an interface data rate of 3.9 Gbit / s. The signature with the most checkpoint values ​​will be verified with a delay of 1.2 μs.

[0133] Furthermore, we can elaborate on the methods used to achieve the above combination. Figure 7 The described architecture is adapted to and can run on some implementation options on a single FPGA (such as the VU9P Xilinx FPGA device widely used in cloud computing platform solutions).

[0134] Conversely, the choice of curve is primarily due to its value for blockchain applications. However, the proposed architecture can be repositioned on any elliptic curve that is represented (or can be represented) in short Weierstrass form.

[0135] More specifically, in one implementation example, we rely on fine-grained pipelined modular arithmetic units. The target could be a 500 MHz frequency for the arithmetic core clock and a 125 MHz frequency for the control logic and interfaces (N=4).

[0136] For two-input modulo addition and subtraction, if the input has been reduced, these arithmetic units consist of a single integer addition / subtraction, followed by a modulo subtraction / addition, and a selection of the MS bits based on the two results. Techniques for designing low-latency adders are well-known (e.g., prefix adders), and these arithmetic units can benefit from the presence of fast carry chains on FPGAs. However, pipelining them can be tedious, error-prone, and time-consuming.

[0137] For a domain multiplier, the first step is to choose a multiplication algorithm. Radix-reduced Montgomery multiplication is commonly used in hardware implementations of ECC systems because its iterative nature offers a trade-off between speed and size. However, it has the drawback of requiring domain transformations. Since the primary goal is low latency, a full radix multiplication followed by full radix Barrett reduction can be chosen. This modular reduction algorithm is better suited for fast parallel implementation and uses only constant multipliers. Therefore, the use of DSP units can be limited to full multipliers. Figure 8 Describes the Barrett reduction calculation The architecture of the field multiplier. The constant μ equals .

[0138] By maintaining the target frequency at 550 MHz, and mapping and routing at a 2 ns clock on the VU9P device, we can achieve 74 pipeline stages. This module... The multiplier uses 13051 LUTs, 34208 FFs, and 505165 DSP units. The multiplier, obtained by simply using different constants, occupies 29,006 LUTs, 87,730 FFs, 165 DSP units, and 107 pipeline stages. The significant differences are attributed to... The expression is highly regular, with only 6 bits equal to 0 and all other bits equal to 1. This is indeed an important factor for constant multipliers, because constant multipliers do not use small-radix multipliers, but are composed of CSA trees whose synthesis depends on the constant value.

[0139] For doubling circuits and differential point addition operations Figure 9a and Figure 9b Implementation examples are given in the text.

[0140] More specifically, Figure 9a The circuit in the diagram calculates the doubling point in a projective manner. , Figure 9b The circuit uses differential points Affine X-coordinate Calculation of Difference Addition Both circuits use the common curve parameters a and b. However, for the Bitcoin curve secp256k1, we have m=256, a=0, and b=7. Therefore, Figure 9a and Figure 9b The arithmetic unit marked in dark gray can be removed, while the domain multiplier highlighted in light gray simply becomes a constant multiplier with a value of 4b=28. The latter costs 3506 LUTs, 13095 FFs, and 0 DSP units, for a total of 67 pipeline stages, with a clock frequency of 500 MHz (7 fewer stages than the domain multiplier).

[0141] Since the step structure of the above algorithm 5 needs to be represented as For point operations at infinity, we can use detection... When to be zero and proceed and The conditional delay assignment logic is used to modify the point adder circuit (not shown in the diagram). The point doubler circuit does not need modification because it has already calculated correctly. .

[0142] An example of a differential adder circuit involves 8 domain multiplications, while a point doubling circuit requires only 7. In terms of delay, the critical path consists of three multiplications and one subtraction, and exists in the point adder circuit. Figure 9b (The rightmost path in the hierarchy). The doubling circuit is slightly faster because one of the multipliers is a constant multiplier. Since we have to instantiate three point adders and one point doubler for each iteration of the ladder, we get a total of 5115 DSP units. Two more domain multipliers are included in the final comparison phase, and another (modulo n) is used for scalar checking, bringing the total to 5610 DSPs, which represents, for example, 82% utilization of the VU9P DSP resources.

[0143] In the final implementation, we can... Figure 9a doubling circuit and Figure 9b The adder circuitry is combined with the serializer 740 and deserializer 750 circuitry so that the 500 MHz clock only provides the clock signal for these blocks. Therefore, they only expose a 125 MHz interface to the rest of the circuitry, but have four parallel computing slots. Following the discussion above, our goal is to have... The pipeline depth for each cycle, therefore we relaxed... Figure 7The operation is scheduled using dashed lines, and virtual registers are inserted where needed to delay the lines crossing the dashed lines, thus making the delay of the doubling circuit equal to that of the adding circuit, and making the total delay a multiple of 4. We can also have a final register to deserialize the output to a slower clock. The result in this case is at 125 MHz. A uniform delay of one clock cycle is provided. This leaves one clock cycle for the feedback unit, thus achieving the target precisely (64×4=256).

[0144] The control logic reads signature data from input RAM 770 and, where possible—when it is not busy processing feedback data—inserts this signature data into the pipeline. Each of the four control blocks processes a batch of 64 segments. Signatures with a large number of checkpoint values ​​need to be distributed across two or all four control blocks for verification with minimal latency.

[0145] Each control block operates in two phases, each lasting 64 cycles. During the first phase, for each signature, each control block feeds data to the modulo-n multiplier 730 within one clock cycle to perform two checks on equation (11), i.e. and In the same cycle, the following data is sent to the first instance of the point addition unit 710: (12) And the following data is sent to the doubling unit 720: (13) So that the comparison block can check if Furthermore, the result of each signature verification can be set.

[0146] The results are then updated during the second phase, where each control block inserts a segment per cycle in the staircase pipeline. Each segment entering the staircase pipeline brings the following metadata information about its associated signature and its current staircase iteration: - 9-bit signature information, of which 1 bit indicates even / odd, 2 bits identify the control block instance, and 6 bits carry the signature index (0-63) in the batch.

[0147] - 24-bit ladder information, where the first byte contains a 2-bit group indicating which point (T0, T1, T2 or none) is being calculated in each of the 4 point operation cores, the second byte carries the index of the scalar bit being processed, and the last byte contains the limit index of the end of the segment.

[0148] Using this metadata, the feedback logic at the end of the pipeline can determine whether the segmented computation is complete and can be forwarded to the comparison block, or whether feedback is necessary. In the latter case, the bit index is decremented, and new inputs are computed for the next step iteration based on the scalar bits and the result of the current step iteration. To limit the number of registers in the pipeline, the feedback unit can access a scalar containing all the signatures being processed. The value of RAM.

[0149] Once the comparison block has received all segments belonging to the signature, it can finally determine its verification result by writing a success flag to the result RAM (e.g., only if all comparisons return success, otherwise writing a failure flag).

[0150] In some implementations, two modulo-n multipliers 730 are instantiated alongside the stepped pipeline instead of one. This requires slightly more resources but allows the control logic to insert all the data associated with a given signature into the logic at once, and processes one signature per clock cycle in a largely uniform manner.

[0151] In some implementations, the main interface and control logic are duplicated, creating even and odd blocks such that while the signature source is filling even memory with signatures, the main core is processing signatures from odd memory, and vice versa. This allows for simpler decoupling and avoids the use of dual-port RAM. This increases the number of block RAMs required, but block RAM is not a limiting FPGA resource.

Claims

1. A method for generating a digital signature associated with a digital message, wherein verification of the digital signature involves evaluating at least one mathematical function defined as a sequence of processing steps, the result of a given processing step in the sequence being used as input to a processing step in the sequence following the given processing step. Its features The first electronic device executes: - Generate a digital signature for the digital message (S210); - Determine (S220) at least one value corresponding to the expected output of the corresponding processing step, hereinafter referred to as the checkpoint value; and - Send (S240) at least a portion of the digital signature and the at least one checkpoint value to the second electronic device.

2. The method according to claim 1, wherein the generation of the digital signature implements an elliptic curve digital signature algorithm. Furthermore, the mathematical function described therein corresponds to a scalar point multiplication constructed based on point addition operations of elliptic curve groups, and at least one processing step implements the addition of two points on the curve.

3. The method of claim 2, wherein the digital signature comprises a first half and a second half, the second half being a function of the private key associated with the digital signature. The first electronic device performs the following: determining (S230) the first additional data as a function of the inverse of the latter half. Furthermore, the transmission to the second electronic device includes the transmission of the first half of the digital signature as at least a part of it, as well as the transmission of the first additional data.

4. The method of claim 2, wherein the digital signature comprises a first half and a second half, the second half being a function of the private key associated with the digital signature. And wherein the first electronic device performs: determining (S230) at least one second additional data as a function of the result of an operation belonging to the group including the following operations: - The product of the first half and the inverse of the second half; and - The product of the hash value of the message and the inverse of the latter half. And the transmission to the second electronic device includes the transmission of at least one second additional data.

5. The method according to claim 1, wherein the generation of the digital signature implements a hash-based signature algorithm. Furthermore, the mathematical function described therein corresponds to a combination of hash functions, and at least one processing step implements one of the hash functions.

6. The method according to claim 1, wherein the generation of the digital signature implements a lattice-based digital signature algorithm. Furthermore, the mathematical function described therein corresponds to a number-theoretic transformation, and at least one processing step implements a level of the lattice of the transformation.

7. A method for verifying a digital signature associated with a digital message, the verification of the digital signature involving evaluating at least one mathematical function defined as a sequence of processing steps, the result of a given processing step in the sequence being used as input to a processing step in the sequence following the given processing step. Its features The second electronic device performs: - Receive (S310) at least a portion of the digital signature and at least one value corresponding to the expected output of the corresponding processing step from the first electronic device, the at least one value being referred to below as a checkpoint value; - Using the received at least one checkpoint value as input to a processing step following the corresponding processing step in the sequence, the at least one mathematical function is evaluated (S320), wherein the first processing step in the sequence and the at least one processing step using the corresponding checkpoint value as input are executed independently as parallel processing; and - Verify the digital signature based on at least one evaluated mathematical function (S350).

8. The method of claim 7, wherein for at least one checkpoint value received corresponding to the expected output of the corresponding processing step, the second electronic device performs: - Compare the expected output with the output of the corresponding processing step (S330); and - If the output and the expected output are different, then generate (S340) information indicating that at least one received checkpoint value is inconsistent with the signature.

9. The method according to claim 7 or 8, wherein the digital signature is of the elliptic curve digital signature type. Furthermore, the mathematical function described therein corresponds to a scalar point multiplication constructed based on point addition operations of elliptic curve groups, and at least one processing step implements the addition of two points on the curve.

10. The method of claim 9, wherein the digital signature comprises a first half and a second half, the second half being a function of a private key associated with the digital signature. And the receiving (S310) includes receiving the first half of the digital signature as at least a part of the digital signature, and receiving first additional data as a function of the inverse of the second half.

11. The method of claim 9, wherein the digital signature comprises a first half and a second half, the second half being a function of a private key associated with the digital signature. The receiving (S310) includes receiving at least one second additional data as the result of an operation belonging to a group including the following operations: - The product of the first half and the inverse of the second half; and - The product of the hash value of the message and the inverse of the latter half. Furthermore, the verification of the digital signature is also based on the at least one second additional data.

12. The method according to claim 7 or 8, wherein the digital signature belongs to a hash-based signature type. Furthermore, the mathematical function described therein corresponds to a combination of hash functions, and at least one processing step implements one of the hash functions.

13. The method according to claim 7 or 8, wherein the digital signature belongs to a lattice-based digital signature algorithm type. Furthermore, the mathematical function described therein corresponds to a number-theoretic transformation, and at least one processing step implements a level of the lattice of the transformation.

14. A computer program product, characterized in that... The computer program product includes program code instructions, when the program is executed on a computer or processor, for implementing the method according to at least one of claims 1 to 13.

15. An electronic device comprising at least one processor or at least one field-programmable gate array or at least one dedicated computing machine configured to perform the steps of the method according to any one of claims 1 to 13.