Searched refs:RSA_PKCS1_PADDING_SIZE (Results 1 – 5 of 5) sorted by relevance
/third_party/openssl/crypto/rsa/ |
D | rsa_pk1.c | 24 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_1() 60 if (num < RSA_PKCS1_PADDING_SIZE) in RSA_padding_check_PKCS1_type_1() 123 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_PKCS1_type_2() 172 if (flen > num || num < RSA_PKCS1_PADDING_SIZE) { in RSA_padding_check_PKCS1_type_2() 238 tlen = constant_time_select_int(constant_time_lt(num - RSA_PKCS1_PADDING_SIZE, tlen), in RSA_padding_check_PKCS1_type_2() 239 num - RSA_PKCS1_PADDING_SIZE, tlen); in RSA_padding_check_PKCS1_type_2() 240 for (msg_index = 1; msg_index < num - RSA_PKCS1_PADDING_SIZE; msg_index <<= 1) { in RSA_padding_check_PKCS1_type_2() 241 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_PKCS1_type_2() 242 for (i = RSA_PKCS1_PADDING_SIZE; i < num - msg_index; i++) in RSA_padding_check_PKCS1_type_2() 247 to[i] = constant_time_select_8(mask, em[i + RSA_PKCS1_PADDING_SIZE], to[i]); in RSA_padding_check_PKCS1_type_2()
|
D | rsa_ssl.c | 23 if (flen > (tlen - RSA_PKCS1_PADDING_SIZE)) { in RSA_padding_add_SSLv23() 73 if (flen > num || num < RSA_PKCS1_PADDING_SIZE) { in RSA_padding_check_SSLv23() 159 tlen = constant_time_select_int(constant_time_lt(num - RSA_PKCS1_PADDING_SIZE, tlen), in RSA_padding_check_SSLv23() 160 num - RSA_PKCS1_PADDING_SIZE, tlen); in RSA_padding_check_SSLv23() 161 for (msg_index = 1; msg_index < num - RSA_PKCS1_PADDING_SIZE; msg_index <<= 1) { in RSA_padding_check_SSLv23() 162 mask = ~constant_time_eq(msg_index & (num - RSA_PKCS1_PADDING_SIZE - mlen), 0); in RSA_padding_check_SSLv23() 163 for (i = RSA_PKCS1_PADDING_SIZE; i < num - msg_index; i++) in RSA_padding_check_SSLv23() 168 to[i] = constant_time_select_8(mask, em[i + RSA_PKCS1_PADDING_SIZE], to[i]); in RSA_padding_check_SSLv23()
|
D | rsa_saos.c | 32 if (i > (j - RSA_PKCS1_PADDING_SIZE)) { in RSA_sign_ASN1_OCTET_STRING()
|
D | rsa_sign.c | 99 if (encoded_len > RSA_size(rsa) - RSA_PKCS1_PADDING_SIZE) { in RSA_sign()
|
/third_party/openssl/include/openssl/ |
D | rsa.h | 193 # define RSA_PKCS1_PADDING_SIZE 11 macro
|