base64secret_decode


Description:


[ Version ( since = "1.16" ) ]
public bool base64secret_decode (string base64_key, size_t required_key_len, uint8? out_key)

Parameters:

base64_key

the (possibly invalid) base64 encode key.

required_key_len

the expected (binary) length of the key after decoding. If the length does not match, the validation fails.

out_key

(out): an optional output buffer for the binary key. If given, it will be filled with exactly required_key_len bytes.

Returns:

true if the input key is a valid base64 encoded key with required_key_len bytes.


Namespace: NM.Utils
Package: libnm



2022 vala-language.org