Home
last modified time | relevance | path

Searched refs:decrypt_buf (Results 1 – 3 of 3) sorted by relevance

/third_party/openssl/crypto/rsa/
Drsa_sign.c129 unsigned char *decrypt_buf = NULL, *encoded = NULL; in int_rsa_verify() local
137 decrypt_buf = OPENSSL_malloc(siglen); in int_rsa_verify()
138 if (decrypt_buf == NULL) { in int_rsa_verify()
143 decrypt_len = RSA_public_decrypt((int)siglen, sigbuf, decrypt_buf, rsa, in int_rsa_verify()
160 memcpy(rm, decrypt_buf, SSL_SIG_LENGTH); in int_rsa_verify()
168 if (memcmp(decrypt_buf, m, SSL_SIG_LENGTH) != 0) { in int_rsa_verify()
174 && decrypt_buf[0] == 0x04 && decrypt_buf[1] == 0x10) { in int_rsa_verify()
180 memcpy(rm, decrypt_buf + 2, 16); in int_rsa_verify()
188 if (memcmp(m, decrypt_buf + 2, 16) != 0) { in int_rsa_verify()
211 m = decrypt_buf + decrypt_len - m_len; in int_rsa_verify()
[all …]
/third_party/mbedtls/tests/suites/
Dtest_suite_cipher.function833 unsigned char *decrypt_buf = NULL;
899 ASSERT_ALLOC( decrypt_buf, decrypt_buf_len - 1 );
904 decrypt_buf, decrypt_buf_len - 1, &outlen, tag->len );
907 mbedtls_free( decrypt_buf );
908 decrypt_buf = NULL;
914 ASSERT_ALLOC( decrypt_buf, decrypt_buf_len );
919 decrypt_buf, decrypt_buf_len, &outlen, tag->len );
924 TEST_ASSERT( buffer_is_all_zero( decrypt_buf, decrypt_buf_len ) );
929 ASSERT_COMPARE( decrypt_buf, outlen, clear->x, clear->len );
932 mbedtls_free( decrypt_buf );
[all …]
Dtest_suite_ssl.function3213 * of ssl_encrypt/decrypt_buf to check if the transform