feat: v1.7.8

This commit is contained in:
2023-11-01 07:36:36 +08:00
parent 4f015be358
commit c43c7011e7

View File

@@ -46,6 +46,10 @@ impl Command for CommandImpl {
return simple_error!("Challenge must assigned");
};
if secret_bytes.len() != 20 {
return simple_error!("Secret length must be 20, actual is: {}", secret_bytes.len());
}
// Challenge can not be greater than 64 bytes
if challenge_bytes.len() > 64 {
return simple_error!("Challenge bytes is: {}, more than 64", challenge_bytes.len());