]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/implementations/include/prov/ciphercommon.h
update/final: Return error if key is not set
[thirdparty/openssl.git] / providers / implementations / include / prov / ciphercommon.h
index 2a7a059086fb9152c3058f9b3303b19972e2beaa..45002ad594a00460e28321e6cfe90cee063e4f64 100644 (file)
@@ -69,6 +69,7 @@ struct prov_cipher_ctx_st {
     unsigned int pad : 1;    /* Whether padding should be used or not */
     unsigned int enc : 1;    /* Set to 1 for encrypt, or 0 otherwise */
     unsigned int iv_set : 1; /* Set when the iv is copied to the iv/oiv buffers */
+    unsigned int key_set : 1; /* Set when key is set on the context */
     unsigned int updated : 1; /* Set to 1 during update for one shot ciphers */
     unsigned int variable_keylength : 1;
     unsigned int inverse_cipher : 1; /* set to 1 to use inverse cipher */