Skip to content

Commit f389502

Browse files
authored
Merge pull request #7 from bb2000/1
Use AES keysize from input
2 parents eb2b480 + 717b426 commit f389502

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/RCTCrypto/lib/Aes.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ + (NSData *) AES128CBC: (NSString *)operation data: (NSData *)data key: (NSStrin
1919
kCCAlgorithmAES128,
2020
kCCOptionPKCS7Padding,
2121
keyData.bytes,
22-
kCCKeySizeAES128,
22+
keyData.length,
2323
ivData.bytes,
2424
data.bytes, data.length,
2525
buffer.mutableBytes,

0 commit comments

Comments
 (0)