Lines Matching full:padded
322 // This function performs OAEP padding. The size of the buffer to receive the OAEP padded data must
334 BYTE *padded, // OUT: the pad data
338 BYTE *message // IN: the message being padded
355 pAssert(padded != NULL && message != NULL);
369 // Offset into padded leaving room for masked seed and byte of zero
370 pp = &padded[hLen + 1];
396 pp = &padded[hLen + 1];
398 if((retVal = _cpri__MGF1(hLen, &padded[1], hashAlg, dbSize, pp)) < 0)
402 pp = &padded[1];
407 *padded = 0x00;
431 UINT32 paddedSize, // IN: the size of the padded data
432 BYTE *padded // IN: the padded data
445 pAssert(hLen > 0 && dataOutSize != NULL && dataOut != NULL && padded != NULL);
453 // Strange size (anything smaller can't be an OAEP padded block)
455 if(paddedSize < (unsigned)((2 * hLen) + 2) || *padded != 0)
460 paddedSize-hLen-1, &padded[hLen+1])) < 0)
463 pp = &padded[1];
471 // Use the mask generated from seed to recover the padded data
472 pp = &padded[hLen+1];
524 BYTE *padded, // OUT: the pad data
526 BYTE *message // IN: the message being padded
533 memcpy(&padded[paddedSize - messageSize], message, messageSize);
535 *padded = 0;
536 padded[1] = 2;
538 _cpri__GenerateRandom(ps, &padded[2]);
540 padded[2+ps] = 0;
545 if(padded[ps] == 0)
546 padded[ps] = 0x55; // In the < 0.5% of the cases that the random