Topic: AES GCM callback on TLS 1.3 client example

I want to ues cryptocb to program GCM.

int SQ_atcatls_set_callbacks(WOLFSSL_CTX* ctx)
{
    int DevID = 1;

    ret = wc_CryptoCb_RegisterDevice(DevID, myCryptoCb, &myCtx);

    wolfSSL_CTX_SetDevId(ctx, DevID);
}

It doesn't entry myCryptoCb when TLS1.3 execute the EncryptTls13 function,

I check the aes->devId is INVALID_DEVID in wc_AesGcmEncrypt()

Any Suggestions For Me, thank you.

Share

Re: AES GCM callback on TLS 1.3 client example

Are you setting up the callback? Here is an example:
https://github.com/wolfSSL/wolfssl-exam … cryptocb.c

What is the return value from the call to wc_CryptoCb_RegisterDevice ?

Thanks,
Eric @ wolfSSL Support

Re: AES GCM callback on TLS 1.3 client example

Hi Embhorn

Follow the example, the callback work successfully, thank you.

Share