You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Key Derivation throwing struct.error: unpack requires a buffer of 4 bytes #701
super(Integer, self).read(istream, kmip_version=kmip_version)
File "/XXX/app-env/lib/python3.8/site-packages/kmip/core/primitives.py", line 105, in read
self.read_tag(istream) File "/XXX/app-env/lib/python3.8/site-packages/kmip/core/primitives.py", line 50, in read_tag
tag = unpack('!I', b'\x00' + tts[0:self.TAG_SIZE])[0]
struct.error: unpack requires a buffer of 4 bytes
In my case the issue was that the CTM vault did not support key derivation via KMIP. Hence this error.
KMIP supports key derivation, and our CTM supports KMIP partially, but doesn't support key derivation using KMIP.
Although I am working with CTM as well, I am seeing this issue crop up even if I am supplying the keys. The python code (which uses PyKMIP) that I wrote last year is now failing because of this ... bug. It is not clear to me what specifically has changed. I am going to investigate using versions of Python that prior to the latest release.
Old versions of python are exhibiting the same behavior. Trying to figure out what has changed in the pykmip code that should cause this problem to now appear (but not appear earlier in the year).
Hello guys,
Any updates on this issue? I am facing the same problem when integration Openstack Barbican with CTM KMIP. Wondering if you managed to find any solution.
Regards
Activity
RickT256 commentedon Sep 14, 2023
I am seeing this as an issue as well.
ns-saurabh commentedon Sep 15, 2023
In my case the issue was that the CTM vault did not support key derivation via KMIP. Hence this error.
KMIP supports key derivation, and our CTM supports KMIP partially, but doesn't support key derivation using KMIP.
RickT256 commentedon Sep 15, 2023
Although I am working with CTM as well, I am seeing this issue crop up even if I am supplying the keys. The python code (which uses PyKMIP) that I wrote last year is now failing because of this ... bug. It is not clear to me what specifically has changed. I am going to investigate using versions of Python that prior to the latest release.
RickT256 commentedon Sep 15, 2023
Old versions of python are exhibiting the same behavior. Trying to figure out what has changed in the pykmip code that should cause this problem to now appear (but not appear earlier in the year).
karolke99 commentedon Apr 29, 2025
Hello guys,
Any updates on this issue? I am facing the same problem when integration Openstack Barbican with CTM KMIP. Wondering if you managed to find any solution.
Regards