(method: CryptoMethod, text: Uint8Array)
| 268 | } |
| 269 | |
| 270 | async function H(method: CryptoMethod, text: Uint8Array): Promise<Uint8Array> { |
| 271 | const buffer = await crypto.subtle.digest(method === 'sha256' ? 'SHA-256' : 'SHA-1', text); |
| 272 | return new Uint8Array(buffer); |
| 273 | } |
| 274 | |
| 275 | async function HMAC( |
| 276 | method: CryptoMethod, |
no outgoing calls
no test coverage detected