[webkit-gtk] Implementing Web Cryptography API

Eduardo Lima Mitev elima at igalia.com
Tue May 20 09:26:31 PDT 2014


I have started work on implementing the WebCrypto spec [1] on the GTK
port. Mac port already has the cross-platform bits in place and a few
crypto algorithms implemented, so initially the work is simply filling
our platform specific counter-parts.

I created a bug to track progress:


but temporarily I'm pushing my implementation to


for early review. My plan is to start submitting the patches next week.

I'm using GnuTLS as crypto backend. It is the default choice I guess
since we already depend on it indirectly through libsoup ->
glib-networking. For some algorithms I have fallen back to nettle (the
crypto library GnuTLS uses after 3.0) directly because it was simpler
code or more efficient (avoid unnecessary memory copies etc). I will
detail these cases once I start submitting the patches, but feel free to

Right now, 46 out of 53 tests under 'crypto/subtle' are passing. Those
that are not it is because lack of implementation on GnuTLS and nettle
in all cases. I have skipped those by now, until we got the basic code
in and can start implementing the missing algorithms.

Please, feel free to comment or ask questions.


[1] https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html

More information about the webkit-gtk mailing list