Roumen Petrov via RT
2016-06-25 22:09:59 UTC
Hello,
Recently declaration of a number of get0 methods was changed to return
constant values (BIGNUM).
Lets me quote description of an allocator "/ECDSA_SIG_new()/ allocates a
new *ECDSA_SIG* structure (note: this function also allocates the
BIGNUMs) and initialize it."
Now lets try to write deserialization of a ECDSA signature. With set
method allocated and never user ECDSA members r and s has to be freed
and replaced by new one. As result extra allocation of big numbers
impact performance and increase memory usage.
Above is reason the request to remove const from return argument of get0
methods.
The issue is not only for ECDSA but also for DSA_SIG and RSA, DSA, DH
keys where situation is similar.
Regards,
Roumen Petrov
Recently declaration of a number of get0 methods was changed to return
constant values (BIGNUM).
Lets me quote description of an allocator "/ECDSA_SIG_new()/ allocates a
new *ECDSA_SIG* structure (note: this function also allocates the
BIGNUMs) and initialize it."
Now lets try to write deserialization of a ECDSA signature. With set
method allocated and never user ECDSA members r and s has to be freed
and replaced by new one. As result extra allocation of big numbers
impact performance and increase memory usage.
Above is reason the request to remove const from return argument of get0
methods.
The issue is not only for ECDSA but also for DSA_SIG and RSA, DSA, DH
keys where situation is similar.
Regards,
Roumen Petrov
--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4590
Please log in as guest with password guest if prompted
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4590
Please log in as guest with password guest if prompted
--
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev