updates>
This commit is contained in:
@@ -155,7 +155,7 @@ int main(void){
|
||||
unsigned char ciphertext[2048];
|
||||
|
||||
int plaintext_len = (int)strlen(buffer);
|
||||
int ciphertext_len = stream_encrypt((unsigned char*)buffer, plaintext_len, key_bytes, iv_bytes, ciphertext);
|
||||
int ciphertext_len = block_encrypt((unsigned char*)buffer, plaintext_len, key_bytes, iv_bytes, ciphertext);
|
||||
if (ciphertext_len <= 0) {
|
||||
printf("encrypt failed or produced empty ciphertext_len=%d\n", ciphertext_len);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user