Commit e81bb9f
crypto: add getIntOption function to reduce dupl
This commit adds a getIntOption function to reduce the code duplicated
for getting the padding, and saltLength options.
PR-URL: #20247
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 391d2f8 commit e81bb9fCopy full SHA for e81bb9f
File tree
Expand file treeCollapse file tree
1 file changed
+23
-32
lines changedOpen diff view settings
Filter options
- lib/internal/crypto
Expand file treeCollapse file tree
1 file changed
+23
-32
lines changedOpen diff view settings
Collapse file
+23-32Lines changed: 23 additions & 32 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
53 | 53 | |
54 | 54 | |
55 | 55 | |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
56 | 75 | |
57 | 76 | |
58 | 77 | |
| ||
61 | 80 | |
62 | 81 | |
63 | 82 | |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
| 83 | + |
72 | 84 | |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
| 85 | + |
81 | 86 | |
82 | 87 | |
83 | 88 | |
| ||
119 | 124 | |
120 | 125 | |
121 | 126 | |
122 | | - |
123 | | - |
124 | | - |
125 | | - |
126 | | - |
127 | | - |
128 | | - |
129 | | - |
| 127 | + |
130 | 128 | |
131 | | - |
132 | | - |
133 | | - |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
| 129 | + |
139 | 130 | |
140 | 131 | |
141 | 132 | |
|
0 commit comments