Skip to content

Commit 5b88d48

Browse files
wooffiemarco-ippolito
authored andcommitted
src: add default value for RSACipherConfig mode field
Using default init of enum is UB Refs: #56693 PR-URL: #56701 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 627f299 commit 5b88d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/crypto_rsa.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ struct RSAKeyExportTraits final {
7878
using RSAKeyExportJob = KeyExportJob<RSAKeyExportTraits>;
7979

8080
struct RSACipherConfig final : public MemoryRetainer {
81-
CryptoJobMode mode;
81+
CryptoJobMode mode = kCryptoJobAsync;
8282
ByteSource label;
8383
int padding = 0;
8484
const EVP_MD* digest = nullptr;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy