Skip to content

Missing type definitions in webcryptoapi.dart #273

Open
@Schwusch

Description

@Schwusch

In 1.0.0, some SubtleCrypto methods have untyped parameters, thus making them hard to use:
E.g. importKey():
image

Before 1.0.0, it was possible to figure out and pass KeyAlgorithm(name: 'AES-GCM') as the algorithm argument. This class is however gone in 1.0.0.
Other missing definition examples are AesGcmParams, which was useful for SubtleCrypto.encrypt()/ SubtleCrypto.decrypt().
Current implementation of AlgorithmIdentifier is a simple typedef:

typedef AlgorithmIdentifier = JSAny;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions