Skip to content

Why is ivBytes not publicly accessible on AES._CBC.IV? #389

@wnagrodzki

Description

@wnagrodzki

Question Checklist

Question Subject

Why ivBytes is not a public property on AES._CBC.IV?

Question Description

I would expect ivBytes to be public which would enable me to encode it to an external representation.
There is a workaround for this issue:

var copy = iv
let ivData = withUnsafeBytes(of: &copy) { Data($0) }

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