|
WebCrypto: Add framework for AlgorithmIdentifier normalization.
In this changelist, the "normalizeAlgorithm()" function corresponds with https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#algorithm-normalizing-rules
A threadsafe and copiable representation of the normalized algorithm has been added to the WebKit API as WebCryptoAlgorithm. This is how WebCore will inform the embedder of the cryptographic operation to perform and its parameters.
WebCryptoAlgorithm is also used by WebCore to pass around normalized "algorithm identifiers".
There is a lot of boiler plate to achieve both parsing of algorithm parameters from a dictionary, as well as reflecting back the normalized results to javascript.
The parsing is done manually as it needs to extract from a Dictionary. The reflection back to javascript is done using IDL and some glue to WebCryptoAlgorithm.
This changelist only adds a small number of algorithm parameters. (Enough to be minimally testable). The rest will follow in later changes.
BUG= 245025
R=abarth@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153450
Total comments: 90
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+830 lines, -204 lines) |
Patch |
|
A |
LayoutTests/crypto/normalize-algorithm.html
|
View
|
|
1 chunk |
+116 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/normalize-algorithm-expected.txt
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/bindings.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/Dictionary.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
Source/bindings/v8/Dictionary.cpp
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/bindings/v8/custom/V8AlgorithmCustom.cpp
|
View
|
1
|
2 chunks |
+17 lines, -12 lines |
0 comments
|
Download
|
|
M |
Source/core/core.gypi
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
Source/core/platform/chromium/support/WebCryptoAlgorithm.cpp
|
View
|
1
|
1 chunk |
+100 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/AesCbcParams.h
|
View
|
1
|
1 chunk |
+12 lines, -10 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/AesCbcParams.cpp
|
View
|
1
|
1 chunk |
+10 lines, -12 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/AesCbcParams.idl
|
View
|
1
2
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/AesKeyGenParams.h
|
View
|
1
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/AesKeyGenParams.cpp
|
View
|
1
|
1 chunk |
+11 lines, -3 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/AesKeyGenParams.idl
|
View
|
1
2
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/Algorithm.h
|
View
|
1
|
2 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/Algorithm.cpp
|
View
|
1
|
1 chunk |
+10 lines, -2 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/Algorithm.idl
|
View
|
1
2
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/CryptoOperation.h
|
View
|
1
|
2 chunks |
+13 lines, -6 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/CryptoOperation.cpp
|
View
|
1
|
1 chunk |
+25 lines, -24 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/CryptoOperation.idl
|
View
|
1
2
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/DOMWindowCrypto.cpp
|
View
|
1
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/NormalizeAlgorithm.h
|
View
|
1
|
1 chunk |
+24 lines, -13 lines |
0 comments
|
Download
|
|
A |
Source/modules/crypto/NormalizeAlgorithm.cpp
|
View
|
1
2
3
|
1 chunk |
+231 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/SubtleCrypto.h
|
View
|
1
2
3
4
|
1 chunk |
+11 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/crypto/SubtleCrypto.cpp
|
View
|
1
2
3
4
|
2 chunks |
+43 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/SubtleCrypto.idl
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/modules/crypto/WorkerGlobalScopeCrypto.cpp
|
View
|
1
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/modules/modules.gypi
|
View
|
1
2
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A + |
public/platform/WebCryptoAlgorithm.h
|
View
|
1
|
2 chunks |
+49 lines, -50 lines |
0 comments
|
Download
|
|
A + |
public/platform/WebCryptoAlgorithmParams.h
|
View
|
1
2
|
1 chunk |
+43 lines, -33 lines |
0 comments
|
Download
|
|
M |
public/platform/WebVector.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|