65 byte ecdh_keypair_slot,
byte peer_pubkey_slot,
byte peer_cert_slot);
118 byte *ecdh_keypair_slot,
byte *peer_pubkey_slot,
byte *peer_cert_slot, word16 id_size);
int wolfSSL_iotsafe_on_ex(WOLFSSL *ssl, byte *privkey_id, byte *ecdh_keypair_slot, byte *peer_pubkey_slot, byte *peer_cert_slot, word16 id_size)
This function connects the IoT-Safe TLS callbacks to the given SSL session. This is equivalent to wol...
int wc_iotsafe_ecc_export_private_ex(ecc_key *key, byte *key_id, word16 id_size)
Export an ECC 256-bit key, from ecc_key object to a writable private-key slot into the IoT-Safe apple...
void wolfIoTSafe_SetCSIM_read_cb(wolfSSL_IOTSafe_CSIM_read_cb rf)
Associates a read callback for the AT+CSIM commands. This input function is usually associated to a r...
int wc_iotsafe_ecc_verify_hash_ex(byte *sig, word32 siglen, byte *hash, word32 hashlen, int *res, byte *key_id, word16 id_size)
Verify an ECC signature against a pre-computed HASH, using a public key previously stored,...
int wolfSSL_CTX_iotsafe_enable(WOLFSSL_CTX *ctx)
This function enables the IoT-Safe support on the given context.
int wc_iotsafe_ecc_verify_hash(byte *sig, word32 siglen, byte *hash, word32 hashlen, int *res, byte key_id)
Verify an ECC signature against a pre-computed HASH, using a public key previously stored,...
int wolfSSL_iotsafe_on(WOLFSSL *ssl, byte privkey_id, byte ecdh_keypair_slot, byte peer_pubkey_slot, byte peer_cert_slot)
This function connects the IoT-Safe TLS callbacks to the given SSL session.
int wc_iotsafe_ecc_export_public(ecc_key *key, byte key_id)
Export an ECC 256-bit public key, from ecc_key object to a writable public-key slot into the IoT-Safe...
int wc_iotsafe_ecc_sign_hash_ex(byte *in, word32 inlen, byte *out, word32 *outlen, byte *key_id, word16 id_size)
Sign a pre-computed HASH, using a private key previously stored, or pre-provisioned,...
int wolfIoTSafe_GetCert_ex(uint8_t *id, uint16_t id_sz, unsigned char *output, unsigned long sz)
Import a certificate stored in a file on IoT-Safe applet, and store it locally in memory....
void wolfIoTSafe_SetCSIM_write_cb(wolfSSL_IOTSafe_CSIM_write_cb wf)
Associates a write callback for the AT+CSIM commands. This output function is usually associated to a...
int wc_iotsafe_ecc_sign_hash(byte *in, word32 inlen, byte *out, word32 *outlen, byte key_id)
Sign a pre-computed HASH, using a private key previously stored, or pre-provisioned,...
int wc_iotsafe_ecc_import_public(ecc_key *key, byte key_id)
Import an ECC 256-bit public key, stored in the IoT-Safe applet, into an ecc_key object.
int wc_iotsafe_ecc_gen_k(byte key_id)
Generate an ECC 256-bit keypair and store it in a (writable) slot into the IoT-Safe applet.
int wc_iotsafe_ecc_export_private(ecc_key *key, byte key_id)
Export an ECC 256-bit key, from ecc_key object to a writable private-key slot into the IoT-Safe apple...
int wolfIoTSafe_GetRandom(unsigned char *out, word32 sz)
Generate a random buffer of given size, using the IoT-Safe function GetRandom. This function is autom...
int wc_iotsafe_ecc_import_public_ex(ecc_key *key, byte *key_id, word16 id_size)
Export an ECC 256-bit public key, from ecc_key object to a writable public-key slot into the IoT-Safe...
int wolfIoTSafe_GetCert(uint8_t id, unsigned char *output, unsigned long sz)
Import a certificate stored in a file on IoT-Safe applet, and store it locally in memory....