(name)
| 904 | } |
| 905 | |
| 906 | function getBlockSize(name) { |
| 907 | switch (name) { |
| 908 | case 'SHA-1': |
| 909 | // Fall through |
| 910 | case 'SHA-256': |
| 911 | return 512; |
| 912 | case 'SHA-384': |
| 913 | // Fall through |
| 914 | case 'SHA-512': |
| 915 | return 1024; |
| 916 | case 'SHA3-256': |
| 917 | // Fall through |
| 918 | case 'SHA3-384': |
| 919 | // Fall through |
| 920 | case 'SHA3-512': |
| 921 | // This interaction is not defined for now. |
| 922 | // https://github.com/WICG/webcrypto-modern-algos/issues/23 |
| 923 | throw lazyDOMException('Explicit algorithm length member is required', 'NotSupportedError'); |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | function getDigestSizeInBytes(name) { |
| 928 | switch (name) { |
no test coverage detected
searching dependent graphs…