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

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: fixes for rsleevi Created 7 years, 1 month 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 crypto::SecureMemEqual(result.data(), signature, signature_size); 478 crypto::SecureMemEqual(result.data(), signature, signature_size);
479 479
480 break; 480 break;
481 } 481 }
482 default: 482 default:
483 return false; 483 return false;
484 } 484 }
485 return true; 485 return true;
486 } 486 }
487 487
488 bool WebCryptoImpl::ImportRsaPublicKeyInternal(
489 const unsigned char* modulus_data,
490 unsigned modulus_size,
491 const unsigned char* exponent_data,
492 unsigned exponent_size,
493 const blink::WebCryptoAlgorithm& algorithm,
494 bool extractable,
495 blink::WebCryptoKeyUsageMask usage_mask,
496 blink::WebCryptoKey* key) {
497 // TODO(padolph): Placeholder for OpenSSL implementation.
498 // Issue http://crbug.com/267888.
499 return false;
500 }
501
488 } // namespace content 502 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698