mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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
|
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:
|
class SeedKeyPair:
|
||||||
__slots__ = ["l1_key", "l2_key", "gkid", "hash_algorithm", "root_key_id"]
|
__slots__ = ["l1_key", "l2_key", "gkid", "hash_algorithm", "root_key_id"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user