Commit 67ec1e5
authored
call check_length early on AesSiv::encrypt (#14792)
This is an optimization to early exit before allocating a PyBytes when
the buffer is too large and would error inside the encrypt_into (which
also calls check_length)1 parent b2da57a commit 67ec1e5
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
| 1138 | + | |
1138 | 1139 | | |
1139 | 1140 | | |
1140 | 1141 | | |
| |||
0 commit comments