Skip to content

Commit 8e8bc2a

Browse files
author
Patrik Majerčík
committed
iOS - enable null iv
1 parent 32ef7f7 commit 8e8bc2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RCTAes/lib/AesCrypt.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ + (NSData *) AES256CBC: (NSString *)operation data: (NSData *)data key: (NSStrin
7575
kCCAlgorithmAES128,
7676
kCCOptionPKCS7Padding,
7777
keyData.bytes, kCCKeySizeAES256,
78-
ivData.bytes,
78+
ivData.length ? ivData.bytes : nil,
7979
data.bytes, data.length,
8080
buffer.mutableBytes, buffer.length,
8181
&numBytes);

0 commit comments

Comments
 (0)