TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Swift Crypto

242 点作者 johns超过 5 年前

12 条评论

oflannabhra超过 5 年前
This is one of the first fruits born of the three-fold Swift 6 initiative [0]: 1) Accelerate growth of the Swift software ecosystem (cross platform tooling and libraries) , 2) Create a fantastic development experience (build times and debugging), 3) Invest in user-empowering language directions (language APIs and memory ownership model, etc).<p>This hits almost all of those, and while it isn&#x27;t the highest priority for lots of Swift users today, Swift Crypto will hopefully create a way for there to be lots of future users of Swift on other platforms. I&#x27;m really happy that the Core Team seems to have really taken those 3 efforts seriously.<p>[0] - <a href="https:&#x2F;&#x2F;forums.swift.org&#x2F;t&#x2F;on-the-road-to-swift-6&#x2F;32862" rel="nofollow">https:&#x2F;&#x2F;forums.swift.org&#x2F;t&#x2F;on-the-road-to-swift-6&#x2F;32862</a>
protanopia超过 5 年前
Why was BoringSSL chosen as the backend? According to Google,<p>&gt; Although BoringSSL is an open source project, it is not intended for general use, as OpenSSL is. We don&#x27;t recommend that third parties depend upon it. Doing so is likely to be frustrating because there are no guarantees of API or ABI stability.<p><a href="https:&#x2F;&#x2F;boringssl.googlesource.com&#x2F;boringssl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;boringssl.googlesource.com&#x2F;boringssl&#x2F;</a>
评论 #22227684 未加载
评论 #22227968 未加载
Nullabillity超过 5 年前
&gt; On Apple platforms, Swift Crypto defers directly to CryptoKit, while on all other platforms it uses a brand-new implementation built on top of the BoringSSL library.<p>Oh great, more pointless differences. Just pick one and stick to it. If you trust the BoringSSL version then use it everywhere. If you don&#x27;t, well, why are you using it on the other platforms?<p>I could understand it if it was very platform-specific (async networking, GUI controls, whatever). But come on, BSSL already exists everywhere, you&#x27;re not saving yourself any porting work.
评论 #22228009 未加载
评论 #22227763 未加载
评论 #22227541 未加载
评论 #22231938 未加载
评论 #22227573 未加载
ww520超过 5 年前
How is the state of developing Swift application on Windows? Last I checked it was using Linux on Windows to compile Swift code.<p>With Linux and Windows support, Swift can become viable for cross platform development.
评论 #22228496 未加载
评论 #22230656 未加载
pazimzadeh超过 5 年前
This, combined with Apple claiming that the Afterburner card for Mac Pro is a programmable ASIC, is pretty interesting news.<p>&gt; The new Mac Pro debuts Afterburner, featuring a programmable ASIC capable of decoding up to 6.3 billion pixels per second <a href="https:&#x2F;&#x2F;www.apple.com&#x2F;newsroom&#x2F;2019&#x2F;06&#x2F;apple-unveils-powerful-all-new-mac-pro-and-groundbreaking-pro-display-xdr&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.apple.com&#x2F;newsroom&#x2F;2019&#x2F;06&#x2F;apple-unveils-powerfu...</a>
评论 #22229178 未加载
评论 #22229036 未加载
评论 #22228425 未加载
评论 #22228990 未加载
cakoose超过 5 年前
The first example shows AES.GCM.seal(...) and then states:<p>&gt; This code avoids some of the numerous pitfalls that you can encounter when constructing encryption schemes yourself. For example, it ensures that you use a randomly selected nonce, and that you authenticate your ciphertext.<p>The AES-GCM nonce is only 96 bits, which <i>might</i> be enough in many contexts, but is still a little short for comfort when selecting nonces randomly: <a href="https:&#x2F;&#x2F;www.imperialviolet.org&#x2F;2017&#x2F;05&#x2F;14&#x2F;aesgcmsiv.html" rel="nofollow">https:&#x2F;&#x2F;www.imperialviolet.org&#x2F;2017&#x2F;05&#x2F;14&#x2F;aesgcmsiv.html</a><p>It&#x27;s surprising that the blog post just declared success without bringing this up at all.<p>(It looks like AES.GCM.seal does let you specify the nonce, though, in cases where you can maintain a counter yourself.)
评论 #22229921 未加载
duckqlz超过 5 年前
&gt;This will allow Swift developers, regardless of the platform on which they deploy their applications, to access these APIs for a common set of cryptographic operations.<p>How often is swift used on a non-Apple platform? Also why?
评论 #22230981 未加载
评论 #22228565 未加载
评论 #22231343 未加载
captn3m0超过 5 年前
Oh great! I spent half an hour the other day figuring out how to do MD5 on Swift without CommonCrypto or Xcode.<p>The best answer was perfect swift libraries, which linked to OpenSSL but damn it was hard to figure out.<p>It is still too painful to write Swift outside of the blessed Apple world. This is a step, but still a long way to go.
ksec超过 5 年前
We are fast approaching Swift 6, and most of the Apps by Apple are still strictly Objective-C ( Not saying it is a bad thing ). Even the new Apply Pay App is Objective-C.<p>Where is Swift heading? If Apple isn&#x27;t dogfooding it themselves.
评论 #22240685 未加载
评论 #22239780 未加载
pjmlp超过 5 年前
So I wonder if in a future Swift for Windows, will Windows.Security.Cryptography be made use of, or only Apple gets special treatment.
评论 #22240705 未加载
brian_herman超过 5 年前
I want something like this for python or C.
评论 #22229312 未加载
评论 #22229028 未加载
iod超过 5 年前
Without knowing the .org, I thought this was going to be about SWIFT, <a href="https:&#x2F;&#x2F;www.swift.com" rel="nofollow">https:&#x2F;&#x2F;www.swift.com</a> , the electronic funds transfer service, working on some sort of blockchain or cryptocurrency related announcement.