Hi!
Sometimes when calling
DCAppAttestService.shared.generateAssertion(key.id, clientDataHash: hash)
I'm getting DCError.Code.invalidInput
. I am formatting clientDataHash
usingSHA256.hash
- so it is always 32 bytes long.
As I found out - this error depends on hash that I pass to generateAssertion
method. But I could not find any system - which hashes are good and which are not.
Keys are always correct, otherwise invalidKey
error would be risen.
What can cause the issue? I'm testing on iPhone 11, iOS 15.2.1