(name)
| 925 | } |
| 926 | |
| 927 | function getDigestSizeInBytes(name) { |
| 928 | switch (name) { |
| 929 | case 'SHA-1': |
| 930 | return 20; |
| 931 | case 'SHA-256': // Fall through |
| 932 | case 'SHA3-256': |
| 933 | return 32; |
| 934 | case 'SHA-384': // Fall through |
| 935 | case 'SHA3-384': |
| 936 | return 48; |
| 937 | case 'SHA-512': // Fall through |
| 938 | case 'SHA3-512': |
| 939 | return 64; |
| 940 | } |
| 941 | } |
| 942 | |
| 943 | function validateKeyOps(keyOps, usagesSet) { |
| 944 | if (keyOps === undefined) return; |
no outgoing calls
no test coverage detected
searching dependent graphs…