Searched defs:extractable (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/content/child/webcrypto/openssl/
H A Dsym_key_openssl.cc21 bool extractable,
37 extractable,
45 bool extractable,
50 extractable,
20 GenerateSecretKeyOpenSsl(const blink::WebCryptoKeyAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, unsigned keylen_bytes, blink::WebCryptoKey* key) argument
43 ImportKeyRawOpenSsl(const CryptoData& key_data, const blink::WebCryptoKeyAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
H A Daes_key_openssl.cc40 bool extractable,
51 extractable,
71 bool extractable,
85 extractable,
92 bool extractable,
97 key_data, jwk_suffix_, extractable, usage_mask, &raw_data);
102 CryptoData(raw_data), algorithm, extractable, usage_mask, key);
118 key.extractable(),
38 GenerateSecretKey( const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
69 ImportKeyRaw(const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
90 ImportKeyJwk(const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
H A Drsa_key_openssl.cc97 bool extractable,
116 extractable,
126 bool extractable,
145 extractable,
164 bool extractable,
197 extractable,
203 bool extractable,
224 extractable,
248 bool extractable,
293 // Note that extractable i
93 CreateWebCryptoPrivateKey( crypto::ScopedEVP_PKEY private_key, const blink::WebCryptoAlgorithmId rsa_algorithm_id, const blink::WebCryptoAlgorithm& hash, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
122 CreateWebCryptoPublicKey( crypto::ScopedEVP_PKEY public_key, const blink::WebCryptoAlgorithmId rsa_algorithm_id, const blink::WebCryptoAlgorithm& hash, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
163 ImportRsaPrivateKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const JwkRsaInfo& params, blink::WebCryptoKey* key) argument
202 ImportRsaPublicKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const CryptoData& n, const CryptoData& e, blink::WebCryptoKey* key) argument
246 GenerateKeyPair( const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask public_usage_mask, blink::WebCryptoKeyUsageMask private_usage_mask, blink::WebCryptoKey* public_key, blink::WebCryptoKey* private_key) const argument
329 ImportKeyPkcs8( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
376 ImportKeySpki( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
410 ImportKeyJwk( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
[all...]
/external/chromium_org/content/child/webcrypto/nss/
H A Dsym_key_nss.cc21 bool extractable,
50 extractable,
58 bool extractable,
83 extractable,
20 GenerateSecretKeyNss(const blink::WebCryptoKeyAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, unsigned keylen_bytes, CK_MECHANISM_TYPE mechanism, blink::WebCryptoKey* key) argument
56 ImportKeyRawNss(const CryptoData& key_data, const blink::WebCryptoKeyAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, CK_MECHANISM_TYPE mechanism, CK_FLAGS flags, blink::WebCryptoKey* key) argument
H A Daes_key_nss.cc48 bool extractable,
59 extractable,
79 bool extractable,
93 extractable,
102 bool extractable,
107 key_data, jwk_suffix_, extractable, usage_mask, &raw_data);
112 CryptoData(raw_data), algorithm, extractable, usage_mask, key);
128 key.extractable(),
46 GenerateSecretKey( const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
77 ImportKeyRaw(const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
100 ImportKeyJwk(const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
H A Drsa_key_nss.cc308 bool extractable,
409 extractable,
426 bool extractable,
500 extractable,
525 bool extractable,
549 // The private key must be marked as insensitive and extractable, otherwise it
601 extractable,
627 bool extractable,
681 extractable,
691 bool extractable,
307 ImportRsaPrivateKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const JwkRsaInfo& params, blink::WebCryptoKey* key) argument
425 ImportRsaPublicKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const CryptoData& modulus_data, const CryptoData& exponent_data, blink::WebCryptoKey* key) argument
523 GenerateKeyPair( const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask public_usage_mask, blink::WebCryptoKeyUsageMask private_usage_mask, blink::WebCryptoKey* public_key, blink::WebCryptoKey* private_key) const argument
624 ImportKeyPkcs8( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
688 ImportKeySpki( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
757 ImportKeyJwk( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
[all...]
/external/chromium_org/content/child/webcrypto/
H A Dstructured_clone.cc111 bool extractable,
126 extractable,
109 DeserializeKeyForClone(const blink::WebCryptoKeyAlgorithm& algorithm, blink::WebCryptoKeyType type, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const CryptoData& key_data, blink::WebCryptoKey* key) argument
H A Dalgorithm_dispatch.cc106 bool extractable,
118 return impl->GenerateSecretKey(algorithm, extractable, usage_mask, key);
122 bool extractable,
139 extractable,
150 bool extractable,
165 key_data, algorithm, extractable, usage_mask, key);
168 key_data, algorithm, extractable, usage_mask, key);
171 key_data, algorithm, extractable, usage_mask, key);
174 key_data, algorithm, extractable, usage_mask, key);
183 if (!key.extractable())
105 GenerateSecretKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
121 GenerateKeyPair(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask combined_usage_mask, blink::WebCryptoKey* public_key, blink::WebCryptoKey* private_key) argument
147 ImportKey(blink::WebCryptoKeyFormat format, const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
239 UnwrapKey(blink::WebCryptoKeyFormat format, const CryptoData& wrapped_key_data, const blink::WebCryptoKey& wrapping_key, const blink::WebCryptoAlgorithm& wrapping_algorithm, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
[all...]
H A Dalgorithm_implementation.cc70 bool extractable,
78 bool extractable,
95 bool extractable,
104 bool extractable,
113 bool extractable,
122 bool extractable,
68 GenerateSecretKey( const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
76 GenerateKeyPair( const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask public_usage_mask, blink::WebCryptoKeyUsageMask private_usage_mask, blink::WebCryptoKey* public_key, blink::WebCryptoKey* private_key) const argument
92 ImportKeyRaw( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
101 ImportKeyPkcs8( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
110 ImportKeySpki( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
119 ImportKeyJwk( const CryptoData& key_data, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) const argument
H A Djwk.cc47 // Web Crypto Key extractable <-- JWK ext + input extractable
186 // The 'algorithm', 'extractable', and 'usage_mask' input parameters
196 // extractable
198 // Web Crypto Key non-extractable. Conversely, if the JWK ext field is
226 bool extractable,
231 dict_.SetBoolean("ext", extractable);
369 // JWK "ext" (optional) --> extractable parameter
510 bool extractable,
513 JwkWriter writer(algorithm, extractable, usage_mas
225 JwkWriter(const std::string& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const std::string& kty) argument
508 WriteSecretKeyJwk(const CryptoData& raw_key_data, const std::string& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, std::vector<uint8_t>* jwk_key_data) argument
578 WriteRsaPublicKeyJwk(const CryptoData& n, const CryptoData& e, const std::string& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, std::vector<uint8_t>* jwk_key_data) argument
591 WriteRsaPrivateKeyJwk(const CryptoData& n, const CryptoData& e, const CryptoData& d, const CryptoData& p, const CryptoData& q, const CryptoData& dp, const CryptoData& dq, const CryptoData& qi, const std::string& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, std::vector<uint8_t>* jwk_key_data) argument
[all...]
H A Dwebcrypto_impl.cc212 bool extractable,
217 extractable(extractable),
224 const bool extractable; member in struct:content::__anon7555::GenerateKeyState
239 bool extractable,
246 extractable(extractable),
253 const bool extractable; member in struct:content::__anon7555::ImportKeyState
323 bool extractable,
332 extractable(extractabl
211 GenerateKeyState(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const blink::WebCryptoResult& result) argument
235 ImportKeyState(blink::WebCryptoKeyFormat format, const unsigned char* key_data, unsigned int key_data_size, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, const blink::WebCryptoResult& result) argument
317 UnwrapKeyState(blink::WebCryptoKeyFormat format, const unsigned char* wrapped_key, unsigned wrapped_key_size, const blink::WebCryptoKey& wrapping_key, const blink::WebCryptoAlgorithm& unwrap_algorithm, const blink::WebCryptoAlgorithm& unwrapped_key_algorithm, bool extractable, blink::WebCryptoKeyUsageMask usages, const blink::WebCryptoResult& result) argument
341 const bool extractable; member in struct:content::__anon7555::UnwrapKeyState
630 generateKey(const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoResult result) argument
644 importKey(blink::WebCryptoKeyFormat format, const unsigned char* key_data, unsigned int key_data_size, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoResult result) argument
715 unwrapKey( blink::WebCryptoKeyFormat format, const unsigned char* wrapped_key, unsigned wrapped_key_size, const blink::WebCryptoKey& wrapping_key, const blink::WebCryptoAlgorithm& unwrap_algorithm, const blink::WebCryptoAlgorithm& unwrapped_key_algorithm, bool extractable, blink::WebCryptoKeyUsageMask usages, blink::WebCryptoResult result) argument
745 deserializeKeyForClone( const blink::WebCryptoKeyAlgorithm& algorithm, blink::WebCryptoKeyType type, bool extractable, blink::WebCryptoKeyUsageMask usages, const unsigned char* key_data, unsigned key_data_size, blink::WebCryptoKey& key) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebCryptoKey.cpp44 WebCryptoKeyPrivate(PassOwnPtr<WebCryptoKeyHandle> handle, WebCryptoKeyType type, bool extractable, const WebCryptoKeyAlgorithm& algorithm, WebCryptoKeyUsageMask usages) argument
47 , extractable(extractable)
56 const bool extractable; member in class:blink::WebCryptoKeyPrivate
61 WebCryptoKey WebCryptoKey::create(WebCryptoKeyHandle* handle, WebCryptoKeyType type, bool extractable, const WebCryptoKeyAlgorithm& algorithm, WebCryptoKeyUsageMask usages) argument
64 key.m_private = adoptRef(new WebCryptoKeyPrivate(adoptPtr(handle), type, extractable, algorithm, usages));
85 bool WebCryptoKey::extractable() const function in class:blink::WebCryptoKey
88 return m_private->extractable;
/external/chromium_org/content/child/webcrypto/test/
H A Dhmac_unittest.cc260 bool extractable = false; local
272 extractable,
277 EXPECT_EQ(extractable, key.extractable());
299 extractable,
305 // 4. input=F, JWK=F ==> pass, result extractable is F
306 // 2. input=T, JWK=T ==> pass, result extractable is T
307 // 3. input=F, JWK=T ==> pass, result extractable is F
322 EXPECT_FALSE(key.extractable());
326 EXPECT_TRUE(key.extractable());
412 bool extractable = false; local
[all...]
H A Drsa_ssa_unittest.cc53 EXPECT_TRUE(key.extractable());
102 // Failing case: Try to export a non-extractable key
113 EXPECT_FALSE(key.extractable());
142 EXPECT_TRUE(key.extractable());
541 bool extractable = true; local
548 algorithm, extractable, usage_mask, &public_key, &private_key));
561 EXPECT_TRUE(public_key.extractable());
562 EXPECT_EQ(extractable, private_key.extractable());
614 algorithm, extractable, usage_mas
733 bool extractable = true; local
[all...]
H A Dtest_helpers.cc329 bool extractable = true; local
334 extractable,
342 EXPECT_EQ(extractable, key.extractable());
350 bool extractable,
366 EXPECT_TRUE(public_key->extractable());
373 extractable,
380 EXPECT_EQ(extractable, private_key->extractable());
386 bool extractable,
347 ImportRsaKeyPair(const std::vector<uint8_t>& spki_der, const std::vector<uint8_t>& pkcs8_der, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask public_key_usage_mask, blink::WebCryptoKeyUsageMask private_key_usage_mask, blink::WebCryptoKey* public_key, blink::WebCryptoKey* private_key) argument
384 ImportKeyJwkFromDict(const base::DictionaryValue& dict, const blink::WebCryptoAlgorithm& algorithm, bool extractable, blink::WebCryptoKeyUsageMask usage_mask, blink::WebCryptoKey* key) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/crypto/
H A DCryptoKey.cpp144 bool CryptoKey::extractable() const function in class:blink::CryptoKey
146 return m_key.extractable();
H A DSubtleCrypto.cpp221 ScriptPromise SubtleCrypto::generateKey(ScriptState* scriptState, const Dictionary& rawAlgorithm, bool extractable, const Vector<String>& rawKeyUsages) argument
237 Platform::current()->crypto()->generateKey(algorithm, extractable, keyUsages, result->result());
241 ScriptPromise SubtleCrypto::importKey(ScriptState* scriptState, const String& rawFormat, const ArrayPiece& keyData, const Dictionary& rawAlgorithm, bool extractable, const Vector<String>& rawKeyUsages) argument
269 Platform::current()->crypto()->importKey(format, keyData.bytes(), keyData.byteLength(), algorithm, extractable, keyUsages, result->result());
273 ScriptPromise SubtleCrypto::importKey(ScriptState* scriptState, const String& rawFormat, const Dictionary& keyData, const Dictionary& rawAlgorithm, bool extractable, const Vector<String>& rawKeyUsages) argument
302 Platform::current()->crypto()->importKey(format, reinterpret_cast<const unsigned char*>(jsonUtf8.data()), jsonUtf8.length(), algorithm, extractable, keyUsages, result->result());
321 if (!key->extractable()) {
322 result->completeWithError(WebCryptoErrorTypeInvalidAccess, "key is not extractable");
352 if (!key->extractable()) {
353 result->completeWithError(WebCryptoErrorTypeInvalidAccess, "key is not extractable");
364 unwrapKey(ScriptState* scriptState, const String& rawFormat, const ArrayPiece& wrappedKey, CryptoKey* unwrappingKey, const Dictionary& rawUnwrapAlgorithm, const Dictionary& rawUnwrappedKeyAlgorithm, bool extractable, const Vector<String>& rawKeyUsages) argument
[all...]
/external/chromium_org/net/third_party/mozilla_security_manager/
H A DnsPKCS12Blob.cpp210 // non-extractable if needed.
234 // non-extractable.
241 // private keys as non-extractable.
246 // Mark the private key as non-extractable.
302 // a token. On success, store the attribute in |extractable| and return
305 isExtractable(SECKEYPrivateKey *privKey, PRBool *extractable) argument
315 *extractable = !!(*(CK_BBOOL*)value.data);
443 LOG(ERROR) << "Private key is not extractable";
/external/chromium_org/third_party/WebKit/public/platform/
H A DWebCrypto.h204 // * The key is extractable when calling into exportKey/wrapKey.
213 virtual void generateKey(const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageMask, WebCryptoResult result) { result.completeWithError(WebCryptoErrorTypeNotSupported, ""); } argument
214 virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, unsigned keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageMask, WebCryptoResult result) { result.completeWithError(WebCryptoErrorTypeNotSupported, ""); } argument
217 virtual void unwrapKey(WebCryptoKeyFormat, const unsigned char* wrappedKey, unsigned wrappedKeySize, const WebCryptoKey&, const WebCryptoAlgorithm& unwrapAlgorithm, const WebCryptoAlgorithm& unwrappedKeyAlgorithm, bool extractable, WebCryptoKeyUsageMask, WebCryptoResult result) { result.completeWithError(WebCryptoErrorTypeNotSupported, ""); } argument
270 virtual bool deserializeKeyForClone(const WebCryptoKeyAlgorithm&, WebCryptoKeyType, bool extractable, WebCryptoKeyUsageMask, const unsigned char* keyData, unsigned keyDataSize, WebCryptoKey&) { return false; } argument
/external/chromium_org/third_party/WebKit/Source/bindings/core/v8/
H A DSerializedScriptValue.cpp526 doWriteKeyUsages(key.usages(), key.extractable());
786 void doWriteKeyUsages(const blink::WebCryptoKeyUsageMask usages, bool extractable) argument
793 if (extractable)
2266 bool extractable; local
2267 if (!doReadKeyUsages(usages, extractable))
2282 algorithm, type, extractable, usages, keyData, keyDataLength, key)) {
2510 bool doReadKeyUsages(blink::WebCryptoKeyUsageMask& usages, bool& extractable) argument
2526 extractable = rawUsages & ExtractableUsage;

Completed in 731 milliseconds