userver: crypto::weak Namespace Reference
Loading...
Searching...
No Matches
crypto::weak Namespace Reference

Detailed Description

Non-cryptographic signature helpers.

Typedefs

using SignerRs1 = DsaSigner<DsaType::kRsa, DigestSize::k160>
 Outputs RSASSA signature using SHA-1 and PKCS1 padding.
 
using SignerPs1 = DsaSigner<DsaType::kRsaPss, DigestSize::k160>
 
using VerifierRs1 = DsaVerifier<DsaType::kRsa, DigestSize::k160>
 Verifies RSASSA signature using SHA-1 and PKCS1 padding.
 
using VerifierPs1 = DsaVerifier<DsaType::kRsaPss, DigestSize::k160>
 

Typedef Documentation

◆ SignerPs1

using crypto::weak::SignerPs1 = DsaSigner<DsaType::kRsaPss, DigestSize::k160>

Outputs RSASSA signature using SHA-2 and PSS padding.

JWA specifications require using MGF1 function with the same hash function as for the digest and salt length to be the same size as the hash output.

Definition at line 158 of file signers.hpp.

◆ SignerRs1

using crypto::weak::SignerRs1 = DsaSigner<DsaType::kRsa, DigestSize::k160>

Outputs RSASSA signature using SHA-1 and PKCS1 padding.

Definition at line 152 of file signers.hpp.

◆ VerifierPs1

using crypto::weak::VerifierPs1 = DsaVerifier<DsaType::kRsaPss, DigestSize::k160>

Verifies RSASSA signature using SHA-1 and PSS padding.

JWA specifications require using MGF1 function with the same hash function as for the digest and salt length to be the same size as the hash output.

Definition at line 148 of file verifiers.hpp.

◆ VerifierRs1

using crypto::weak::VerifierRs1 = DsaVerifier<DsaType::kRsa, DigestSize::k160>

Verifies RSASSA signature using SHA-1 and PKCS1 padding.

Definition at line 142 of file verifiers.hpp.