Skip to content

crypto/aes: implement ctrAble when using AES-NI on amd64 #20967

@Yawning

Description

@Yawning

What version of Go are you using (go version)?

1.8.3

What operating system and processor architecture are you using (go env)?

linux/amd64

What did you do?

Benchmarked CTR-AES128 backed by crypto/aes on a system with AES-NI.

What did you expect to see?

Acceptable performance.

What did you see instead?

~400 MB/s for 1 KiB writes. For reference the same system using crypto/aes's gcmAble does GCM-AES128 Seal() at ~1300 MB/s. A cursory look at the source suggests that there is no special case ctrAble implementation for AES-NI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Performancehelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions