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:
parent
0c0a25d0b2
commit
5aaebb537e
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user