Apple Opens Cryptographic Libraries to Third-Party Developers to Encourage Security - MacRumors
Skip to Content

Apple Opens Cryptographic Libraries to Third-Party Developers to Encourage Security

by

Apple announced yesterday that the company has opened up its cryptographic libraries so that third-party developers can build more "advanced security features" into their apps (via VentureBeat). The cryptographic libraries being opened to developers are the same ones Apple uses to protect iOS and OS X, as Apple notes on its updated site.

crypto libraries
Developers will have access to two of the company's advanced security features, including Security Framework and Common Crypto. Security Framework gives developers tools for organizing certificates, public and private keys, and trust policies, ensuring that all sensitive information is stored privately in a "secure repository for sensitive user data." Common Crypto library provides additional support for symmetric encryption, hash-based message authentication codes, and digests.

Both Security Framework and Common Crypto rely on the corecrypto library to provide implementations of low level cryptographic primitives. This is also the library submitted for validation of compliance with U.S. Federal Information Processing Standards (FIPS) 140-2 Level 1. Although corecrypto does not directly provide programming interfaces for developers and should not be used by iOS or OS X apps, the source code is available to allow for verification of its security characteristics and correct functioning.

Check out Apple's official website for reference sheets, service guides, and links to the open source releases for Security Framework and Common Crypto libraries.

Top Rated Comments

143 months ago
That was my thought as well. Plus, could this knowledge enable a small "back door" that the government has been pestering Apple about?
No. It doesn't matter. Good security isn't based on obscurity. The current security we have is based on our collective knowledge of mathematics. It's good that Apple is opening this up. If developers need to do secure hashing or what not, it's better to use a tried and tested crypto algorithm than trying to roll your own.
Score: 5 Votes (Like | Disagree)
143 months ago
This seems misreported. The only thing new here is the source code for corecrypto. This does not appear to be made to allow third-party-developers to implement new security API's. From the page itself:

Both Security Framework and Common Crypto rely on the corecrypto library to provide implementations of low level cryptographic primitives. This is also the library submitted for validation of compliance with U.S. Federal Information Processing Standards (FIPS) 140-2 Level 1. Although corecrypto does not directly provide programming interfaces for developers and should not be used by iOS or OS X apps, the source code is available to allow for verification of its security characteristics and correct functioning.

(emphasis is mine)

From what I can understand, there are no new usable libraries or API's here. OS X and iOS developers can use Apple's existing Security Framework and Common Crypto services like they have always done.

Whats new is that the source code for the CoreCrypto library that Security Framework and Common Crypto use is available. This allows developers and security professionals to better understand what the existing frameworks were already doing in the background.

One of the benefits of this release is to allow auditing of the source code, and to give assurance to developers with a "trust no one" attitude that the built-in libraries are secure and safe to use.
Score: 4 Votes (Like | Disagree)
143 months ago
No, as others said, security comes from having good practices, not by keeping your practices secret.

Linux is generally regarded as the most secure platform, even though it's completely open source. Lots of people have read through the code looking for weaknesses, and lots of people have contributed fixes for any weaknesses they find.
Linux's security reputation is actually pretty bad. BSDs and UNIX variants have a good reputation. OpenBSD in particular is highly-regarded, in part because they audit changes rather stringently. Windows is getting better, and Linux is getting significantly worse.

OpenSSL is an extremely strong proof against the idea that open source is inherently more secure. It had tremendous numbers of very serious flaws that had been in it for years. Just because people can look at the code doesn't mean that they do. That's why the OpenBSD foundation forked OpenSSL, removed tons of options, and started developing it with their audit model as LibreSSL. It's why the OpenBSD guys recently replaced sudo with a new tool called doas that has far fewer options and as a result, far less that can go wrong.

In my experience, much software developed for Linux is built on the platform because it's free and it lets the developers work very quickly. Tons of open-source code runs on Linux, so you just have to download a bunch of libraries and write glue code to get them to do what you want. Unfortunately, many don't take the time to set up their application to run properly under a non-root user account. For that matter, the recommended installation method for a lot of software now is to run curl to fetch a URL, then pipe the output to a root-level bash shell. That is literally telling your system to do whatever some web server or anything claiming to be that server tells it to do.
Score: 3 Votes (Like | Disagree)
143 months ago
What could go wrong?

:apple:
Not much. Even if the code were kept closed, people can look at the running binary code. It is not that hard to read. In the old days I used to write in Cobol for IBM mainframes and it was common to get a "core dump". This was a printed hexadecimal dump of the computer's RAM to paper. We'd plow through it with a pencil and figure out what went wrong. We did not have debuggers. Anyone can still do this if they take the time. The Intel instruction set is more complex than was IBM360 but not by much.

Certainly the average user can't read a hex dump of a closed source crypto library but many people can. So closing it just makes it harder to read, not impossible.

That said, there are systems were the executable code itself is encrypted. These are completely unreadable and I'd worry there are backdoors and whatever in there
Score: 2 Votes (Like | Disagree)
ArtOfWarfare Avatar
143 months ago
That was my thought as well. Plus, could this knowledge enable a small "back door" that the government has been pestering Apple about?
No, as others said, security comes from having good practices, not by keeping your practices secret.

Linux is generally regarded as the most secure platform, even though it's completely open source. Lots of people have read through the code looking for weaknesses, and lots of people have contributed fixes for any weaknesses they find.
Score: 2 Votes (Like | Disagree)
sudo1996 Avatar
143 months ago
In theory you could verify that the source code is in fact running. Compile the source to binary and look at the binaries. It would take some effort but it certainly could be done.

You could also disassemble (convert the binary to assembly) the crypto library and look at what the code is doing and verify that it is doing about the same job as the C source code.

Both methods are labor intensive because you don't get a byte per byte match even if everything is as it should be. Even so, I bet someone has already looked and we'd hear quickly if we were tricked.
I think it's nearly impossible to do that thoroughly within a reasonable timespan. As you said, you're not going to get the exact same instructions when you compile the source code. They could slip something in. A single extra jump instruction could constitute a security vulnerability.
Score: 1 Votes (Like | Disagree)

Popular Stories

Apple TV 4K HomeView HomePod Mini tweaked

New Apple TV 4K, HomeView, and HomePod Mini: 16 Details Just Leaked

Sunday October 11, 2026 12:56 pm PDT by
Just two days before Apple's "Welcome home" experience in New York, Bloomberg's Mark Gurman has leaked several details about the new products set to be unveiled, including an all-new smart home hub, a HomePod mini 2, and a new Apple TV 4K. Here is an all-in-one summary of the details shared by Gurman:Apple's home hub with a touch-enabled display will be named HomeView, seemingly confirming a ...
Apple HomeView lineup feature1

Apple Announces 'HomeView' Smart Home Hub

Tuesday October 13, 2026 6:00 am PDT by
Apple today announced the "HomeView," an all-new kind of smart home hub featuring a 7-inch Liquid Retina display and Siri AI. Apple's senior vice president of Worldwide Marketing Greg Joswiak said: Apple HomeView is designed to be shared by everyone in the home yet feel completely personal to each user. It recognizes your face to shift from a household screen to your own experience,...
Apple TV 4K 4th Generation feature4

New Apple TV 4K Announced With A19 Chip, Updated Siri Remote, More

Tuesday October 13, 2026 6:08 am PDT by
Apple today announced the fourth-generation Apple TV 4K, with key features including an A19 chip, Siri AI support, an updated Siri Remote that has Find My support with Precision Finding, built in far-field microphones, support for surround sound with four HomePods in front and rear pairs, and more. The A19 chip in the new Apple TV 4K delivers up to 50% faster CPU performance and up to twice...
Latest Stories
Apple's HomeView Repair Fees Revealed
Apple's HomeView Repair Fees Revealed
16 minutes ago
Everything Apple Still Has Coming in October
Everything Apple Still Has Coming in October
1 hour ago
Welcome Home: Everything Apple Announced on October 13
Welcome Home: Everything Apple Announced on October 13
3 hours ago
Will the Full-Sized HomePod Get Siri AI? Apple's Website Offers a Clue
Will the Full-Sized HomePod Get Siri AI? Apple's Website Offers a Clue
3 hours ago
Apple Releases Third Public Betas of iOS 27.2 and macOS Golden Gate 27.2
Apple Releases Third Public Betas of iOS 27.2 and macOS Golden Gate 27.2
3 hours ago
iOS 27.2 Adds New Apple Music Icon
iOS 27.2 Adds New Apple Music Icon
3 hours ago
HomePod Mini 2 Works as Default Speaker With Select Macs
HomePod Mini 2 Works as Default Speaker With Select Macs
4 hours ago
Elevation Lab Pulls AirTag Silencer After Stalking Concerns
Elevation Lab Pulls AirTag Silencer After Stalking Concerns
4 hours ago
iOS 27.2 Beta 4 Removes New Health App
iOS 27.2 Beta 4 Removes New Health App
4 hours ago
iPhone Duo Will Have Day-One iOS 27.1 Update
iPhone Duo Will Have Day-One iOS 27.1 Update
5 hours ago
Where to Pre-Order Apple's New HomeView, HomePod Mini 2, and Apple TV 4K
Where to Pre-Order Apple's New HomeView, HomePod Mini 2, and Apple TV 4K
5 hours ago
Apple Releases New AirPods Beta Firmware
Apple Releases New AirPods Beta Firmware
7 hours ago
Apple Seeds Fourth macOS Golden Gate 27.2 Beta to Developers
Apple Seeds Fourth macOS Golden Gate 27.2 Beta to Developers
7 hours ago
Apple Releases Fourth iOS 27.2 Beta
Apple Releases Fourth iOS 27.2 Beta
7 hours ago
Apple Releases Fourth watchOS 27.2 and visionOS 27.2 Betas
Apple Releases Fourth watchOS 27.2 and visionOS 27.2 Betas
7 hours ago
Anker and Jackery Offer Prime Day Encore Discounts on Power Stations
Anker and Jackery Offer Prime Day Encore Discounts on Power Stations
8 hours ago
New Apple TV 4K and Siri Remote Have These 14 New Features
New Apple TV 4K and Siri Remote Have These 14 New Features
8 hours ago
HomeView Runs Third-Party Apps From Your iPhone or iPad
HomeView Runs Third-Party Apps From Your iPhone or iPad
8 hours ago
RIP, homeOS
RIP, homeOS
8 hours ago
New Apple TV 4K Supports Surround Sound via Four HomePods
New Apple TV 4K Supports Surround Sound via Four HomePods
9 hours ago
Apple Says HomePod Mini 2 Won't Support Siri AI Right Away
Apple Says HomePod Mini 2 Won't Support Siri AI Right Away
9 hours ago
HomeView Can Dim to Apple's Lowest-Ever Display Brightness
HomeView Can Dim to Apple's Lowest-Ever Display Brightness
9 hours ago
New Apple TV 4K Adds Far-Field Microphones for Hands-Free Siri
New Apple TV 4K Adds Far-Field Microphones for Hands-Free Siri
9 hours ago
Apple Details HomeView's Audio Hardware
Apple Details HomeView's Audio Hardware
9 hours ago
Apple Shares Videos for HomeView, Apple TV 4K, and HomePod Mini 2
Apple Shares Videos for HomeView, Apple TV 4K, and HomePod Mini 2
9 hours ago
HomeView Comes in Four Colors, but Wall-Mounted Model Gets Just Two
HomeView Comes in Four Colors, but Wall-Mounted Model Gets Just Two
10 hours ago
Older Apple TV 4K Models to Gain Apple Intelligence and Siri AI Support
Older Apple TV 4K Models to Gain Apple Intelligence and Siri AI Support
10 hours ago
HomeView Brings Guided Recipes and Hands-Free Timers to the Kitchen
HomeView Brings Guided Recipes and Hands-Free Timers to the Kitchen
10 hours ago
New Siri Remote is $59 and Compatible With These Apple TV Models
New Siri Remote is $59 and Compatible With These Apple TV Models
10 hours ago
HomeView's Wall Model: Pay More, Get Less Speaker
HomeView's Wall Model: Pay More, Get Less Speaker
10 hours ago