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

Side by Side Diff: public/platform/WebCryptoKeyAlgorithm.h

Issue 340353006: [webcrypto] Replace KeyAlgorithm interfaces with an Object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove const reference and make v8value a value Created 6 years, 5 months 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 BLINK_PLATFORM_EXPORT WebCryptoKeyAlgorithmParamsType paramsType() const; 79 BLINK_PLATFORM_EXPORT WebCryptoKeyAlgorithmParamsType paramsType() const;
80 80
81 // Returns the type-specific parameters for this key. If the requested 81 // Returns the type-specific parameters for this key. If the requested
82 // parameters are not applicable (for instance an HMAC key does not have 82 // parameters are not applicable (for instance an HMAC key does not have
83 // any AES parameters) then returns 0. 83 // any AES parameters) then returns 0.
84 BLINK_PLATFORM_EXPORT WebCryptoAesKeyAlgorithmParams* aesParams() const; 84 BLINK_PLATFORM_EXPORT WebCryptoAesKeyAlgorithmParams* aesParams() const;
85 BLINK_PLATFORM_EXPORT WebCryptoHmacKeyAlgorithmParams* hmacParams() const; 85 BLINK_PLATFORM_EXPORT WebCryptoHmacKeyAlgorithmParams* hmacParams() const;
86 BLINK_PLATFORM_EXPORT WebCryptoRsaHashedKeyAlgorithmParams* rsaHashedParams( ) const; 86 BLINK_PLATFORM_EXPORT WebCryptoRsaHashedKeyAlgorithmParams* rsaHashedParams( ) const;
87 87
88 // Write the algorithm parameters to a dictionary.
89 BLINK_PLATFORM_EXPORT void writeToDictionary(WebCryptoKeyAlgorithmDictionary *) const;
90
88 private: 91 private:
89 BLINK_PLATFORM_EXPORT void assign(const WebCryptoKeyAlgorithm& other); 92 BLINK_PLATFORM_EXPORT void assign(const WebCryptoKeyAlgorithm& other);
90 BLINK_PLATFORM_EXPORT void reset(); 93 BLINK_PLATFORM_EXPORT void reset();
91 94
92 WebPrivatePtr<WebCryptoKeyAlgorithmPrivate> m_private; 95 WebPrivatePtr<WebCryptoKeyAlgorithmPrivate> m_private;
93 }; 96 };
94 97
95 } // namespace blink 98 } // namespace blink
96 99
97 #endif 100 #endif
OLDNEW
« no previous file with comments | « Source/platform/exported/WebCryptoKeyAlgorithm.cpp ('k') | public/platform/WebCryptoKeyAlgorithmParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698