/external/boringssl/src/crypto/fipsmodule/ec/ |
D | ec_test.cc | 108 static bssl::UniquePtr<EC_KEY> DecodeECPrivateKey(const uint8_t *in, in DecodeECPrivateKey() 112 bssl::UniquePtr<EC_KEY> ret(EC_KEY_parse_private_key(&cbs, NULL)); in DecodeECPrivateKey() 136 bssl::UniquePtr<EC_KEY> key = in TEST() 148 bssl::UniquePtr<BIGNUM> x(BN_new()); in TEST() 149 bssl::UniquePtr<BIGNUM> y(BN_new()); in TEST() 154 bssl::UniquePtr<char> x_hex(BN_bn2hex(x.get())); in TEST() 155 bssl::UniquePtr<char> y_hex(BN_bn2hex(y.get())); in TEST() 169 bssl::UniquePtr<EC_KEY> key = in TEST() 185 bssl::UniquePtr<EC_KEY> key = in TEST() 201 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in TEST() [all …]
|
/external/boringssl/src/crypto/ecdh_extra/ |
D | ecdh_test.cc | 38 static bssl::UniquePtr<EC_GROUP> GetCurve(FileTest *t, const char *key) { in GetCurve() 45 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp224r1)); in GetCurve() 48 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name( in GetCurve() 52 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp384r1)); in GetCurve() 55 return bssl::UniquePtr<EC_GROUP>(EC_GROUP_new_by_curve_name(NID_secp521r1)); in GetCurve() 62 static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *key) { in GetBIGNUM() 68 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM() 73 bssl::UniquePtr<EC_GROUP> group = GetCurve(t, "Curve"); in TEST() 75 bssl::UniquePtr<BIGNUM> priv_key = GetBIGNUM(t, "Private"); in TEST() 77 bssl::UniquePtr<BIGNUM> x = GetBIGNUM(t, "X"); in TEST() [all …]
|
/external/boringssl/src/crypto/x509/ |
D | x509_test.cc | 933 static bssl::UniquePtr<X509> CertFromPEM(const char *pem) { in CertFromPEM() 934 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(pem, strlen(pem))); in CertFromPEM() 935 return bssl::UniquePtr<X509>( in CertFromPEM() 941 static bssl::UniquePtr<X509_CRL> CRLFromPEM(const char *pem) { in CRLFromPEM() 942 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(pem, strlen(pem))); in CRLFromPEM() 943 return bssl::UniquePtr<X509_CRL>( in CRLFromPEM() 949 static bssl::UniquePtr<EVP_PKEY> PrivateKeyFromPEM(const char *pem) { in PrivateKeyFromPEM() 950 bssl::UniquePtr<BIO> bio( in PrivateKeyFromPEM() 952 return bssl::UniquePtr<EVP_PKEY>( in PrivateKeyFromPEM() 958 static bssl::UniquePtr<STACK_OF(X509)> CertsToStack( in CertsToStack() [all …]
|
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
D | ecdsa_test.cc | 71 static bssl::UniquePtr<BIGNUM> HexToBIGNUM(const char *hex) { in HexToBIGNUM() 74 return bssl::UniquePtr<BIGNUM>(bn); in HexToBIGNUM() 80 static bssl::UniquePtr<EC_GROUP> NewSecp160r1Group() { in NewSecp160r1Group() 88 bssl::UniquePtr<BIGNUM> p = HexToBIGNUM(kP), a = HexToBIGNUM(kA), in NewSecp160r1Group() 95 bssl::UniquePtr<EC_GROUP> group( in NewSecp160r1Group() 100 bssl::UniquePtr<EC_POINT> g(EC_POINT_new(group.get())); in NewSecp160r1Group() 124 bssl::UniquePtr<uint8_t> delete_der(der); in VerifyECDSASig() 199 bssl::UniquePtr<EC_GROUP> group; in TEST() 209 bssl::UniquePtr<EC_KEY> eckey(EC_KEY_new()); in TEST() 215 bssl::UniquePtr<EC_KEY> wrong_eckey(EC_KEY_new()); in TEST() [all …]
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs12_test.cc | 1486 bssl::UniquePtr<STACK_OF(X509)> certs(sk_X509_new_null()); in TestImpl() 1492 bssl::UniquePtr<EVP_PKEY> delete_key(key); in TestImpl() 1510 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(der.data(), der.size())); in TestCompat() 1513 bssl::UniquePtr<PKCS12> p12(d2i_PKCS12_bio(bio.get(), nullptr)); in TestCompat() 1524 bssl::UniquePtr<EVP_PKEY> delete_key(key); in TestCompat() 1525 bssl::UniquePtr<X509> delete_cert(cert); in TestCompat() 1526 bssl::UniquePtr<STACK_OF(X509)> delete_ca_certs(ca_certs); in TestCompat() 1692 static bssl::UniquePtr<X509> LoadX509(bssl::Span<const uint8_t> der) { in LoadX509() 1694 return bssl::UniquePtr<X509>(d2i_X509(nullptr, &ptr, der.size())); in LoadX509() 1697 static bssl::UniquePtr<EVP_PKEY> LoadPrivateKey(bssl::Span<const uint8_t> der) { in LoadPrivateKey() [all …]
|
D | pkcs8_test.cc | 221 bssl::UniquePtr<X509_SIG> sig(d2i_X509_SIG(NULL, &data, der_len)); in TestDecrypt() 225 bssl::UniquePtr<PKCS8_PRIV_KEY_INFO> keypair( in TestDecrypt() 249 bssl::UniquePtr<PKCS8_PRIV_KEY_INFO> key( in TestRoundTrip() 254 bssl::UniquePtr<X509_SIG> encrypted(PKCS8_encrypt( in TestRoundTrip() 258 bssl::UniquePtr<PKCS8_PRIV_KEY_INFO> key2( in TestRoundTrip() 264 bssl::UniquePtr<uint8_t> free_encoded(encoded); in TestRoundTrip() 351 bssl::UniquePtr<PKCS8_PRIV_KEY_INFO> key( in TEST() 356 bssl::UniquePtr<X509_SIG> encrypted(PKCS8_encrypt( in TEST()
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
D | bn_test.cc | 96 static int HexToBIGNUM(bssl::UniquePtr<BIGNUM> *out, const char *in) { in HexToBIGNUM() 112 bssl::UniquePtr<BIGNUM> GetBIGNUM(const char *attribute) { in GetBIGNUM() 117 bssl::UniquePtr<BIGNUM> ret = in GetInt() 133 bssl::UniquePtr<BIGNUM> GetBIGNUMImpl(const char *attribute, bool resize) { in GetBIGNUMImpl() 139 bssl::UniquePtr<BIGNUM> ret; in GetBIGNUMImpl() 168 bssl::UniquePtr<char> expected_str(BN_bn2hex(expected)); in AssertBIGNUMSEqual() 169 bssl::UniquePtr<char> actual_str(BN_bn2hex(actual)); in AssertBIGNUMSEqual() 185 bssl::UniquePtr<BIGNUM> a = t->GetBIGNUM("A"); in TestSum() 186 bssl::UniquePtr<BIGNUM> b = t->GetBIGNUM("B"); in TestSum() 187 bssl::UniquePtr<BIGNUM> sum = t->GetBIGNUM("Sum"); in TestSum() [all …]
|
/external/boringssl/src/ssl/ |
D | ssl_test.cc | 547 bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method())); in TEST() 569 bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method())); in TEST() 578 bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method())); in TEST() 591 bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method())); in TEST() 603 bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method())); in TEST() 821 bssl::UniquePtr<SSL_CTX> ssl_ctx(SSL_CTX_new(TLS_method())); in TEST() 823 bssl::UniquePtr<SSL_SESSION> session( in TEST() 829 bssl::UniquePtr<uint8_t> encoded; in TEST() 873 bssl::UniquePtr<SSL_CTX> ssl_ctx(SSL_CTX_new(TLS_method())); in TEST() 875 bssl::UniquePtr<SSL_SESSION> session( in TEST() [all …]
|
D | internal.h | 223 UniquePtr<T> MakeUnique(Args &&... args) { 224 return UniquePtr<T>(New<T>(std::forward<Args>(args)...)); 598 bool Init(UniquePtr<STACK_OF(SSL_CIPHER)> ciphers, 604 UniquePtr<STACK_OF(SSL_CIPHER)> ciphers; 631 bool ssl_create_cipher_list(UniquePtr<SSLCipherPreferenceList> *out_cipher_list, 730 UniquePtr<BUF_MEM> buffer_; 757 static UniquePtr<SSLAEADContext> CreateNullCipher(bool is_dtls); 763 static UniquePtr<SSLAEADContext> Create(enum evp_aead_direction_t direction, 773 static UniquePtr<SSLAEADContext> CreatePlaceholderForQUIC( 1058 static UniquePtr<SSLKeyShare> Create(uint16_t group_id); [all …]
|
D | ssl_key_share.cc | 48 UniquePtr<BN_CTX> bn_ctx(BN_CTX_new()); in Offer() 55 UniquePtr<EC_GROUP> group(EC_GROUP_new_by_curve_name(nid_)); in Offer() 64 UniquePtr<EC_POINT> public_key(EC_POINT_new(group.get())); in Offer() 82 UniquePtr<BN_CTX> bn_ctx(BN_CTX_new()); in Finish() 88 UniquePtr<EC_GROUP> group(EC_GROUP_new_by_curve_name(nid_)); in Finish() 93 UniquePtr<EC_POINT> peer_point(EC_POINT_new(group.get())); in Finish() 94 UniquePtr<EC_POINT> result(EC_POINT_new(group.get())); in Finish() 130 UniquePtr<EC_GROUP> group(EC_GROUP_new_by_curve_name(nid_)); in Serialize() 154 UniquePtr<BIGNUM> private_key_; 317 UniquePtr<SSLKeyShare> SSLKeyShare::Create(uint16_t group_id) { in Create() [all …]
|
D | ssl_cert.cc | 151 UniquePtr<CERT> ssl_cert_dup(CERT *cert) { in ssl_cert_dup() 152 UniquePtr<CERT> ret = MakeUnique<CERT>(cert->x509_method); in ssl_cert_dup() 235 UniquePtr<EVP_PKEY> pubkey = ssl_cert_parse_pubkey(&cert_cbs); in check_leaf_cert_and_privkey() 288 UniquePtr<STACK_OF(CRYPTO_BUFFER)> certs_sk(sk_CRYPTO_BUFFER_new_null()); in cert_set_chain_and_key() 306 bool ssl_set_cert(CERT *cert, UniquePtr<CRYPTO_BUFFER> buffer) { in ssl_set_cert() 348 UniquePtr<STACK_OF(CRYPTO_BUFFER)> *out_chain, in ssl_parse_cert_chain() 349 UniquePtr<EVP_PKEY> *out_pubkey, in ssl_parse_cert_chain() 366 UniquePtr<STACK_OF(CRYPTO_BUFFER)> chain(sk_CRYPTO_BUFFER_new_null()); in ssl_parse_cert_chain() 373 UniquePtr<EVP_PKEY> pubkey; in ssl_parse_cert_chain() 396 UniquePtr<CRYPTO_BUFFER> buf( in ssl_parse_cert_chain() [all …]
|
/external/boringssl/src/util/fipstools/cavp/ |
D | cavp_kas_test.cc | 61 bssl::UniquePtr<BIGNUM> their_x(GetBIGNUM(t, "QeCAVSx")); in TestKAS() 62 bssl::UniquePtr<BIGNUM> their_y(GetBIGNUM(t, "QeCAVSy")); in TestKAS() 63 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(nid)); in TestKAS() 64 bssl::UniquePtr<BN_CTX> ctx(BN_CTX_new()); in TestKAS() 70 bssl::UniquePtr<EC_POINT> their_point(EC_POINT_new(group)); in TestKAS() 78 bssl::UniquePtr<BIGNUM> our_k(GetBIGNUM(t, "deIUT")); in TestKAS() 110 bssl::UniquePtr<BIGNUM> x(BN_new()); in TestKAS() 111 bssl::UniquePtr<BIGNUM> y(BN_new()); in TestKAS() 117 bssl::UniquePtr<char> x_hex(BN_bn2hex(x.get())); in TestKAS() 118 bssl::UniquePtr<char> y_hex(BN_bn2hex(y.get())); in TestKAS()
|
D | cavp_ecdsa2_sigver_test.cc | 38 bssl::UniquePtr<ECDSA_SIG> sig(ECDSA_SIG_new()); in TestECDSA2SigVer() 39 bssl::UniquePtr<EC_KEY> key(EC_KEY_new_by_curve_name(nid)); in TestECDSA2SigVer() 40 bssl::UniquePtr<BIGNUM> qx = GetBIGNUM(t, "Qx"); in TestECDSA2SigVer() 41 bssl::UniquePtr<BIGNUM> qy = GetBIGNUM(t, "Qy"); in TestECDSA2SigVer() 42 bssl::UniquePtr<BIGNUM> r = GetBIGNUM(t, "R"); in TestECDSA2SigVer() 43 bssl::UniquePtr<BIGNUM> s = GetBIGNUM(t, "S"); in TestECDSA2SigVer()
|
/external/deqp/framework/delibs/decpp/ |
D | deUniquePtr.hpp | 201 class UniquePtr : public UniqueBase<T, Deleter> class 204 explicit UniquePtr (T* ptr, Deleter deleter = Deleter()); 205 UniquePtr (PtrData<T, Deleter> data); 209 UniquePtr (const UniquePtr<T>& other); // Not allowed! 210 UniquePtr operator= (const UniquePtr<T>& other); // Not allowed! 220 inline UniquePtr<T, Deleter>::UniquePtr (T* ptr, Deleter deleter) in UniquePtr() function in de::details::UniquePtr 226 inline UniquePtr<T, Deleter>::UniquePtr (PtrData<T, Deleter> data) in UniquePtr() function in de::details::UniquePtr 238 inline MovePtr<T, Deleter> UniquePtr<T, Deleter>::move (void) in move() 245 using details::UniquePtr;
|
D | deUniquePtr.cpp | 68 UniquePtr<Object> objectPtr(new Object(exists)); in createObject() 80 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest() 92 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest() 107 bool test = (UniquePtr<Object>(new Object(exists))).get() != DE_NULL && exists; in UniquePtr_selfTest() 117 UniquePtr<Object, CustomDeleter> ptr(new Object(exists), CustomDeleter(&deleterCalled)); in UniquePtr_selfTest() 142 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest() 156 UniquePtr<Object> ptr(createObject(exists)); in UniquePtr_selfTest() 211 UniquePtr<Object> ptr(new Object(exists)); in UniquePtr_selfTest() 213 UniquePtr<Object> ptr2(ptr); in UniquePtr_selfTest()
|
/external/boringssl/src/crypto/pkcs7/ |
D | pkcs7_test.cc | 473 bssl::UniquePtr<STACK_OF(X509)> certs(sk_X509_new_null()); in TestCertReparse() 475 bssl::UniquePtr<STACK_OF(X509)> certs2(sk_X509_new_null()); in TestCertReparse() 489 bssl::UniquePtr<uint8_t> free_result_data(result_data); in TestCertReparse() 505 bssl::UniquePtr<uint8_t> free_result2_data(result2_data); in TestCertReparse() 511 bssl::UniquePtr<PKCS7> pkcs7_obj(d2i_PKCS7(nullptr, &ptr, der_len)); in TestCertReparse() 529 bssl::UniquePtr<uint8_t> free_result3_data(result3_data); in TestCertReparse() 550 bssl::UniquePtr<uint8_t> free_result4_data(result4_data); in TestCertReparse() 555 bssl::UniquePtr<STACK_OF(X509_CRL)> crls(sk_X509_CRL_new_null()); in TestCRLReparse() 557 bssl::UniquePtr<STACK_OF(X509_CRL)> crls2(sk_X509_CRL_new_null()); in TestCRLReparse() 571 bssl::UniquePtr<uint8_t> free_result_data(result_data); in TestCRLReparse() [all …]
|
/external/boringssl/src/crypto/evp/ |
D | evp_extra_test.cc | 363 static bssl::UniquePtr<EVP_PKEY> LoadExampleRSAKey() { in LoadExampleRSAKey() 364 bssl::UniquePtr<RSA> rsa(RSA_private_key_from_bytes(kExampleRSAKeyDER, in LoadExampleRSAKey() 369 bssl::UniquePtr<EVP_PKEY> pkey(EVP_PKEY_new()); in LoadExampleRSAKey() 377 bssl::UniquePtr<EVP_PKEY> pkey = LoadExampleRSAKey(); in TEST() 405 bssl::UniquePtr<EVP_PKEY> pkey = LoadExampleRSAKey(); in TEST() 416 bssl::UniquePtr<EVP_PKEY> pkey = LoadExampleRSAKey(); in TEST() 418 bssl::UniquePtr<RSA> rsa(EVP_PKEY_get1_RSA(pkey.get())); in TEST() 428 bssl::UniquePtr<EVP_PKEY_CTX> ctx(EVP_PKEY_CTX_new(pkey.get(), nullptr)); in TEST() 455 bssl::UniquePtr<EVP_PKEY> pkey(d2i_AutoPrivateKey(NULL, &p, input_len)); in TestValidPrivateKey() 475 bssl::UniquePtr<EVP_PKEY> pkey( in TEST() [all …]
|
/external/boringssl/src/crypto/rsa_extra/ |
D | rsa_test.cc | 400 bssl::UniquePtr<RSA> key( in TEST_P() 468 bssl::UniquePtr<RSA> rsa( in TEST() 483 bssl::UniquePtr<RSA> rsa( in TEST() 489 bssl::UniquePtr<RSA> pub( in TEST() 496 bssl::UniquePtr<RSA> rsa(RSA_new()); in TEST() 520 bssl::UniquePtr<RSA> key(RSA_new()); in TEST() 521 bssl::UniquePtr<BIGNUM> e(BN_new()); in TEST() 538 bssl::UniquePtr<uint8_t> delete_der(der); in TEST() 552 bssl::UniquePtr<RSA> key(RSA_new()); in TEST() 573 bssl::UniquePtr<RSA> key2(RSA_new()); in TEST() [all …]
|
/external/boringssl/src/crypto/pool/ |
D | pool_test.cc | 29 bssl::UniquePtr<CRYPTO_BUFFER> buf( in TEST() 37 bssl::UniquePtr<CRYPTO_BUFFER> buf2 = bssl::UpRef(buf); in TEST() 41 bssl::UniquePtr<CRYPTO_BUFFER> buf(CRYPTO_BUFFER_new(nullptr, 0, nullptr)); in TEST() 49 bssl::UniquePtr<CRYPTO_BUFFER_POOL> pool(CRYPTO_BUFFER_POOL_new()); in TEST() 53 bssl::UniquePtr<CRYPTO_BUFFER> buf( in TEST() 57 bssl::UniquePtr<CRYPTO_BUFFER> buf2( in TEST() 66 bssl::UniquePtr<CRYPTO_BUFFER_POOL> pool(CRYPTO_BUFFER_POOL_new()); in TEST() 72 bssl::UniquePtr<CRYPTO_BUFFER> buf, buf2, buf3; in TEST() 99 bssl::UniquePtr<CRYPTO_BUFFER> buf_ref; in TEST()
|
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | resolver_registry.cc | 43 void RegisterResolverFactory(UniquePtr<ResolverFactory> factory) { in RegisterResolverFactory() 93 InlinedVector<UniquePtr<ResolverFactory>, 10> factories_; 94 UniquePtr<char> default_prefix_; 121 UniquePtr<ResolverFactory> factory) { in RegisterResolverFactory() 155 UniquePtr<char> ResolverRegistry::GetDefaultAuthority(const char* target) { in GetDefaultAuthority() 161 UniquePtr<char> authority = in GetDefaultAuthority() 168 UniquePtr<char> ResolverRegistry::AddDefaultPrefixIfNeeded(const char* target) { in AddDefaultPrefixIfNeeded() 174 return UniquePtr<char>(canonical_target == nullptr ? gpr_strdup(target) in AddDefaultPrefixIfNeeded()
|
/external/boringssl/src/tool/ |
D | server.cc | 108 static bssl::UniquePtr<EVP_PKEY> MakeKeyPairForSelfSignedCert() { in MakeKeyPairForSelfSignedCert() 109 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in MakeKeyPairForSelfSignedCert() 114 bssl::UniquePtr<EVP_PKEY> evp_pkey(EVP_PKEY_new()); in MakeKeyPairForSelfSignedCert() 122 static bssl::UniquePtr<X509> MakeSelfSignedCert(EVP_PKEY *evp_pkey, in MakeSelfSignedCert() 124 bssl::UniquePtr<X509> x509(X509_new()); in MakeSelfSignedCert() 173 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_mem())); in HandleWWW() 218 bssl::UniquePtr<SSL_CTX> ctx(SSL_CTX_new(TLS_method())); in Server() 245 bssl::UniquePtr<EVP_PKEY> evp_pkey = MakeKeyPairForSelfSignedCert(); in Server() 249 bssl::UniquePtr<X509> cert = in Server() 335 bssl::UniquePtr<SSL> ssl(SSL_new(ctx.get())); in Server() [all …]
|
D | client.cc | 148 static bssl::UniquePtr<EVP_PKEY> LoadPrivateKey(const std::string &file) { in LoadPrivateKey() 149 bssl::UniquePtr<BIO> bio(BIO_new(BIO_s_file())); in LoadPrivateKey() 153 bssl::UniquePtr<EVP_PKEY> pkey(PEM_read_bio_PrivateKey(bio.get(), nullptr, in LoadPrivateKey() 172 static bssl::UniquePtr<BIO> session_out; 173 static bssl::UniquePtr<SSL_SESSION> resume_session; 184 resume_session = bssl::UniquePtr<SSL_SESSION>(session); in NewSessionCallback() 253 bssl::UniquePtr<BIO> bio(BIO_new_socket(sock, BIO_CLOSE)); in DoConnection() 254 bssl::UniquePtr<SSL> ssl(SSL_new(ctx)); in DoConnection() 261 bssl::UniquePtr<BIO> in(BIO_new_file(args_map["-session-in"].c_str(), in DoConnection() 268 bssl::UniquePtr<SSL_SESSION> session(PEM_read_bio_SSL_SESSION(in.get(), in DoConnection() [all …]
|
/external/boringssl/src/ssl/test/ |
D | test_state.h | 40 bssl::UniquePtr<EVP_PKEY> channel_id; 42 bssl::UniquePtr<SSL_SESSION> session; 43 bssl::UniquePtr<SSL_SESSION> pending_session; 47 bssl::UniquePtr<EVP_PKEY> private_key; 53 bssl::UniquePtr<SSL_SESSION> new_session;
|
D | fuzzer.h | 297 bssl::UniquePtr<SSL> ssl = SetupTest(&cbs); in TestOneInput() 311 bssl::UniquePtr<SSL> ssl_handoff(SSL_new(ctx_.get())); in TestOneInput() 312 bssl::UniquePtr<SSL> ssl_handback(SSL_new(ctx_.get())); in TestOneInput() 380 bssl::UniquePtr<EVP_PKEY> pkey(EVP_PKEY_new()); in Init() 381 bssl::UniquePtr<RSA> privkey(RSA_private_key_from_bytes( in Init() 390 bssl::UniquePtr<X509> cert(d2i_X509(NULL, &bufp, sizeof(kCertificateDER))); in Init() 450 bssl::UniquePtr<SSL> SetupTest(CBS *cbs) { in SetupTest() 457 bssl::UniquePtr<SSL> ssl(SSL_new(ctx_.get())); in SetupTest() 478 bssl::UniquePtr<SSL_SESSION> session(SSL_SESSION_from_bytes( in SetupTest() 530 bssl::UniquePtr<BIO> MakeBIO(const uint8_t *in, size_t len) { in MakeBIO() [all …]
|
/external/boringssl/src/crypto/dh/ |
D | dh_test.cc | 113 bssl::UniquePtr<DH> a(DH_new()); in RunBasicTests() 141 bssl::UniquePtr<DH> b(DH_new()); in RunBasicTests() 288 bssl::UniquePtr<DH> dh(DH_new()); in TestBadY() 296 bssl::UniquePtr<BIGNUM> pub_key( in TestBadY() 326 bssl::UniquePtr<BIGNUM> free_hex_bn(hex_bn); in BIGNUMEqualsHex() 342 bssl::UniquePtr<DH> dh(DH_parse_parameters(&cbs)); in TestASN1() 359 bssl::UniquePtr<uint8_t> free_der(der); in TestASN1() 402 bssl::UniquePtr<uint8_t> free_der2(der); in TestASN1() 412 bssl::UniquePtr<BIGNUM> bn(BN_get_rfc3526_prime_1536(nullptr)); in TestRFC3526()
|