Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in SignalPreKeyBundle initWithRegistrationId method #13

Open
kasas opened this issue Jan 8, 2019 · 0 comments
Open

Error in SignalPreKeyBundle initWithRegistrationId method #13

kasas opened this issue Jan 8, 2019 · 0 comments

Comments

@kasas
Copy link

kasas commented Jan 8, 2019

Good evening,

we are trying to use Signal with OMEMO in an XMPP app, however we are stuck in this method:

SignalPreKeyBundle* preKey = [[SignalPreKeyBundle alloc] initWithRegistrationId:0 deviceId:deviceId preKeyId:key.preKeyId preKeyPublic:key.publicKey signedPreKeyId:bundle.signedPreKey.preKeyId signedPreKeyPublic:bundle.signedPreKey.publicKey signature:bundle.signedPreKey.signature identityKey:bundle.identityKey error:&error];

As the init method is not able to use prekey publickey generated by the SignalHelper of the same framework. Could you please help us?

As you can see

captura de pantalla 2019-01-08 a las 18 04 53

ec_public_key *pre_key_public = [SignalKeyPair publicKeyFromData:preKeyPublic error:error];
if (!pre_key_public) {
return nil;
}

is returning nil.. the error is domain: "org.whispersystems.SignalProtocol" - code: 4

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant