Lines Matching refs:klen
99 static int rsa_pss_get_emlen(uint32_t klen, struct long_int_num *pn, in rsa_pss_get_emlen() argument
113 if (*emlen > klen) { in rsa_pss_get_emlen()
291 uint32_t klen; in hvb_rsa_verify_pss_param_check() local
299 klen = bit2byte(pkey->width); in hvb_rsa_verify_pss_param_check()
303 if (pkey->nlen != klen || pkey->rlen > pkey->nlen) { in hvb_rsa_verify_pss_param_check()
306 if (signlen > klen) { in hvb_rsa_verify_pss_param_check()
347 uint32_t klen; in hvb_rsa_verify_pss() local
363 klen = bit2byte(pkey->width); in hvb_rsa_verify_pss()
397 ret = rsa_pss_get_emlen(klen, p_n, &emlen, &embits); in hvb_rsa_verify_pss()
401 if (klen - emlen == 1 && em_data[0] != 0) { in hvb_rsa_verify_pss()
405 ret = emsa_pss_verify(saltlen, pdigest, digestlen, emlen, embits, em_data + klen - emlen); in hvb_rsa_verify_pss()