nistp256Sign - 2023.1 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.1 English
#include "xf_security/ecdsa_nistp256.hpp"
bool nistp256Sign (
    ap_uint <256> hash,
    ap_uint <256> k,
    ap_uint <256> privateKey,
    ap_uint <256>& r,
    ap_uint <256>& s
    )

signing function. It will return true if input parameters are legal, otherwise return false.

Parameters:

hash digest value of message to be signed, with length set to 256.
k A random key to sign the message, should kept different each time to be used.
privateKey Private Key to sign the message
r part of signing pair {r, s}
s part of signing pair {r, s}