Lines Matching refs:siglen
1190 size_t siglen; in mbedtls_rsa_rsassa_pss_verify_ext() local
1203 siglen = ctx->len; in mbedtls_rsa_rsassa_pss_verify_ext()
1205 if( siglen < 16 || siglen > sizeof( buf ) ) in mbedtls_rsa_rsassa_pss_verify_ext()
1217 if( buf[siglen - 1] != 0xBC ) in mbedtls_rsa_rsassa_pss_verify_ext()
1235 slen = siglen - hlen - 1; /* Currently length of salt + padding */ in mbedtls_rsa_rsassa_pss_verify_ext()
1248 siglen -= 1; in mbedtls_rsa_rsassa_pss_verify_ext()
1250 if( buf[0] >> ( 8 - siglen * 8 + msb ) ) in mbedtls_rsa_rsassa_pss_verify_ext()
1260 mgf_mask( p, siglen - hlen - 1, p + siglen - hlen - 1, hlen, &md_ctx ); in mbedtls_rsa_rsassa_pss_verify_ext()
1262 buf[0] &= 0xFF >> ( siglen * 8 - msb ); in mbedtls_rsa_rsassa_pss_verify_ext()
1264 while( p < buf + siglen && *p == 0 ) in mbedtls_rsa_rsassa_pss_verify_ext()
1267 if( p == buf + siglen || in mbedtls_rsa_rsassa_pss_verify_ext()
1339 size_t len, siglen, asn1_len; in mbedtls_rsa_rsassa_pkcs1_v15_verify() local
1349 siglen = ctx->len; in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1351 if( siglen < 16 || siglen > sizeof( buf ) ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1368 if( p >= buf + siglen - 1 || *p != 0xFF ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1374 len = siglen - ( p - buf ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()