Commit 84c7a09
committed
Fix Key.sign by setting buffer length
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.
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>1 parent d8a37cf commit 84c7a09
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
938 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
939 | 941 | | |
940 | 942 | | |
941 | 943 | | |
| |||
0 commit comments