File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,14 @@ REBNATIVE(rc4)
93
93
//
94
94
// "Encrypt/decrypt data using AES algorithm. Returns stream cipher context handle or encrypted/decrypted data."
95
95
//
96
- // /key "Provided only for the first time to get stream HANDLE!."
97
- // crypt-key [binary!] "Crypt key (16 or 32 bytes)."
98
- // iv [binary! none !] "Optional initialization vector (16 bytes)."
99
- // /decrypt "Use the crypt-key for decryption (default is to encrypt)"
96
+ // /key "Provided only for the first time to get stream HANDLE!."
97
+ // crypt-key [binary!] "Crypt key (16 or 32 bytes)."
98
+ // iv [none! binary !] "Optional initialization vector (16 bytes)."
99
+ // /decrypt "Use the crypt-key for decryption (default is to encrypt)"
100
100
// /stream
101
- // ctx [handle!] "Stream cipher context."
102
- // data [binary!] "Data to encrypt/decrypt. Or NONE to close the cipher stream."
101
+ // ctx [handle!] "Stream cipher context."
102
+ // data [binary!] "Data to encrypt/decrypt. Or NONE to close the cipher stream."
103
+
103
104
// ]
104
105
REBNATIVE (aes )
105
106
{
@@ -127,7 +128,7 @@ REBNATIVE(aes)
127
128
}
128
129
memcpy (iv , VAL_BIN_AT (val_iv ), AES_IV_SIZE );
129
130
} else {
130
- //TODO: provide some random IV or use ECB encryption if IV is not specified
131
+ //TODO: Use ECB encryption if IV is not specified
131
132
memset (iv , 0 , AES_IV_SIZE );
132
133
}
133
134
You can’t perform that action at this time.
0 commit comments