Commit d63600c
committed
fix: use _get_buffer_or_str in update() for consistent str error
update() now raises 'Strings must be encoded before hashing' for str
input, matching hashlib exactly and consistent with one-shot functions
and constructors.1 parent 62b1b8f commit d63600c
2 files changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| 581 | + | |
581 | 582 | | |
582 | | - | |
| 583 | + | |
583 | 584 | | |
584 | 585 | | |
585 | 586 | | |
| 587 | + | |
586 | 588 | | |
587 | 589 | | |
588 | 590 | | |
| |||
931 | 933 | | |
932 | 934 | | |
933 | 935 | | |
| 936 | + | |
934 | 937 | | |
935 | | - | |
| 938 | + | |
936 | 939 | | |
937 | 940 | | |
938 | 941 | | |
| 942 | + | |
939 | 943 | | |
940 | 944 | | |
941 | 945 | | |
| |||
1283 | 1287 | | |
1284 | 1288 | | |
1285 | 1289 | | |
| 1290 | + | |
1286 | 1291 | | |
1287 | | - | |
| 1292 | + | |
1288 | 1293 | | |
1289 | 1294 | | |
1290 | 1295 | | |
| 1296 | + | |
1291 | 1297 | | |
1292 | 1298 | | |
1293 | 1299 | | |
| |||
1644 | 1650 | | |
1645 | 1651 | | |
1646 | 1652 | | |
| 1653 | + | |
1647 | 1654 | | |
1648 | | - | |
| 1655 | + | |
1649 | 1656 | | |
1650 | 1657 | | |
1651 | 1658 | | |
| 1659 | + | |
1652 | 1660 | | |
1653 | 1661 | | |
1654 | 1662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments