Commit 66abdaa
committed
GCM: fix gcm parms checking for old gcm API
Routine check_gcm_parms is only used in the "old" gcm API that works
on z13 and older machines. The length checks on S390_GCM_MAX_TEXT_LENGTH
and S390_GCM_MAX_AAD_LENGTH do not make sense here, because they would
only check the current input, but not the accumulated length values.
And according to the data types (unsigned long) these max values cannot
be reached anyway.
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>1 parent 25b397a commit 66abdaa
1 file changed
Lines changed: 8 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
262 | 261 | | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
276 | 268 | | |
277 | | - | |
278 | | - | |
| 269 | + | |
| 270 | + | |
279 | 271 | | |
280 | 272 | | |
281 | 273 | | |
| |||
0 commit comments