Encrypt Operation Error -4303 on iOS #14165
Replies: 1 comment 3 replies
-
Whelp, I figured it out! passing the following option on iOS fixed the error: const cryptor = crypto.createCryptor({
algorithm: crypto.ALGORITHM_AES128,
options: crypto.OPTION_PKCS7PADDING,
key,
initializationVector
}); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Attaching a sample project. ti-bug-repro.zip using the
ti.crypto
module to encrypt / decrypt. It works on android but gives an error in iOS on encryption.Looks like this error is a KCCAlignmentError.
I'm going to dig a little more to see if I can figure out a workaround or if it's an error in the
crypto
module. I wanted to open the discussion to see if anyone had suggestions of what I could doTI Info
Operating System
Name = macOS
Version = 14.7.1
Architecture = 64-bit
Num CPUs = 16
Memory = 64.0GB
Node.js
Node.js Version = 18.20.0
npm Version = 10.5.0
Titanium CLI
CLI Version = 7.1.5
Titanium sdk 12.4.0
Crypto module ios version: 2.0.0
Crypto module android version: 5.0.1
app.js file
Beta Was this translation helpful? Give feedback.
All reactions