digitalbazaar / forge

A native implementation of TLS in Javascript and tools to write crypto-based and network-heavy webapps

Home Page:https://digitalbazaar.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid RSAES-OAEP padding WHY

briancorbin opened this issue · comments

Could someone help me understand what is causing this error?

throw new Error('Invalid RSAES-OAEP padding.');

My situation is:

I generate the keypair on one platform, and try to decrypt on another (react-native), and it throws this error for ~30% of the generated keys. Some work, some don't, and I can't figure out why 😭