Skip to content

Add Span functions where applicable #426

@0xTim

Description

@0xTim

New API Proposal: Span support

Motivation:

Lots of types, especially around keys, allow you to access the underlying storage with func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R. Span was introduced to support these exact scenarios in a safe way and Crypto should support it

Importance:

Unsafe code is unsafe, safe alternatives should be provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions