mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Update NSS to 3.41
This commit is contained in:
parent
d5f6e64f43
commit
5f0986e66f
540 changed files with 49568 additions and 10631 deletions
|
|
@ -219,15 +219,18 @@ CTR_Update_HW_AES(CTRContext *ctr, unsigned char *outbuf,
|
|||
PORT_Assert(ctr->bufPtr == blocksize);
|
||||
}
|
||||
|
||||
intel_aes_ctr_worker(((AESContext *)(ctr->context))->Nr)(
|
||||
ctr, outbuf, outlen, maxout, inbuf, inlen, blocksize);
|
||||
/* XXX intel_aes_ctr_worker should set *outlen. */
|
||||
PORT_Assert(*outlen == 0);
|
||||
fullblocks = (inlen / blocksize) * blocksize;
|
||||
*outlen += fullblocks;
|
||||
outbuf += fullblocks;
|
||||
inbuf += fullblocks;
|
||||
inlen -= fullblocks;
|
||||
if (inlen >= blocksize) {
|
||||
rv = intel_aes_ctr_worker(((AESContext *)(ctr->context))->Nr)(
|
||||
ctr, outbuf, outlen, maxout, inbuf, inlen, blocksize);
|
||||
if (rv != SECSuccess) {
|
||||
return SECFailure;
|
||||
}
|
||||
fullblocks = (inlen / blocksize) * blocksize;
|
||||
*outlen += fullblocks;
|
||||
outbuf += fullblocks;
|
||||
inbuf += fullblocks;
|
||||
inlen -= fullblocks;
|
||||
}
|
||||
|
||||
if (inlen == 0) {
|
||||
return SECSuccess;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue