Lines Matching defs:padded
336 /* Reset remainder bytes for padded mechs only if update successful. */
373 * If this is a padded mech, do one more update op on the
380 uint8_t padded[AES_BLOCK_LEN]; /* longest blocksize */
383 (void) pkcs7_encode(NULL, uctx->remain, padded, extra,
386 CRYPTO_SET_RAW_DATA(idata, padded, extra);
390 * counterparts; blocksize != 0 means padded mech.
471 uchar_t *padded = NULL;
491 padded = malloc(padded_len);
492 if (padded == NULL)
494 (void) pkcs7_encode(in, in_len, padded, padded_len,
503 padded = malloc(padded_len);
504 if (padded == NULL)
506 bzero(padded, padded_len); /* out could be NULL */
507 (void) memcpy(padded, out, *out_len);
526 if (op_type == UCRYPTO_ENCRYPT && padded != NULL) {
527 CRYPTO_SET_RAW_DATA(idata, padded, padded_len);
531 if (op_type == UCRYPTO_DECRYPT && padded != NULL) {
532 CRYPTO_SET_RAW_DATA(odata, padded, padded_len);
586 if (op_type == UCRYPTO_DECRYPT && padded != NULL) {
587 if (pkcs7_decode(padded, &padded_len) != 0) {
595 (void) memcpy(out, padded, padded_len);
601 if (padded != NULL)
602 free(padded);