mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-14 16:09:24 +01:00
crypto: Add crypto_cipher_tk_bits
This commit is contained in:
parent
07c8876d9e
commit
f647e03166
@ -53,6 +53,11 @@ int crypto_cipher_key_len(enum crypto_cipher cipher)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int crypto_cipher_tk_bits(enum crypto_cipher cipher)
|
||||
{
|
||||
return crypto_cipher_key_len(cipher) * 8;
|
||||
}
|
||||
|
||||
int crypto_psk_from_passphrase(const char *passphrase,
|
||||
const unsigned char *ssid, size_t ssid_len,
|
||||
unsigned char *out_psk)
|
||||
|
@ -32,6 +32,7 @@ enum crypto_cipher {
|
||||
};
|
||||
|
||||
int crypto_cipher_key_len(enum crypto_cipher cipher);
|
||||
int crypto_cipher_tk_bits(enum crypto_cipher cipher);
|
||||
|
||||
int crypto_psk_from_passphrase(const char *passphrase,
|
||||
const unsigned char *ssid, size_t ssid_len,
|
||||
|
Loading…
Reference in New Issue
Block a user