Open thomashagstrom opened 3 years ago
Same thing with RSA.verify64WithAlgorithm
const algorithm = RSA.SHA256withRSA;
const signature = response.data?.signature;
const publicKey = await rsaManager.WriteKeyChainPair();
console.log('>> verify64WithAlgorithm: ' + 'totally BOGUS??');
const verified = await RSA.verify64WithAlgorithm(
signature,
'totally BOGUS??',
publicKey,
algorithm,
);
console.log(
'verify64WithAlgorithm',
verified.toString().toUpperCase(),
);
same issue
wow, something is very wrong.
I will try to look into it, PRs welcome
Same issue. RSA.verify(...)
returns true
when it must be false
.
Otherwise it randomly throws exception Error: error
instead of false
.
Platform: iPhone 5s Simulator (iOS 12.4)
I am also facing same issue in iOS. for android it is working fine.
Need help :-)
I had some issues with iOS verify functions as well. I created this PR: https://github.com/amitaymolko/react-native-rsa-native/pull/117
Could some maintainer check that please?
@amitaymolko @johku90 still error in version 2.0.4, can you check it again?
When verifying using either
RSA
orRSAKeychain
on iOS any totally bogus message will pass astrue
. Completely unreliable.