Searched refs:pad_done (Results 1 – 4 of 4) sorted by relevance
/external/openthread/third_party/mbedtls/repo/library/ |
D | constant_time.c | 697 unsigned char pad_done = 0; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() local 718 pad_done |= ((input[i] | (unsigned char)-input[i]) >> 7) ^ 1; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 719 pad_count += ((pad_done | (unsigned char)-pad_done) >> 7) ^ 1; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 733 pad_done |= mbedtls_ct_uint_if( input[i], 0, 1 ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 734 pad_count += mbedtls_ct_uint_if( pad_done, 0, 1 ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 735 bad |= mbedtls_ct_uint_if( pad_done, 0, input[i] ^ 0xFF ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 740 bad |= mbedtls_ct_uint_if( pad_done, 0, 1 ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
|
D | rsa.c | 1351 unsigned char *p, bad, pad_done; in mbedtls_rsa_rsaes_oaep_decrypt() local 1441 pad_done = 0; in mbedtls_rsa_rsaes_oaep_decrypt() 1444 pad_done |= p[i]; in mbedtls_rsa_rsaes_oaep_decrypt() 1445 pad_len += ((pad_done | (unsigned char)-pad_done) >> 7) ^ 1; in mbedtls_rsa_rsaes_oaep_decrypt()
|
/external/mbedtls/library/ |
D | constant_time.c | 868 unsigned char pad_done = 0; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() local 888 pad_done |= ((input[i] | (unsigned char)-input[i]) >> 7) ^ 1; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 889 pad_count += ((pad_done | (unsigned char)-pad_done) >> 7) ^ 1; in mbedtls_ct_rsaes_pkcs1_v15_unpadding() 894 bad |= mbedtls_ct_uint_if( pad_done, 0, 1 ); in mbedtls_ct_rsaes_pkcs1_v15_unpadding()
|
D | rsa.c | 1416 unsigned char *p, bad, pad_done; in mbedtls_rsa_rsaes_oaep_decrypt() local 1484 pad_done = 0; in mbedtls_rsa_rsaes_oaep_decrypt() 1487 pad_done |= p[i]; in mbedtls_rsa_rsaes_oaep_decrypt() 1488 pad_len += ((pad_done | (unsigned char)-pad_done) >> 7) ^ 1; in mbedtls_rsa_rsaes_oaep_decrypt()
|