![]() ![]() It requires an initialized public key and a random number generator. This function encrypts a message from in and stores the result in out. Wc_RsaPublicEncrypt (const byte *in, word32 inLen, byte *out, word32 outLen, RsaKey *key, WC_RNG *rng) This function frees a provided RsaKey struct using mp_clear. ![]() It is needed when WC_RSA_BLINDING is enabled. It also takes in a heap identifier, for use with user defined memory overrides (see XMALLOC, XFREE, XREALLOC). The id and len are used to identify the key on the device while the devId identifies the device. This function initializes a provided RsaKey struct. ![]() Wc_InitRsaKey_Id (RsaKey *key, unsigned char *id, int len, void *heap, int devId) Example: "digitalSignature,nonRepudiation" nonRepudiation and contentCommitment are for the same usage. Accepted tokens are: digitalSignature, nonRepudiation, contentCommitment, keċertSign, cRLSign, dataEncipherment, keyAgreement, keyEncipherment, encipherOnly, decipherOnly. This function allows you to set the key usage using a comma delimited string of tokens. Wc_SetKeyUsage (Cert *cert, const char *value)
0 Comments
Leave a Reply. |