BlockDev.CryptoKeyslotContext¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
type |
r/w |
Methods¶
class |
|
class |
|
class |
|
class |
|
Details¶
- class BlockDev.CryptoKeyslotContext¶
- classmethod new_keyfile(keyfile, keyfile_offset, key_size)¶
- Parameters:
- Raises:
- Return type:
Returns (transfer full): new
BlockDev.CryptoKeyslotContext
initialized by key file orNone
in case of errorTech category: always available
- classmethod new_keyring(key_desc)¶
- Parameters:
key_desc (
str
) – kernelBlockDev.keyring
key description- Raises:
- Return type:
Returns (transfer full): new
BlockDev.CryptoKeyslotContext
initialized by key_desc orNone
in case of errorNote: Keyslot
BlockDev.passphrase
must be stored in ‘user’ key type and the key has to be reachable by process context on behalf of which this function is called.Tech category: always available
- classmethod new_passphrase(pass_data)¶
- Parameters:
pass_data (
bytes
) – aBlockDev.passphrase
for the new context (may contain arbitrary binary data)- Raises:
- Return type:
Returns (transfer full): new
BlockDev.CryptoKeyslotContext
initialized byBlockDev.passphrase
orNone
in case of errorTech category: always available
- classmethod new_volume_key(volume_key)¶
- Parameters:
volume_key (
bytes
) – a volume key for the new context (may contain arbitrary binary data)- Raises:
- Return type:
Returns (transfer full): new
BlockDev.CryptoKeyslotContext
initialized by volume key orNone
in case of errorTech category: always available