@@ -3500,31 +3500,44 @@ namespace jwt {
3500
3500
}
3501
3501
3502
3502
if (alg_name == " RS256" ) {
3503
- return std::unique_ptr<algo<jwt::algorithm::rs256>>(new algo<jwt::algorithm::rs256>(jwt::algorithm::rs256 (key.get_pkey ())));
3503
+ return std::unique_ptr<algo<jwt::algorithm::rs256>>(
3504
+ new algo<jwt::algorithm::rs256>(jwt::algorithm::rs256 (key.get_pkey ())));
3504
3505
} else if (alg_name == " RS384" ) {
3505
- return std::unique_ptr<algo<jwt::algorithm::rs384>>(new algo<jwt::algorithm::rs384>(jwt::algorithm::rs384 (key.get_pkey ())));
3506
+ return std::unique_ptr<algo<jwt::algorithm::rs384>>(
3507
+ new algo<jwt::algorithm::rs384>(jwt::algorithm::rs384 (key.get_pkey ())));
3506
3508
} else if (alg_name == " RS512" ) {
3507
- return std::unique_ptr<algo<jwt::algorithm::rs512>>(new algo<jwt::algorithm::rs512>(jwt::algorithm::rs512 (key.get_pkey ())));
3509
+ return std::unique_ptr<algo<jwt::algorithm::rs512>>(
3510
+ new algo<jwt::algorithm::rs512>(jwt::algorithm::rs512 (key.get_pkey ())));
3508
3511
} else if (alg_name == " PS256" ) {
3509
- return std::unique_ptr<algo<jwt::algorithm::ps256>>(new algo<jwt::algorithm::ps256>(jwt::algorithm::ps256 (key.get_pkey ())));
3512
+ return std::unique_ptr<algo<jwt::algorithm::ps256>>(
3513
+ new algo<jwt::algorithm::ps256>(jwt::algorithm::ps256 (key.get_pkey ())));
3510
3514
} else if (alg_name == " PS384" ) {
3511
- return std::unique_ptr<algo<jwt::algorithm::ps384>>(new algo<jwt::algorithm::ps384>(jwt::algorithm::ps384 (key.get_pkey ())));
3515
+ return std::unique_ptr<algo<jwt::algorithm::ps384>>(
3516
+ new algo<jwt::algorithm::ps384>(jwt::algorithm::ps384 (key.get_pkey ())));
3512
3517
} else if (alg_name == " PS512" ) {
3513
- return std::unique_ptr<algo<jwt::algorithm::ps512>>(new algo<jwt::algorithm::ps512>(jwt::algorithm::ps512 (key.get_pkey ())));
3518
+ return std::unique_ptr<algo<jwt::algorithm::ps512>>(
3519
+ new algo<jwt::algorithm::ps512>(jwt::algorithm::ps512 (key.get_pkey ())));
3514
3520
} else if (alg_name == " ES256" ) {
3515
- return std::unique_ptr<algo<jwt::algorithm::es256>>(new algo<jwt::algorithm::es256>(jwt::algorithm::es256 (key.get_pkey ())));
3521
+ return std::unique_ptr<algo<jwt::algorithm::es256>>(
3522
+ new algo<jwt::algorithm::es256>(jwt::algorithm::es256 (key.get_pkey ())));
3516
3523
} else if (alg_name == " ES384" ) {
3517
- return std::unique_ptr<algo<jwt::algorithm::es384>>(new algo<jwt::algorithm::es384>(jwt::algorithm::es384 (key.get_pkey ())));
3524
+ return std::unique_ptr<algo<jwt::algorithm::es384>>(
3525
+ new algo<jwt::algorithm::es384>(jwt::algorithm::es384 (key.get_pkey ())));
3518
3526
} else if (alg_name == " ES512" ) {
3519
- return std::unique_ptr<algo<jwt::algorithm::es512>>(new algo<jwt::algorithm::es512>(jwt::algorithm::es512 (key.get_pkey ())));
3527
+ return std::unique_ptr<algo<jwt::algorithm::es512>>(
3528
+ new algo<jwt::algorithm::es512>(jwt::algorithm::es512 (key.get_pkey ())));
3520
3529
} else if (alg_name == " ES256K" ) {
3521
- return std::unique_ptr<algo<jwt::algorithm::es256k>>(new algo<jwt::algorithm::es256k>(jwt::algorithm::es256k (key.get_pkey ())));
3530
+ return std::unique_ptr<algo<jwt::algorithm::es256k>>(
3531
+ new algo<jwt::algorithm::es256k>(jwt::algorithm::es256k (key.get_pkey ())));
3522
3532
} else if (alg_name == " HS256" ) {
3523
- return std::unique_ptr<algo<jwt::algorithm::hs256>>(new algo<jwt::algorithm::hs256>(jwt::algorithm::hs256 (key.get_oct_key ())));
3533
+ return std::unique_ptr<algo<jwt::algorithm::hs256>>(
3534
+ new algo<jwt::algorithm::hs256>(jwt::algorithm::hs256 (key.get_oct_key ())));
3524
3535
} else if (alg_name == " HS384" ) {
3525
- return std::unique_ptr<algo<jwt::algorithm::hs384>>(new algo<jwt::algorithm::hs384>(jwt::algorithm::hs384 (key.get_oct_key ())));
3536
+ return std::unique_ptr<algo<jwt::algorithm::hs384>>(
3537
+ new algo<jwt::algorithm::hs384>(jwt::algorithm::hs384 (key.get_oct_key ())));
3526
3538
} else if (alg_name == " HS512" ) {
3527
- return std::unique_ptr<algo<jwt::algorithm::hs512>>(new algo<jwt::algorithm::hs512>(jwt::algorithm::hs512 (key.get_oct_key ())));
3539
+ return std::unique_ptr<algo<jwt::algorithm::hs512>>(
3540
+ new algo<jwt::algorithm::hs512>(jwt::algorithm::hs512 (key.get_oct_key ())));
3528
3541
}
3529
3542
3530
3543
ec = error::token_verification_error::wrong_algorithm;
0 commit comments