Lines Matching refs:modlen
87 * should not be smaller than modlen since PKCS or X_509
90 if (dca_length(out) < reqp->dr_ctx.modlen) {
93 dca_length(out), reqp->dr_ctx.modlen);
94 out->cd_length = reqp->dr_ctx.modlen;
99 if (out != in && out->cd_length > reqp->dr_ctx.modlen)
100 out->cd_length = reqp->dr_ctx.modlen;
103 if (len > reqp->dr_ctx.modlen) {
113 if (len < reqp->dr_ctx.modlen && (mode == DCA_RSA_DEC ||
124 if (out->cd_length < reqp->dr_ctx.modlen && (mode == DCA_RSA_DEC ||
127 out->cd_length = reqp->dr_ctx.modlen;
147 reqp->dr_ctx.modlen) > 0) {
173 len, reqp->dr_ctx.modlen, reqp->dr_ctx.pqfix)) !=
235 reqp->dr_ctx.modlen, reqp->dr_ctx.mode);
328 reqp->dr_ctx.modlen, reqp->dr_ctx.mode);
461 &attrdata, &(reqp->dr_ctx.modlen))) != CRYPTO_SUCCESS) {
465 if ((reqp->dr_ctx.modlen == 0) ||
466 (reqp->dr_ctx.modlen > RSA_MAX_KEY_LEN)) {
471 if ((reqp->dr_ctx.mod = kmem_alloc(reqp->dr_ctx.modlen, kmflag)) ==
476 bcopy(attrdata, reqp->dr_ctx.mod, reqp->dr_ctx.modlen);
513 modbits = dca_bitlen(reqp->dr_ctx.mod, reqp->dr_ctx.modlen);
585 dca_reverse(reqp->dr_ctx.mod, kaddr, reqp->dr_ctx.modlen,
612 kmem_free(reqp->dr_ctx.mod, reqp->dr_ctx.modlen);
617 reqp->dr_ctx.modlen = 0;