OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 25 matching lines...) Expand all Loading... |
36 #include "public/platform/WebCryptoAlgorithmParams.h" | 36 #include "public/platform/WebCryptoAlgorithmParams.h" |
37 #include "public/platform/WebString.h" | 37 #include "public/platform/WebString.h" |
38 #include "wtf/ArrayBuffer.h" | 38 #include "wtf/ArrayBuffer.h" |
39 #include "wtf/ArrayBufferView.h" | 39 #include "wtf/ArrayBufferView.h" |
40 #include "wtf/MathExtras.h" | 40 #include "wtf/MathExtras.h" |
41 #include "wtf/Uint8Array.h" | 41 #include "wtf/Uint8Array.h" |
42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
43 #include "wtf/text/StringBuilder.h" | 43 #include "wtf/text/StringBuilder.h" |
44 #include <algorithm> | 44 #include <algorithm> |
45 | 45 |
46 namespace WebCore { | 46 namespace blink { |
47 | 47 |
48 namespace { | 48 namespace { |
49 | 49 |
50 struct AlgorithmNameMapping { | 50 struct AlgorithmNameMapping { |
51 // Must be an upper case ASCII string. | 51 // Must be an upper case ASCII string. |
52 const char* const algorithmName; | 52 const char* const algorithmName; |
53 // Must be strlen(algorithmName). | 53 // Must be strlen(algorithmName). |
54 unsigned char algorithmNameLength; | 54 unsigned char algorithmNameLength; |
55 blink::WebCryptoAlgorithmId algorithmId; | 55 blink::WebCryptoAlgorithmId algorithmId; |
56 | 56 |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 return true; | 719 return true; |
720 } | 720 } |
721 | 721 |
722 } // namespace | 722 } // namespace |
723 | 723 |
724 bool normalizeAlgorithm(const Dictionary& raw, blink::WebCryptoOperation op, bli
nk::WebCryptoAlgorithm& algorithm, AlgorithmError* error) | 724 bool normalizeAlgorithm(const Dictionary& raw, blink::WebCryptoOperation op, bli
nk::WebCryptoAlgorithm& algorithm, AlgorithmError* error) |
725 { | 725 { |
726 return parseAlgorithm(raw, op, algorithm, ErrorContext(), error); | 726 return parseAlgorithm(raw, op, algorithm, ErrorContext(), error); |
727 } | 727 } |
728 | 728 |
729 } // namespace WebCore | 729 } // namespace blink |
OLD | NEW |