Skip to content

Commit

Permalink
Add test for content encryption with non-utf8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
lsh123 committed Jul 5, 2023
1 parent 95b9c3a commit a032a21
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 11 additions & 2 deletions tests/testEnc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,20 @@ execEncTest $res_success \

execEncTest $res_success \
"" \
"aleksey-xmlenc-01/isolatin1" \
"aleksey-xmlenc-01/enc-element-isolatin1" \
"aes256-cbc rsa-1_5" \
"x509" \
"$priv_key_option:my-key $topfolder/keys/largersakey.$priv_key_format --pwd secret123" \
"--session-key aes-256 --xml-data $topfolder/aleksey-xmlenc-01/isolatin1.data --pubkey-cert-$cert_format:my-key $topfolder/keys/largersacert.$cert_format" \
"--session-key aes-256 --xml-data $topfolder/aleksey-xmlenc-01/enc-element-isolatin1.data --pubkey-cert-$cert_format:my-key $topfolder/keys/largersacert.$cert_format" \
"$priv_key_option:my-key $topfolder/keys/largersakey.$priv_key_format --pwd secret123"

execEncTest $res_success \
"" \
"aleksey-xmlenc-01/enc-content-isolatin1" \
"aes256-cbc rsa-1_5" \
"x509" \
"$priv_key_option:my-key $topfolder/keys/largersakey.$priv_key_format --pwd secret123" \
"--session-key aes-256 --xml-data $topfolder/aleksey-xmlenc-01/enc-content-isolatin1.data --node-name http://example.org/paymentv2:CreditCard --pubkey-cert-$cert_format:my-key $topfolder/keys/largersacert.$cert_format" \
"$priv_key_option:my-key $topfolder/keys/largersakey.$priv_key_format --pwd secret123"

execEncTest $res_success \
Expand Down

0 comments on commit a032a21

Please sign in to comment.