Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: content/renderer/webcrypto/webcrypto_impl_openssl.cc

Issue 76363006: [webcrypto] Add JWK import of RSA public key for NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adjusted #ifdef to make android (openssl) build pass Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/webcrypto/webcrypto_impl.h" 5 #include "content/renderer/webcrypto/webcrypto_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include <openssl/aes.h> 8 #include <openssl/aes.h>
9 #include <openssl/evp.h> 9 #include <openssl/evp.h>
10 #include <openssl/hmac.h> 10 #include <openssl/hmac.h>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 crypto::SecureMemEqual(result.data(), signature, signature_size); 489 crypto::SecureMemEqual(result.data(), signature, signature_size);
490 490
491 break; 491 break;
492 } 492 }
493 default: 493 default:
494 return false; 494 return false;
495 } 495 }
496 return true; 496 return true;
497 } 497 }
498 498
499 bool WebCryptoImpl::ImportRsaPublicKeyInternal(
500 const unsigned char* modulus_data,
501 unsigned modulus_size,
502 const unsigned char* exponent_data,
503 unsigned exponent_size,
504 const blink::WebCryptoAlgorithm& algorithm,
505 bool extractable,
506 blink::WebCryptoKeyUsageMask usage_mask,
507 blink::WebCryptoKey* key) {
508 // TODO(padolph): Placeholder for OpenSSL implementation.
509 // Issue http://crbug.com/267888.
510 return false;
511 }
512
499 } // namespace content 513 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/webcrypto/webcrypto_impl_nss.cc ('k') | content/renderer/webcrypto/webcrypto_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698