Skip to content

Accept shared ArrayBufferView also? #213

Description

@jimmywarting

I tried to use shared ArrayBuffer view along with crypto api. Didn't work

crypto.getRandomValues(new Uint8Array(new SharedArrayBuffer(1)))
crypto.subtle.digest(algo, sharedBuffer)
Failed to execute 'getRandomValues' on 'Crypto': 
  The provided ArrayBufferView value must not be shared.

Failed to execute 'digest' on 'SubtleCrypto': 
  The provided ArrayBufferView value must not be shared.

Is there any reason why it would not be allowed? didn't find any issue or text in the spec mention anything about sharedArrayBuffer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions