Skip to content

Add initial support for crypto callbacks.#114

Open
roberthdevries wants to merge 1 commit intowolfSSL:masterfrom
roberthdevries:add-support-for-crypto-callbacks
Open

Add initial support for crypto callbacks.#114
roberthdevries wants to merge 1 commit intowolfSSL:masterfrom
roberthdevries:add-support-for-crypto-callbacks

Conversation

@roberthdevries
Copy link
Copy Markdown
Contributor

This patch does not add support for types of callbacks. Adding support for callbacks for cipher functions is complicated by issues with cffi code generation for the wc_CryptoInfo structure with two layers of anonymous unions.
Uncommenting more parts of the cipher struct causes errors regarding conflicting struct sizes of other parts of the wc_CryptoInfo struct.
Cffi cdef and the compiler seem to disagree.

However as it is, callbacks work for random and hash functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant