refactor SubtleCrypto

I've been thinking the implementation here is messy (ever since we added support for it) and thought it would be better to separate each algorithm to their respective files in order to maintain in a long run. `digest` is also refactored to prefer libcrypto instead of std.
This commit is contained in:
Halil Durak
2026-03-24 16:04:32 +03:00
parent 0838b510f8
commit 39352a6bda
8 changed files with 621 additions and 527 deletions

View File

@@ -17,7 +17,7 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
const std = @import("std");
const crypto = @import("../crypto.zig");
const crypto = @import("../sys/libcrypto.zig");
const Http = @import("../network/http.zig");