| Description: |
platform details:
1. Tcl - 8.5.14
2. Tcllib - 1.15
3. aes - 1.1
Test program:
package require aes
set key [binary format a32 0123456789012345678901234567890123456789]
# Encrypt
set outfl [open /tmp/aes.out wb+]
aes::aes -key $key -out $outfl "Hello World Tcl"
close $outfl
# Decrypt
set infl [open /tmp/aes.out rb]
set outfl [open /tmp/decrypt.txt w+]
aes::aes -dir decrypt -key $key -in $infl -out $outfl
close $infl
close $outfl
Issue:
When I open the decrypt.txt, I get extra garbage after the text "Hello World Tcl".
It works fine if I give the data to decrypt without -in option (ie., [read $infl]
|