Bug#1102276: fails to compile: the name `hkdf` is defined multiple time
From
Jonas Smedegaard@21:1/5 to
All on Mon Apr 7 09:40:01 2025
Package: librust-secret-service-dev
Version: 4.0.0-4
Severity: grave
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Builds involving this package fails to build:
error[E0428]: the name `hkdf` is defined multiple times
--> /build/rust-email-lib-0+20250111/debian/cargo_registry/secret-service-4.0.0/src/session.rs:131:1
|
111 | fn hkdf(ikm: Vec<u8>, salt: Option<&[u8]>, okm: &mut [u8]) {
| ---------------------------------------------------------- previous definition of the value `hkdf` here
...
131 | fn hkdf(ikm: Vec<u8>, salt: Option<&[u8]>, okm: &mut [u8]) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `hkdf` redefined here
|
= note: `hkdf` must be defined only once in the value namespace of this module
error[E0428]: the name `encrypt` is defined multiple times
--> /build/rust-email-lib-0+20250111/debian/cargo_registry/secret-service-4.0.0/src/session.rs:267:1
|
242 | pub fn encrypt(data: &[u8], key: &AesKey, iv: &[u8]) -> Vec<u8> {
| --------------------------------------------------------------- previous definition of the value `encrypt` here
...
267 | pub fn encrypt(data: &[u8], key: &AesKey, iv: &[u8]) -> Vec<u8> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `encrypt` redefined here
|
= note: `encrypt` must be defined only once in the value namespace of this module
error[E0428]: the name `decrypt` is defined multiple times
--> /build/rust-email-lib-0+20250111/debian/cargo_registry/secret-service-4.0.0/src/session.rs:284:1
|
254 | pub fn decrypt(encrypted_data: &[u8], key: &AesKey, iv: &[u8]) -> Result<Vec<u8>, Error> {
| ---------------------------------------------------------------------------------------- previous definition of the value `decrypt` here
...
284 | pub fn decrypt(encrypted_data: &[u8], key: &AesKey, iv: &[u8]) -> Result<Vec<u8>, Error> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `decrypt` redefined here
|
= note: `decrypt` must be defined only once in the value namespace of this module
-----BEGIN PGP SIGNATURE-----
wsG7BAEBCgBvBYJn8369CRAsfDFGwaABIUcUAAAAAAAeACBzYWx0QG5vdGF0aW9u cy5zZXF1b2lhLXBncC5vcmdRAK2jcExKcPb8v2cW+VK/xbxNK0g+uv67vqSVbT3q HBYhBJ/j6cNmkaaf9TzGhCx8MUbBoAEhAAA5+g//U0V2Y0gviRsqFcGH0AKJwDHS 1VLZ+wbD0shxeauPqhBReKtDMfv6czq3E2bt4ukwLTpwvPUt+eIXQAGiWEuS2cTo Nr4/qmxHOvIPngVHyrY3i0VC/tosuc6s6DXzrLToCEHsF33jXYI+ac9/QHfXxJqj 5HWaYfJcQNz+26F98i1HU5fLgORrV1qKIqBKWUKgQo+S5PhvYKIUAvQ9/ZozMxeH YLxvj/2cWAAcizbZBGPkICI3xEl0IPaoDHjQSFqm5ugb24QrSRaEpA2NGmu/B+hD UM6+Ny/90REb7KHdqlt5ZwWKNjsMfN+hM6fcaPYgEcm7zhqs5yRbSEQ8+GWRJPUQ x5Q6mdTxCRcYMrunsCC4VtejBWJQLYtdhfn0coKn6l/ocrMnIjjMSoOJiVOhDjFq mR+zya8Puon0kbzK2OmKAJ5LR2sgcej9FsGE/3qjZmXO3fmjntlvLhjbidGybBZY KetLeSHgX/N3i2rQSGrmR1VJmS4K3e/L14miTlRK5tY617sxn+pLlr4njh8sc2Jq DfM07c1OrtwP5LT3vYqkkak2RHRSyI0Xki/zXXnIaisHsq+spC5U7UObQ2sViNXN EORkhj8pnXxniyU/Fi9PsDhJcRi6wgdOpdWlouaewEI3c90HADsHGfvXOl8GSOyO ufLjtptoDoJ0FXP8MmU=
=xbxw
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)