Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

Port srp_client.c from corecrypto to openssl This is still primitive; we now need to add error checking and proper memory management

kabiroberai976fcacd0a57
diff --git a/Supersign/GrandSlam/Crypto/SRPClient.swift b/Supersign/GrandSlam/Crypto/SRPClient.swift
index cf55ac9..94f3906 100644
--- a/Supersign/GrandSlam/Crypto/SRPClient.swift
+++ b/Supersign/GrandSlam/Crypto/SRPClient.swift
@@ -61,6 +61,7 @@ class SRPClient {
saltBound.baseAddress!, saltBound.count,
.init(iterations),
bDataBound.baseAddress!,
+ bDataBound.count,
isS2K,
&length
).map { Data(bytesNoCopy: $0, count: length, deallocator: .free) }