rust-keyutils
rust-keyutils copied to clipboard
Fix Key.sign method and add test for it
The truncate() method doesn't do anything if the "len" is greater than the current length, which is the case here. So instead, use the Vec.set_len method.