Home
last modified time | relevance | path

Searched refs:der (Results 1 – 25 of 409) sorted by relevance

12345678910>>...17

/external/boringssl/src/crypto/bytestring/
Dasn1_compat.c31 uint8_t *der; in CBB_finish_i2d() local
33 if (!CBB_finish(cbb, &der, &der_len)) { in CBB_finish_i2d()
38 OPENSSL_free(der); in CBB_finish_i2d()
43 *outp = der; in CBB_finish_i2d()
44 der = NULL; in CBB_finish_i2d()
46 OPENSSL_memcpy(*outp, der, der_len); in CBB_finish_i2d()
50 OPENSSL_free(der); in CBB_finish_i2d()
/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/
Dasn1_compat.c31 uint8_t *der; in CBB_finish_i2d() local
33 if (!CBB_finish(cbb, &der, &der_len)) { in CBB_finish_i2d()
38 OPENSSL_free(der); in CBB_finish_i2d()
43 *outp = der; in CBB_finish_i2d()
44 der = NULL; in CBB_finish_i2d()
46 OPENSSL_memcpy(*outp, der, der_len); in CBB_finish_i2d()
50 OPENSSL_free(der); in CBB_finish_i2d()
/external/rust/crates/ring/src/
Dpkcs8.rs19 use crate::{ec, error, io::der};
94 der::nested( in unwrap_key_()
96 der::Tag::Sequence, in unwrap_key_()
108 let actual_version = der::small_nonnegative_integer(input) in unwrap_key__()
120 let actual_alg_id = der::expect_tag_and_get_value(input, der::Tag::Sequence) in unwrap_key__()
135 let private_key = der::expect_tag_and_get_value(input, der::Tag::OctetString) in unwrap_key__()
139 if input.peek(der::Tag::ContextSpecificConstructed0 as u8) { in unwrap_key__()
140 let _ = der::expect_tag_and_get_value(input, der::Tag::ContextSpecificConstructed0) in unwrap_key__()
148 let public_key = der::nested( in unwrap_key__()
150 der::Tag::ContextSpecificConstructed1, in unwrap_key__()
[all …]
Drsa.rs24 io::{self, der},
53 der::nested(input, der::Tag::Sequence, error::Unspecified, |input| { in parse_public_key()
54 let n = der::positive_integer(input)?; in parse_public_key()
55 let e = der::positive_integer(input)?; in parse_public_key()
/external/rust/crates/ring/src/ec/
Dsuite_b.rs18 use crate::{arithmetic::montgomery::*, cpu, ec, error, io::der, limb::LimbMask, pkcs8};
166 der::nested( in key_pair_from_pkcs8()
168 der::Tag::Sequence, in key_pair_from_pkcs8()
180 let version = der::small_nonnegative_integer(input) in key_pair_from_pkcs8_()
186 let private_key = der::expect_tag_and_get_value(input, der::Tag::OctetString) in key_pair_from_pkcs8_()
190 if input.peek(u8::from(der::Tag::ContextSpecificConstructed0)) { in key_pair_from_pkcs8_()
192 der::expect_tag_and_get_value(input, der::Tag::ContextSpecificConstructed0) in key_pair_from_pkcs8_()
201 let public_key = der::nested( in key_pair_from_pkcs8_()
203 der::Tag::ContextSpecificConstructed1, in key_pair_from_pkcs8_()
205 der::bit_string_with_no_unused_bits, in key_pair_from_pkcs8_()
/external/libchrome/crypto/
Drsa_private_key.cc85 uint8_t *der; in ExportPrivateKey() local
90 !CBB_finish(cbb.get(), &der, &der_len)) { in ExportPrivateKey()
93 output->assign(der, der + der_len); in ExportPrivateKey()
94 OPENSSL_free(der); in ExportPrivateKey()
100 uint8_t *der; in ExportPublicKey() local
105 !CBB_finish(cbb.get(), &der, &der_len)) { in ExportPublicKey()
108 output->assign(der, der + der_len); in ExportPublicKey()
109 OPENSSL_free(der); in ExportPublicKey()
/external/openscreen/util/crypto/
Drsa_private_key.cc95 uint8_t* der; in ExportPrivateKey() local
100 !CBB_finish(cbb.get(), &der, &der_len)) { in ExportPrivateKey()
104 std::vector<uint8_t> output(der, der + der_len); in ExportPrivateKey()
106 OPENSSL_free(der); in ExportPrivateKey()
112 uint8_t* der; in ExportPublicKey() local
117 !CBB_finish(cbb.get(), &der, &der_len)) { in ExportPublicKey()
121 std::vector<uint8_t> output(der, der + der_len); in ExportPublicKey()
123 OPENSSL_free(der); in ExportPublicKey()
/external/curl/tests/certs/
DMakefile.am37 EdelCurlRoot-ca.der \
42 Server-localhost-sv.der \
46 Server-localhost-sv.pub.der \
51 Server-localhost.nn-sv.der \
55 Server-localhost.nn-sv.pub.der \
60 Server-localhost0h-sv.der \
64 Server-localhost0h-sv.pub.der \
69 Server-localhost-firstSAN-sv.der \
73 Server-localhost-firstSAN-sv.pub.der \
78 Server-localhost-lastSAN-sv.der \
[all …]
/external/libcxx/test/libcxx/utilities/function.objects/func.require/
Dbullet_4_5_6.pass.cpp68 Derived der; in doTest() local
69 Derived* der_ptr = &der; in doTest()
73 std::reference_wrapper<Derived> drref(der); in doTest()
80 runTestDispatch<E>(M, der, &der.object); in doTest()
95 runTestDispatch<E>(M, der, &der.object); in doTest()
110 runTestDispatch<E>(M, der, &der.object); in doTest()
125 runTestDispatch<E>(M, der, &der.object); in doTest()
/external/llvm-project/libcxx/test/libcxx/utilities/function.objects/func.require/
Dbullet_4_5_6.pass.cpp71 Derived der; in doTest() local
72 Derived* der_ptr = &der; in doTest()
76 std::reference_wrapper<Derived> drref(der); in doTest()
83 runTestDispatch<E>(M, der, &der.object); in doTest()
98 runTestDispatch<E>(M, der, &der.object); in doTest()
113 runTestDispatch<E>(M, der, &der.object); in doTest()
128 runTestDispatch<E>(M, der, &der.object); in doTest()
/external/boringssl/src/crypto/pkcs8/
Dpkcs12_test.cc1482 static void TestImpl(const char *name, bssl::Span<const uint8_t> der, in TestImpl() argument
1490 CBS pkcs12 = der; in TestImpl()
1509 static void TestCompat(bssl::Span<const uint8_t> der) { in TestCompat() argument
1510 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(der.data(), der.size())); in TestCompat()
1692 static bssl::UniquePtr<X509> LoadX509(bssl::Span<const uint8_t> der) { in LoadX509() argument
1693 const uint8_t *ptr = der.data(); 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() argument
1698 CBS cbs = der; in LoadPrivateKey()
1722 for (auto der : chain_der) { in TestRoundTrip() local
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs8/
Dpkcs12_test.cc1482 static void TestImpl(const char *name, bssl::Span<const uint8_t> der, in TestImpl() argument
1490 CBS pkcs12 = der; in TestImpl()
1509 static void TestCompat(bssl::Span<const uint8_t> der) { in TestCompat() argument
1510 bssl::UniquePtr<BIO> bio(BIO_new_mem_buf(der.data(), der.size())); in TestCompat()
1692 static bssl::UniquePtr<X509> LoadX509(bssl::Span<const uint8_t> der) { in LoadX509() argument
1693 const uint8_t *ptr = der.data(); 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() argument
1698 CBS cbs = der; in LoadPrivateKey()
1722 for (auto der : chain_der) { in TestRoundTrip() local
[all …]
/external/python/rsa/rsa/
Dkey.py278 from pyasn1.codec.der import decoder
291 from pyasn1.codec.der import encoder
313 der = rsa.pem.load_pem(keyfile, 'RSA PUBLIC KEY')
314 return cls._load_pkcs1_der(der)
323 der = self._save_pkcs1_der()
324 return rsa.pem.save_pem(der, 'RSA PUBLIC KEY')
342 der = rsa.pem.load_pem(keyfile, 'PUBLIC KEY')
343 return cls.load_pkcs1_openssl_der(der)
355 from pyasn1.codec.der import decoder
489 from pyasn1.codec.der import decoder
[all …]
/external/wpa_supplicant_8/hostapd/
Dsae_pk_gen.c19 char *der = NULL; in main() local
59 der = os_readfile(argv[1], &der_len); in main()
60 if (!der) { in main()
66 key = crypto_ec_key_parse_priv((u8 *) der, der_len); in main()
134 b64 = base64_encode(der, der_len, NULL); in main()
186 os_free(der); in main()
/external/rust/crates/ring/tests/
Drsa_tests.rs36 io::der,
206 der::nested(input, der::Tag::Sequence, error::Unspecified, |input| { in test_signature_rsa_pkcs1_verify()
208 der::positive_integer(input)?.big_endian_without_leading_zero(); in test_signature_rsa_pkcs1_verify()
209 let _e = der::positive_integer(input)?; in test_signature_rsa_pkcs1_verify()
258 .read_all(error::Unspecified, |input| der::nested( in test_signature_rsa_pss_verify()
260 der::Tag::Sequence, in test_signature_rsa_pss_verify()
263 let _ = der::positive_integer(input)?; in test_signature_rsa_pss_verify()
264 let _ = der::positive_integer(input)?; in test_signature_rsa_pss_verify()
/external/rust/crates/quiche/deps/boringssl/src/fuzz/
Dcert.cc26 uint8_t *der = NULL; in LLVMFuzzerTestOneInput() local
27 i2d_X509(x509, &der); in LLVMFuzzerTestOneInput()
28 OPENSSL_free(der); in LLVMFuzzerTestOneInput()
Dpkcs8.cc28 uint8_t *der; in LLVMFuzzerTestOneInput() local
33 CBB_finish(&cbb, &der, &der_len)) { in LLVMFuzzerTestOneInput()
34 OPENSSL_free(der); in LLVMFuzzerTestOneInput()
Dspki.cc29 uint8_t *der; in LLVMFuzzerTestOneInput() local
34 CBB_finish(&cbb, &der, &der_len)) { in LLVMFuzzerTestOneInput()
35 OPENSSL_free(der); in LLVMFuzzerTestOneInput()
/external/boringssl/src/crypto/rsa_extra/
Drsa_asn1.c306 uint8_t *der; in RSAPublicKey_dup() local
308 if (!RSA_public_key_to_bytes(&der, &der_len, rsa)) { in RSAPublicKey_dup()
311 RSA *ret = RSA_public_key_from_bytes(der, der_len); in RSAPublicKey_dup()
312 OPENSSL_free(der); in RSAPublicKey_dup()
317 uint8_t *der; in RSAPrivateKey_dup() local
319 if (!RSA_private_key_to_bytes(&der, &der_len, rsa)) { in RSAPrivateKey_dup()
322 RSA *ret = RSA_private_key_from_bytes(der, der_len); in RSAPrivateKey_dup()
323 OPENSSL_free(der); in RSAPrivateKey_dup()
Drsa_test.cc386 const uint8_t *der; member
401 RSA_private_key_from_bytes(param.der, param.der_len)); in TEST_P()
537 uint8_t *der; in TEST() local
539 ASSERT_TRUE(RSA_private_key_to_bytes(&der, &der_len, key.get())); in TEST()
540 bssl::UniquePtr<uint8_t> delete_der(der); in TEST()
541 key.reset(RSA_private_key_from_bytes(der, der_len)); in TEST()
597 uint8_t *der; in TEST() local
599 ASSERT_TRUE(RSA_private_key_to_bytes(&der, &der_len, rsa.get())); in TEST()
600 bssl::UniquePtr<uint8_t> delete_der(der); in TEST()
601 EXPECT_EQ(Bytes(kKey1, sizeof(kKey1) - 1), Bytes(der, der_len)); in TEST()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/rsa_extra/
Drsa_asn1.c306 uint8_t *der; in RSAPublicKey_dup() local
308 if (!RSA_public_key_to_bytes(&der, &der_len, rsa)) { in RSAPublicKey_dup()
311 RSA *ret = RSA_public_key_from_bytes(der, der_len); in RSAPublicKey_dup()
312 OPENSSL_free(der); in RSAPublicKey_dup()
317 uint8_t *der; in RSAPrivateKey_dup() local
319 if (!RSA_private_key_to_bytes(&der, &der_len, rsa)) { in RSAPrivateKey_dup()
322 RSA *ret = RSA_private_key_from_bytes(der, der_len); in RSAPrivateKey_dup()
323 OPENSSL_free(der); in RSAPrivateKey_dup()
Drsa_test.cc386 const uint8_t *der; member
401 RSA_private_key_from_bytes(param.der, param.der_len)); in TEST_P()
535 uint8_t *der; in TEST() local
537 ASSERT_TRUE(RSA_private_key_to_bytes(&der, &der_len, key.get())); in TEST()
538 bssl::UniquePtr<uint8_t> delete_der(der); in TEST()
539 key.reset(RSA_private_key_from_bytes(der, der_len)); in TEST()
595 uint8_t *der; in TEST() local
597 ASSERT_TRUE(RSA_private_key_to_bytes(&der, &der_len, rsa.get())); in TEST()
598 bssl::UniquePtr<uint8_t> delete_der(der); in TEST()
599 EXPECT_EQ(Bytes(kKey1, sizeof(kKey1) - 1), Bytes(der, der_len)); in TEST()
[all …]
/external/wpa_supplicant_8/hs20/server/ca/
Dclean.sh11 rm -f ca.pem logo.asn1 logo.der server.der ocsp-server-cache.der
/external/python/rsa/tests/
Dtest_load_save_keys.py121 der = key.save_pkcs1('DER')
123 self.assertIsInstance(der, bytes)
124 self.assertEqual(PRIVATE_DER, der)
138 der = key.save_pkcs1('DER')
140 self.assertIsInstance(der, bytes)
141 self.assertEqual(PUBLIC_DER, der)
/external/rust/crates/quiche/deps/boringssl/src/crypto/dh/
Ddh_test.cc352 uint8_t *der; in TestASN1() local
356 !CBB_finish(cbb.get(), &der, &der_len)) { in TestASN1()
359 bssl::UniquePtr<uint8_t> free_der(der); in TestASN1()
361 OPENSSL_memcmp(der, kParams, der_len) != 0) { in TestASN1()
399 !CBB_finish(cbb.get(), &der, &der_len)) { in TestASN1()
402 bssl::UniquePtr<uint8_t> free_der2(der); in TestASN1()
404 OPENSSL_memcmp(der, kParamsDSA, der_len) != 0) { in TestASN1()

12345678910>>...17