security-framework Questions

2

Solved

Apple's documentation for OS X talks about using SecItemImport to obtain a SecKeyRef. The function signature looks like this: OSStatus SecItemImport ( CFDataRef importedData, CFStringRef fileNam...
Mini asked 12/5, 2014 at 15:49

5

Solved

I am storing passwords into the iOS keychain and later retrieving them to implement a "remember me" (auto-login) feature on my app. I implemented my own wrapper around the Security.framework func...
Yolande asked 21/6, 2019 at 9:33

1

Solved

We have a Launch Daemon which (necessarily, for various reasons) runs as root, and which communicates with a server component via the network. It needs to authenticate with the service, so when it ...
Conchiolin asked 16/11, 2016 at 17:12

2

Solved

For some reason I can't get this simple keychain code to work. //Let's create an empty mutable dictionary: NSMutableDictionary *keychainItem = [NSMutableDictionary dictionary]; NSString *username...
Yandell asked 11/6, 2014 at 2:8

1

Solved

I am trying to call a function in the Security.framework, from swift code. Forgetting about the "error out" (last) parameter for a second, if I call the function like this: let accessControlRef = ...
Undersecretary asked 21/7, 2015 at 6:20

1

Solved

Is it possible to change the default public exponent (e) when generating an RSA key pair using SecKeyGeneratePair? I am aware 65537 is a good default, so this is just a question about whether it i...
Gardening asked 9/2, 2014 at 0:32

1

Solved

I need to update the kSecAttrAccessible of a keychain entry. I don't need to update the actual data, just the accessibility attribute. First I try to find the item to make sure that my query dict...
Libeler asked 19/5, 2015 at 22:17

1

It seems that a keychain file (with extension .keychain) will usually have an invisible file associated with it, located in the same directory. This invisible file always has these properties: I...
Cartwheel asked 18/6, 2014 at 14:57

1

Solved

I'm specifically looking into using the SecKeyGeneratePair() method in the Security framework and specifying [kSecAttrKeyType: kSecAttrKeyTypeEC] in the params dictionary. But I haven't been able ...
Eeg asked 15/6, 2014 at 1:58

1

Solved

Many userspace CSPRNG's have an issue where after fork(2), it's possible for the two different processes to return the same stream of random bytes. From looking at dtruss, it's clear that SecRando...
Natator asked 12/2, 2014 at 17:16

2

Solved

I am using digital certificates to sign data files in my App. The code fragment below fails when the call to SecKeyRawVerify returns with -9809. This is running on an iPhone. I can't even identify ...
Itis asked 25/5, 2012 at 15:17

3

So the OS X Keychain has three pieces of information: ServiceName (the name of my app) Username Password I obviously always know the ServiceName. Is there a way to find any saved Username(s) fo...
Kriss asked 9/12, 2011 at 20:19

1

I want to securely communicate with my server and here is what I am doing... NSURLProtectionSpace *protectionSpace = [challenge protectionSpace]; SecTrustRef trust = [protectionSpace serverTrust];...
Houseless asked 17/3, 2011 at 15:7

1

I am trying to verify the user identity on my application using a certificate / identity that the user has stored by opening a .cer / .p12 attached to an email. The certificate appears on the setti...
Ante asked 22/12, 2009 at 8:59
1

© 2022 - 2024 — McMap. All rights reserved.