Hi there,
Thank you for reaching out to Apryse forums,
Here is an example of custom signing with HSM:
Some users had success increasing the byte range size:
Best regards, Kevin Kim