Fix bug in signature algorithm copy.
Adding padding extension to trace code.
For portability use BUF_strndup instead of strndup.