parallaxsecond / parsec-openssl-provider

Parsec OpenSSL Provider
Apache License 2.0
1 stars 1 forks source link

signature: Small signature optimization #47

Closed tgonzalezorlandoarm closed 5 months ago

tgonzalezorlandoarm commented 5 months ago

Only calculate the signature when necessary. When sigsize is smaller than the expected signature length, preemptively exit the function instead of doing that after having calculated the signature.

This saves some computation power.

tgonzalezorlandoarm commented 5 months ago

This one comes in in replacement of #46 . For the future, perhaps we can find a way of making use of a standard get_signature_len function