/external/rust/crates/ring/src/ec/curve25519/ed25519/ |
D | signing.rs | 21 pkcs8, rand, 52 ) -> Result<pkcs8::Document, error::Unspecified> { in generate_pkcs8() 55 Ok(pkcs8::wrap_key( in generate_pkcs8() 76 pub fn from_pkcs8(pkcs8: &[u8]) -> Result<Self, error::KeyRejected> { in from_pkcs8() 78 unwrap_pkcs8(pkcs8::Version::V2Only, untrusted::Input::from(pkcs8))?; in from_pkcs8() 99 pub fn from_pkcs8_maybe_unchecked(pkcs8: &[u8]) -> Result<Self, error::KeyRejected> { in from_pkcs8_maybe_unchecked() 101 unwrap_pkcs8(pkcs8::Version::V1OrV2, untrusted::Input::from(pkcs8))?; in from_pkcs8_maybe_unchecked() 241 version: pkcs8::Version, in unwrap_pkcs8() 244 let (private_key, public_key) = pkcs8::unwrap_key(&PKCS8_TEMPLATE, version, input)?; in unwrap_pkcs8() 265 static PKCS8_TEMPLATE: pkcs8::Template = pkcs8::Template {
|
/external/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 117 CBB pkcs8, algorithm, oid, null, private_key; in rsa_priv_encode() local 118 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in rsa_priv_encode() 119 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in rsa_priv_encode() 120 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in rsa_priv_encode() 124 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in rsa_priv_encode()
|
D | p_ed25519_asn1.c | 178 CBB pkcs8, algorithm, oid, private_key, inner; in ed25519_priv_encode() local 179 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in ed25519_priv_encode() 180 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in ed25519_priv_encode() 181 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in ed25519_priv_encode() 184 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in ed25519_priv_encode()
|
D | p_ec_asn1.c | 174 CBB pkcs8, algorithm, oid, private_key; in eckey_priv_encode() local 175 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in eckey_priv_encode() 176 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in eckey_priv_encode() 177 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in eckey_priv_encode() 181 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in eckey_priv_encode()
|
D | p_x25519_asn1.c | 175 CBB pkcs8, algorithm, oid, private_key, inner; in x25519_priv_encode() local 176 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in x25519_priv_encode() 177 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in x25519_priv_encode() 178 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_priv_encode() 181 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in x25519_priv_encode()
|
D | p_dsa_asn1.c | 181 CBB pkcs8, algorithm, oid, private_key; in dsa_priv_encode() local 182 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in dsa_priv_encode() 183 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in dsa_priv_encode() 184 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in dsa_priv_encode() 188 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in dsa_priv_encode()
|
D | evp_asn1.c | 156 CBS pkcs8, algorithm, key; in EVP_parse_private_key() local 159 if (!CBS_get_asn1(cbs, &pkcs8, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 160 !CBS_get_asn1_uint64(&pkcs8, &version) || in EVP_parse_private_key() 162 !CBS_get_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 163 !CBS_get_asn1(&pkcs8, &key, CBS_ASN1_OCTETSTRING)) { in EVP_parse_private_key()
|
D | evp_test.cc | 707 std::vector<uint8_t> pkcs8; in TEST() local 708 ASSERT_TRUE(t->GetInstructionBytes(&pkcs8, "privateKeyPkcs8")); in TEST() 710 CBS_init(&cbs, pkcs8.data(), pkcs8.size()); in TEST() 770 std::vector<uint8_t> pkcs8; in RunWycheproofDecryptTest() local 771 ASSERT_TRUE(t->GetInstructionBytes(&pkcs8, "privateKeyPkcs8")); in RunWycheproofDecryptTest() 773 CBS_init(&cbs, pkcs8.data(), pkcs8.size()); in RunWycheproofDecryptTest()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/ |
D | p_rsa_asn1.c | 117 CBB pkcs8, algorithm, oid, null, private_key; in rsa_priv_encode() local 118 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in rsa_priv_encode() 119 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in rsa_priv_encode() 120 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in rsa_priv_encode() 124 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in rsa_priv_encode()
|
D | p_ed25519_asn1.c | 178 CBB pkcs8, algorithm, oid, private_key, inner; in ed25519_priv_encode() local 179 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in ed25519_priv_encode() 180 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in ed25519_priv_encode() 181 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in ed25519_priv_encode() 184 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in ed25519_priv_encode()
|
D | p_x25519_asn1.c | 175 CBB pkcs8, algorithm, oid, private_key, inner; in x25519_priv_encode() local 176 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in x25519_priv_encode() 177 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in x25519_priv_encode() 178 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in x25519_priv_encode() 181 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in x25519_priv_encode()
|
D | p_ec_asn1.c | 174 CBB pkcs8, algorithm, oid, private_key; in eckey_priv_encode() local 175 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in eckey_priv_encode() 176 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in eckey_priv_encode() 177 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in eckey_priv_encode() 181 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in eckey_priv_encode()
|
D | p_dsa_asn1.c | 177 CBB pkcs8, algorithm, oid, private_key; in dsa_priv_encode() local 178 if (!CBB_add_asn1(out, &pkcs8, CBS_ASN1_SEQUENCE) || in dsa_priv_encode() 179 !CBB_add_asn1_uint64(&pkcs8, 0 /* version */) || in dsa_priv_encode() 180 !CBB_add_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in dsa_priv_encode() 184 !CBB_add_asn1(&pkcs8, &private_key, CBS_ASN1_OCTETSTRING) || in dsa_priv_encode()
|
D | evp_asn1.c | 155 CBS pkcs8, algorithm, key; in EVP_parse_private_key() local 158 if (!CBS_get_asn1(cbs, &pkcs8, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 159 !CBS_get_asn1_uint64(&pkcs8, &version) || in EVP_parse_private_key() 161 !CBS_get_asn1(&pkcs8, &algorithm, CBS_ASN1_SEQUENCE) || in EVP_parse_private_key() 162 !CBS_get_asn1(&pkcs8, &key, CBS_ASN1_OCTETSTRING)) { in EVP_parse_private_key()
|
D | evp_test.cc | 707 std::vector<uint8_t> pkcs8; in TEST() local 708 ASSERT_TRUE(t->GetInstructionBytes(&pkcs8, "privateKeyPkcs8")); in TEST() 710 CBS_init(&cbs, pkcs8.data(), pkcs8.size()); in TEST() 770 std::vector<uint8_t> pkcs8; in RunWycheproofDecryptTest() local 771 ASSERT_TRUE(t->GetInstructionBytes(&pkcs8, "privateKeyPkcs8")); in RunWycheproofDecryptTest() 773 CBS_init(&cbs, pkcs8.data(), pkcs8.size()); in RunWycheproofDecryptTest()
|
/external/rust/crates/ring/src/ec/ |
D | suite_b.rs | 18 use crate::{arithmetic::montgomery::*, cpu, ec, error, io::der, limb::LimbMask, pkcs8}; 158 template: &pkcs8::Template, in key_pair_from_pkcs8() 162 let (ec_private_key, _) = pkcs8::unwrap_key(template, pkcs8::Version::V1Only, input)?; in key_pair_from_pkcs8() 177 template: &pkcs8::Template, in key_pair_from_pkcs8_()
|
/external/rust/crates/ring/src/ec/suite_b/ecdsa/ |
D | signing.rs | 27 limb, pkcs8, rand, sealed, signature, 35 pkcs8_template: &'static pkcs8::Template, 85 ) -> Result<pkcs8::Document, error::Unspecified> { in generate_pkcs8() 88 Ok(pkcs8::wrap_key( in generate_pkcs8() 107 pkcs8: &[u8], in from_pkcs8() 112 untrusted::Input::from(pkcs8), in from_pkcs8() 502 static EC_PUBLIC_KEY_P256_PKCS8_V1_TEMPLATE: pkcs8::Template = pkcs8::Template { 509 static EC_PUBLIC_KEY_P384_PKCS8_V1_TEMPLATE: pkcs8::Template = pkcs8::Template {
|
/external/rust/crates/grpcio-sys/grpc/src/core/tsi/test_creds/ |
D | README | 30 $ openssl pkcs8 -topk8 -in client.key.rsa -out client.key -nocrypt 43 $ openssl pkcs8 -topk8 -in client1.key.rsa -out client1.key -nocrypt 56 $ openssl pkcs8 -topk8 -in client2.key.rsa -out client2.key -nocrypt 69 $ openssl pkcs8 -topk8 -in server0.key.rsa -out server0.key -nocrypt 82 $ openssl pkcs8 -topk8 -in server1.key.rsa -out server1.key -nocrypt 96 $ openssl pkcs8 -topk8 -in multi-domain.key.rsa -out multi-domain.key -nocrypt
|
/external/python/cryptography/docs/development/ |
D | test-vectors.rst | 43 * GnuTLS: `enc-rsa-pkcs8.pem`_, `enc2-rsa-pkcs8.pem`_, 44 `unenc-rsa-pkcs8.pem`_, `pkcs12_s2k_pem.c`_. The encoding error in 45 `unenc-rsa-pkcs8.pem`_ was fixed, and the contents of `enc-rsa-pkcs8.pem`_ 46 was re-encrypted to include it. The contents of `enc2-rsa-pkcs8.pem`_ 89 * ``asymmetric/PKCS8/unenc-dsa-pkcs8.pem`` and 90 ``asymmetric/DER_Serialization/unenc-dsa-pkcs8.der`` - Contains a DSA 1024 92 * ``asymmetric/PKCS8/unenc-dsa-pkcs8.pub.pem`` and 93 ``asymmetric/DER_Serialization/unenc-dsa-pkcs8.pub.der`` - Contains a DSA 94 2048 bit public key generated using OpenSSL from ``unenc-dsa-pkcs8.pem``. 97 * DER conversions of `enc-rsa-pkcs8.pem`_, `enc2-rsa-pkcs8.pem`_, and [all …]
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | x25519.py | 147 pkcs8 = self._backend._read_mem_bio(bio) 148 self._backend.openssl_assert(len(pkcs8) == 48) 149 return pkcs8[-_X25519_KEY_SIZE:]
|
/external/grpc-grpc/src/core/tsi/test_creds/ |
D | README | 29 $ openssl pkcs8 -topk8 -in client.key.rsa -out client.key -nocrypt 42 $ openssl pkcs8 -topk8 -in server0.key.rsa -out server0.key -nocrypt 55 $ openssl pkcs8 -topk8 -in server1.key.rsa -out server1.key -nocrypt
|
/external/grpc-grpc-java/testing/src/main/resources/certs/ |
D | README | 29 $ openssl pkcs8 -topk8 -in client.key.rsa -out client.key -nocrypt 43 $ openssl pkcs8 -topk8 -in server0.key.rsa -out server0.key -nocrypt 57 $ openssl pkcs8 -topk8 -in server1.key.rsa -out server1.key -nocrypt
|
/external/rust/crates/ring/src/rsa/ |
D | signing.rs | 25 pkcs8, rand, signature, 139 pub fn from_pkcs8(pkcs8: &[u8]) -> Result<Self, KeyRejected> { in from_pkcs8() 141 let (der, _) = pkcs8::unwrap_key_( in from_pkcs8() 143 pkcs8::Version::V1Only, in from_pkcs8() 144 untrusted::Input::from(pkcs8), in from_pkcs8()
|
/external/openssh/regress/ |
D | agent-pkcs11.sh | 66 openssl pkcs8 -nocrypt -in $RSA |\ 74 openssl pkcs8 -nocrypt -in $EC |\
|
/external/rust/crates/ring/tests/ |
D | ecdsa_tests.rs | 116 let pkcs8 = signature::EcdsaKeyPair::generate_pkcs8(alg, &rng).unwrap(); in ecdsa_generate_pkcs8_test() localVariable 118 for b in pkcs8.as_ref() { in ecdsa_generate_pkcs8_test() 125 let _ = signature::EcdsaKeyPair::from_pkcs8(*alg, pkcs8.as_ref()).unwrap(); in ecdsa_generate_pkcs8_test()
|