Hi Embhorn
Follow the example, the callback work successfully, thank you.
You are not logged in. Please login or register.
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
ReferenceswolfSSL - Embedded SSL Library → Posts by Pokemon
Pages 1
Hi Embhorn
Follow the example, the callback work successfully, thank you.
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.
Dear Eric
I'm learning atecc608, I have resolved my problem. After singing the CSR, execute wc_ecc_rs_raw_to_sig that transform the signature to der format.
Thanks.
Hi~
I wanted to use my secure element to sign the CSR and referenced the wolfssl-examples csr_cryptocb.c. I used the wc_SignCert_ex function into my callback function. I got the wrong fomat CSR:
-----BEGIN CERTIFICATE REQUEST-----
MIIDBzCB8wIBAjCBkDELMAkGA1UEBhMCVVMxCzAJBgNVBAgMAk9SMREwDwYDVQQH
DAhQb3J0bGFuZDEQMA4GA1UECgwHd29sZlNTTDEUMBIGA1UECwwLRGV2ZWxvcG1l
bnQxGDAWBgNVBAMMD3d3dy53b2xmc3NsLmNvbTEfMB0GCSqGSIb3DQEJARYQaW5m
b0B3b2xmc3NsLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABD6I4gQ7axFX
tIOtulG0VaAeg0nMy72Etqz4JyWakqIKAGuvjIDPw3I+NHmKvzwOjkQ/taeuhIpr
yoFn1J1LtzugADAKBggqhkjOPQQDAgOCAgEAFNv7PxTb+z8AAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
MIGQMQswCQYDVQQGEwJVUzELMAkGA1UECAwCT1IxETAPBgNVBAcMCFBvcnRsYW5k
MRAwDgYDVQQKDAd3b2xmU1NMMRQwEgYDVQQLDAtEZXZlbG9wbWVudDEYMBYGA1UE
AwwPd3d3LndvbGZzc2wuY29tMR8wHQYJKoZIhvcNAQkBFhBpbmZvQHdvbGZzc2wu
Y29tAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAHAD/D8=
-----END CERTIFICATE REQUEST-----
I found the info->pk.eccsign.outlen always return 512, maybe it's a problem.
Is there something I've missed? thanks
Pages 1
wolfSSL - Embedded SSL Library → Posts by Pokemon
Powered by PunBB, supported by Informer Technologies, Inc.
Generated in 0.016 seconds (95% PHP - 5% DB) with 5 queries