1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

python:gkdi: Add Gkdi.from_key_envelope() method

Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Jo Sutton 2024-04-05 13:43:15 +13:00 committed by Andrew Bartlett
parent 0c0a25d0b2
commit 5aaebb537e

View File

@ -289,6 +289,10 @@ class Gkid:
return start_time
@staticmethod
def from_key_envelope(env: gkdi.KeyEnvelope) -> "Gkid":
return Gkid(env.l0_index, env.l1_index, env.l2_index)
class SeedKeyPair:
__slots__ = ["l1_key", "l2_key", "gkid", "hash_algorithm", "root_key_id"]