Rijndael encryption

Hi,

I found a cocoa extension for NSData class, that implements the Rijndael encryption/decryption. But it uses headers from Ruby.framework, which is not present in iPhoneSimulator 2.0 SDK. How do I config my Xcode project in order to be able to use these extensions?

Thanks in advance,

Nava.

P.S. the file is

#include <openssl/aes.h>

Mac OS X (10.5.4), MacIntel, iPhoneSimulator 2.0

Posted on Jul 20, 2008 10:20 AM

Reply
29 replies

Jul 20, 2008 10:38 AM in response to robhedin

Thanks for reply. All I need is to open the file, encrypted with Rijndael encryption.

openssl/aes.h contains some constants/function the implementation of NSData extension uses like
AES set_encryptkey, SHA1 and so on. What is CommonCrypo? Does iPhoneSimulatorSDk 2.0 have it?

aes is something standard. Will it be enough just to tell Xcode where to look for Ruby.framework?

Thanks again,

Nava

Jul 20, 2008 11:22 AM in response to navac

Is anything this application does worth nearly 200MB of space? If not, I'd look for a non-Ruby solution. If so, then I'd ask a lawyer whether or not you can actually re-distribute the thing. Ruby's free but Ruby.framework is maintained by Apple and may not be.

But again, Ruby has nothing to do with OpenSSL. If that's the only thing you need, then grab it yourself.

Jul 21, 2008 6:57 AM in response to navac

If a program at App Store includes encryption software, Apple wants some signed paper
from US Export regulators.

http://www.bis.doc.gov/encryption/default.htm

As I understand, the US government has less restrictions on open source (and Rijndael lib), and allow export for 128 bit
in code exported from US. At the moment Apple does not in the Interface at App Store upload, allow us to select this open source option.

I requested Apple some time ago about this issue, but they have never returned with an answer.

Before you use more time on Rijndael code, I will suggest you get a green light from Apple. And tell us if you get it 🙂

Jul 21, 2008 6:11 PM in response to Jan Frydendal

This is what they say in iTunes if you select encryption:

"A copy of the commodity classification ruling (CCATS) confirming classification of the Product under ECCN 5D992, as a mass market encryption item under section 742.15(b)(2) of the Export Administration Regulations OR a copy of the “Notification” described in 742.15(b)(1), must be attached."

The notification described in 742.15(b)(1) is, from what I can tell, simply:

http://www.bis.doc.gov/encryption/pubavailencsourcecodenofify.html

Whic is just an email to BIS following a pretty basic template.

Apple isn't particularly clear about what they're willing to accept.

It's all a little annoying that they have been so vague on the requirements. I get the sense it's lawyers and make work, but hey, what do I know.

Jul 22, 2008 2:49 AM in response to blazespinnaker

To blazespinnaker

you are correct using open source should be easy. Special if you just wants to link an existing library.

The problem is Apple wants a document, and as I can see BIS does not offer an official document for open source. They just ask us to send an email telling where the source is, and thats all.

Apple needs an option in the registration interface, to select open source without BIS restrictions.

I asked Apple for advice 3 July 2008, and all I have seen is a standard mail confirmation with ID 50789051

Wonder if Apple reads this Discussion board.

Jul 22, 2008 3:47 AM in response to Jan Frydendal

Yeah, I put my TSU NOTIFICATION in a pdf (via Google Docs) and uploaded that.

I've seen Apache do TSU NOTIFICATIONs as well, and all they do is publish the basic template described in the link above with name of the product (Apache, etc) and link to the source files.

I'm going to try calling the BIS and see what they say. Perhaps I should just get it reviewed. The process seems pretty murky unfortunately.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Rijndael encryption

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.