Comments (8)
I think i've managed to get a base64 encoded key from java now, however this code now pauses on line 108 - OSStatus status = SecItemAdd((__bridge CFDictionaryRef)publicKey, &persistKey);
And when I click continue in the debugger it carries on as normal however the encoded string is NULL.
Is there an issue when trying with a new key?
It's not crashing, just pausing.
from objective-c-rsa.
Ok, sorry about so many notes. It seems it's pausing with an Exception, as if I remove the exception breakpoint it runs just fine, however the encoded string is always NULL :(
from objective-c-rsa.
Is the public key string in the format of this form?
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEChqe80lJLTTkJD3X3Lyd7Fj+
zuOhDZkjuLNPog3YR20e5JcrdqI9IFzNbACY/GQVhbnbvBqYgyql8DfPCGXpn0+X
NSxELIUw9Vh32QuhGNr3/TBpechrVeVpFPLwyaYNEk1CawgHCeQqf5uaqiaoBDOT
qeox88Lc1ld7MsfggQIDAQAB
-----END PUBLIC KEY-----
from objective-c-rsa.
Yes, I can get it working fine if I setup a new iOS project. I was originally using an OSX project.
I wonder if it's an issue to do with code signing as I don't have a valid OSX dev membership but do for iOS.
For it to use the keychain would it require proper code signing?
from objective-c-rsa.
I have an OS X CLI project and i'm having the same issue.
108 - OSStatus status = SecItemAdd((__bridge CFDictionaryRef)publicKey, &persistKey);
OSStatus = -25303 and return NULL encoded string.
The persistKey appears to be nil after the SecItemAdd.
from objective-c-rsa.
Hello. I wander how to encrype RSA by two parameters, "Mod“, ”Exp" ?
from objective-c-rsa.
iOS9 no worked。。。help
from objective-c-rsa.
@tomguan this link might help http://www.scriptscoop.com/t/b7214526ca56/ios-create-seckey-from-modulus-and-exponent-in-swift.html
from objective-c-rsa.
Related Issues (20)
- BEGIN RSA PUBLIC KEY
- 请问什么时候能支持私钥加密公钥解密啊?
- project returnung null values HOT 3
- 使用公钥加密后 java后台不能解密 HOT 2
- Can not decrypt HOT 3
- SecItemAdd status -34018 HOT 3
- Android sample HOT 3
- 请问有C#服务器的解密算法么? HOT 1
- RSA 加密线上失败,调试无法重现 HOT 7
- Can not decrypt with PKCS#1. HOT 1
- 应用在锁屏的时候解密失败,返回nil HOT 2
- RSA return -25308 errSecInteractionNotAllowed
- 并发时,SecItemCopyMatching方法会返回errSecItemNotFound HOT 5
- 在swift上加密后台不能解密 HOT 1
- 严重的bug HOT 1
- js怎么通过公钥解密?
- 并发的加解密会导致失败 HOT 1
- 这个库有两个严重的问题,使用前必看!!!
- 吴祖洋什么时候可以出来澄清,说下懒投资状态呢
- 请问 为什么解密时需要 把公钥存储到keychain? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objective-c-rsa.