This is an automated email from the ASF dual-hosted git repository.
yuanz pushed a commit to branch no-std
in repository
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
The following commit(s) were added to refs/heads/no-std by this push:
new 1a25772 acipher main.rs: Fix arg validation error messages
1a25772 is described below
commit 1a257726d2f5ea81e6e44673576f3afc5e93b25a
Author: Sean Gilligan <[email protected]>
AuthorDate: Tue May 21 19:24:40 2024 -0700
acipher main.rs: Fix arg validation error messages
Signed-off-by: Sean Gilligan <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Reviewed-by: Yuan Zhuang <[email protected]>
---
examples/acipher-rs/host/src/main.rs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/acipher-rs/host/src/main.rs
b/examples/acipher-rs/host/src/main.rs
index 2e0df55..1c1fe05 100644
--- a/examples/acipher-rs/host/src/main.rs
+++ b/examples/acipher-rs/host/src/main.rs
@@ -67,16 +67,16 @@ fn main() -> optee_teec::Result<()> {
if args.len() != 3 {
println!(
"Receive {} arguments while 2 arguments are expected!",
- args.len()
+ args.len() - 1
);
- println!("Correct usage: passed 2 arguments as <key_size> and <string
to encrypt>");
+ println!("Correct usage: {} <key_size> <string to encrypt>", args[0]);
return Err(Error::new(ErrorKind::BadParameters));
}
let mut key_size = args[1].parse::<u32>().unwrap();
if key_size < 256 {
println!(
- "Wrong key size {} is received. Use default minimal key size 256
instead.",
+ "Key size of {} is too small. Using default minimal key size 256
instead.",
key_size
);
key_size = 256;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]