mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
raop: fix typo: modules -> modulus
This commit is contained in:
parent
2ee5dffffb
commit
f2199f879a
1 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ static const char rsa_exponent[] =
|
||||||
"AQAB";
|
"AQAB";
|
||||||
|
|
||||||
static int rsa_encrypt(uint8_t *data, int len, uint8_t *str) {
|
static int rsa_encrypt(uint8_t *data, int len, uint8_t *str) {
|
||||||
uint8_t modules[256];
|
uint8_t modulus[256];
|
||||||
uint8_t exponent[8];
|
uint8_t exponent[8];
|
||||||
int size;
|
int size;
|
||||||
RSA *rsa;
|
RSA *rsa;
|
||||||
|
|
@ -91,9 +91,9 @@ static int rsa_encrypt(uint8_t *data, int len, uint8_t *str) {
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
size = pa_raop_base64_decode(rsa_modulus, modules);
|
size = pa_raop_base64_decode(rsa_modulus, modulus);
|
||||||
|
|
||||||
n_bn = BN_bin2bn(modules, size, NULL);
|
n_bn = BN_bin2bn(modulus, size, NULL);
|
||||||
if (!n_bn) {
|
if (!n_bn) {
|
||||||
pa_log("n_bn = BN_bin2bn() failed.");
|
pa_log("n_bn = BN_bin2bn() failed.");
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue