Skip to content

evp_cipher: add freeze option#76

Closed
npajkovsky wants to merge 5 commits into
openssl:mainfrom
npajkovsky:evp-cipher-freeze
Closed

evp_cipher: add freeze option#76
npajkovsky wants to merge 5 commits into
openssl:mainfrom
npajkovsky:evp-cipher-freeze

Conversation

@npajkovsky

@npajkovsky npajkovsky commented Feb 16, 2026

Copy link
Copy Markdown

$ ./build/evp_cipher -o evp_isolated -a AES-128-CBC 64
Average time per encryption: 22.675682us

$ ./build/evp_cipher -o evp_isolated -a AES-128-CBC 64 -f
Average time per encryption: 2.371467us

Fixes openssl/project#1874

$ ./build/evp_cipher -o evp_isolated -a AES-128-CBC 64
Average time per encryption: 22.675682us

$ ./build/evp_cipher -o evp_isolated -a AES-128-CBC 64 -f
Average time per encryption: 2.371467us

Signed-off-by: Nikola Pajkovsky <nikolap@openssl.org>
@npajkovsky npajkovsky requested a review from bob-beck February 16, 2026 20:51

@jogme jogme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One little nit

Comment thread source/evp_cipher.c Outdated
@vavroch2010 vavroch2010 moved this to Waiting Review in Development Board Feb 17, 2026

@jogme jogme left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Nice performance increase!

npajkovsky pushed a commit that referenced this pull request Feb 17, 2026
$ ./build/evp_cipher -o evp_isolated -a AES-128-CBC 64
Average time per encryption: 22.675682us

$ ./build/evp_cipher -o evp_isolated -a AES-128-CBC 64 -f
Average time per encryption: 2.371467us

Signed-off-by: Nikola Pajkovsky <nikolap@openssl.org>

Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Tue Feb 17 09:51:29 2026
(Merged from #76)
@npajkovsky

Copy link
Copy Markdown
Author

Thank you for the review. Merged.

@npajkovsky npajkovsky closed this Feb 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EVP_CIPHER: perftool: add -f option for freezing context

4 participants