mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-10 16:12:55 +00:00
29 lines
495 B
Python
Executable File
29 lines
495 B
Python
Executable File
#!/usr/bin/python3
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
import sys
|
|
import struct
|
|
|
|
if __name__ == '__main__':
|
|
|
|
# SignatureType
|
|
buf = b'0' * 16
|
|
|
|
# SignatureListSize
|
|
buf += struct.pack('<I', 16 + 4 + 4 + 4 + 16 + 32)
|
|
|
|
# SignatureHeaderSize
|
|
buf += struct.pack('<I', 0)
|
|
|
|
# SignatureSize
|
|
buf += struct.pack('<I', 16 + 32)
|
|
|
|
# SignatureOwner
|
|
buf += b'1' * 16
|
|
|
|
# SignatureData
|
|
buf += b'2' * 32
|
|
|
|
with open(sys.argv[1], 'wb') as f:
|
|
f.write(buf)
|