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.CryptoKeyslotContextinitialized by key file orNonein case of errorTech category: always available
- classmethod new_keyring(key_desc)¶
- Parameters:
key_desc (
str) – kernelBlockDev.keyringkey description- Raises:
- Return type:
Returns (transfer full): new
BlockDev.CryptoKeyslotContextinitialized by key_desc orNonein case of errorNote: Keyslot
BlockDev.passphrasemust 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.passphrasefor the new context (may contain arbitrary binary data)- Raises:
- Return type:
Returns (transfer full): new
BlockDev.CryptoKeyslotContextinitialized byBlockDev.passphraseorNonein 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.CryptoKeyslotContextinitialized by volume key orNonein case of errorTech category: always available