Compare commits
1 Commits
main
...
anton/feat
Author | SHA1 | Date |
---|---|---|
Anton Livaja | 9cdd3b5aca |
|
@ -10,6 +10,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
bit_size % 8 == 0,
|
bit_size % 8 == 0,
|
||||||
"Bit size must be divisible by 8, got: {bit_size}"
|
"Bit size must be divisible by 8, got: {bit_size}"
|
||||||
);
|
);
|
||||||
|
assert!(
|
||||||
|
bit_size >= 128,
|
||||||
|
"Minimum supported bit size is 128, got {bit_size}"
|
||||||
|
);
|
||||||
match bit_size {
|
match bit_size {
|
||||||
128 | 256 | 512 => {}
|
128 | 256 | 512 => {}
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Reference in New Issue