New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GCM support for EVP_CTRL_GCM_IV_GEN/EVP_CTRL_GCM_SET_IV_INV to providers #10173
Conversation
Tested manually with following command:
i.e. pass . This modification does not provide correction for one of questions raised 9524 - Does CCM support SET_IV_FIXED? crypto/evp/evp_enc.c:1099: case EVP_CTRL_AEAD_SET_IVLEN: crypto/evp/evp_enc.c:1104: case EVP_CTRL_GCM_SET_IV_FIXED: crypto/evp/evp_enc.c:1106: OSSL_PARAM_construct_octet_string(OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED, crypto/evp/evp_enc.c:1109: case EVP_CTRL_GCM_IV_GEN: crypto/evp/evp_enc.c:1117: case EVP_CTRL_GCM_SET_IV_INV: crypto/evp/evp_enc.c:1132: case EVP_CTRL_AEAD_GET_TAG: crypto/evp/evp_enc.c:1134: case EVP_CTRL_AEAD_SET_TAG: crypto/evp/evp_enc.c:1135: params[0] = OSSL_PARAM_construct_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG, crypto/evp/evp_enc.c:1138: case EVP_CTRL_AEAD_TLS1_AAD: crypto/evp/evp_enc.c:1141: OSSL_PARAM_construct_octet_string(OSSL_CIPHER_PARAM_AEAD_TLS1_AAD, crypto/evp/evp_enc.c:1147: OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD, &sz); include/openssl/evp.h:291:# define EVP_CIPH_FLAG_AEAD_CIPHER 0x200000 include/openssl/evp.h:316:# define EVP_CTRL_AEAD_SET_IVLEN 0x9 include/openssl/evp.h:317:# define EVP_CTRL_AEAD_GET_TAG 0x10 include/openssl/evp.h:318:# define EVP_CTRL_AEAD_SET_TAG 0x11 include/openssl/evp.h:319:# define EVP_CTRL_AEAD_SET_IV_FIXED 0x12 include/openssl/evp.h:320:# define EVP_CTRL_GCM_SET_IVLEN EVP_CTRL_AEAD_SET_IVLEN include/openssl/evp.h:321:# define EVP_CTRL_GCM_GET_TAG EVP_CTRL_AEAD_GET_TAG include/openssl/evp.h:322:# define EVP_CTRL_GCM_SET_TAG EVP_CTRL_AEAD_SET_TAG include/openssl/evp.h:323:# define EVP_CTRL_GCM_SET_IV_FIXED EVP_CTRL_AEAD_SET_IV_FIXED include/openssl/evp.h:324:# define EVP_CTRL_GCM_IV_GEN 0x13 include/openssl/evp.h:325:# define EVP_CTRL_CCM_SET_IVLEN EVP_CTRL_AEAD_SET_IVLEN include/openssl/evp.h:326:# define EVP_CTRL_CCM_GET_TAG EVP_CTRL_AEAD_GET_TAG include/openssl/evp.h:327:# define EVP_CTRL_CCM_SET_TAG EVP_CTRL_AEAD_SET_TAG include/openssl/evp.h:328:# define EVP_CTRL_CCM_SET_IV_FIXED EVP_CTRL_AEAD_SET_IV_FIXED include/openssl/evp.h:332: * AEAD cipher deduces payload length and returns number of bytes required to include/openssl/evp.h:336:# define EVP_CTRL_AEAD_TLS1_AAD 0x16 include/openssl/evp.h:337:/* Used by composite AEAD ciphers, no-op in GCM, CCM... */ include/openssl/evp.h:338:# define EVP_CTRL_AEAD_SET_MAC_KEY 0x17 include/openssl/evp.h:340:# define EVP_CTRL_GCM_SET_IV_INV 0x18 include/openssl/evp.h:384:# define EVP_AEAD_TLS1_AAD_LEN 13 |
EVP_CTRL_GCM_SET_IV_FIXED & EVP_CTRL_AEAD_SET_IV_FIXED are defined as the same thing, so it makes no difference which one is used. replaced EVP_CTRL_GCM_SET_IV_FIXED in evp_enc.c |
ping |
fcd8b95
to
31e7138
Compare
ping: rebased |
31e7138
to
a3068cf
Compare
ping: rebased again |
Author refuse to replace EVP_CTRL_GCM_SET_IV_FIXED with EVP_CTRL_AEAD_SET_IV_FIXED - improved readability. So issue is in deadlock state. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see a more generic kind of thing surrounding names...
Rebase needed. |
Team has quite a few things on its plate and limited resources. Please do not see delays on your favorite topics of interest as refusal. |
Err this PR has this change..
Hopefully this gets resolved a bit quicker now.. |
a3068cf
to
5305bc0
Compare
ping - rebased due to the provider folders moving. |
Looks ok to me - but needs a rebase again!! |
5305bc0
to
eef0706
Compare
rebased. |
ping |
…o providers Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from #10173)
Thanks.. code merged to master. |
Checklist