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

The error "HMAC Mismatch" appears when I decrypt audio, sometimes it happens, not each time. #30

Open
tanyanghzsd opened this issue Jan 5, 2019 · 0 comments

Comments

@tanyanghzsd
Copy link

Hi,
I got a problem when I decrypted my encrypted audio file, after called '[decryptor isFinished]', the problem would appear. The error is "HMAC Mismatch", but I have no idea to solve it.

`- (void)encryptionDidFinish {
if (self.encryptor.error) {
//---> code often comes here!!! I can't get correct audio file. <---\
self.encryptedData = nil;
self.encryptor = nil;
}
else {
// self.encryptedData is complete. Use it as you like
[self writeEncryptedData];
if ([self.delegate respondsToSelector:@selector(onEncryptionDidFinish)]) {
[self.delegate onEncryptionDidFinish];
}
self.encryptedData = nil;
self.encryptor = nil;
}

}`

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