Home
last modified time | relevance | path

Searched refs:JwtRsaSsaPssAlgorithm (Results 1 – 25 of 27) sorted by relevance

12

/aosp_15_r20/external/tink/cc/jwt/internal/
H A Draw_jwt_rsa_ssa_pss_verify_key_manager.cc47 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
56 JwtRsaSsaPssAlgorithm algorithm = rsa_ssa_pss_public_key.algorithm(); in Create()
102 const JwtRsaSsaPssAlgorithm& algorithm) { in ValidateAlgorithm()
104 case JwtRsaSsaPssAlgorithm::PS256: in ValidateAlgorithm()
105 case JwtRsaSsaPssAlgorithm::PS384: in ValidateAlgorithm()
106 case JwtRsaSsaPssAlgorithm::PS512: in ValidateAlgorithm()
116 const JwtRsaSsaPssAlgorithm& algorithm) { in HashForPssAlgorithm()
118 case JwtRsaSsaPssAlgorithm::PS256: in HashForPssAlgorithm()
120 case JwtRsaSsaPssAlgorithm::PS384: in HashForPssAlgorithm()
122 case JwtRsaSsaPssAlgorithm::PS512: in HashForPssAlgorithm()
[all …]
H A Draw_jwt_rsa_ssa_pss_sign_key_manager_test.cc44 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
63 JwtRsaSsaPssKeyFormat CreateKeyFormat(JwtRsaSsaPssAlgorithm algorithm, in CreateKeyFormat()
80 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 3072, RSA_F4); in TEST()
87 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS512, 3072, RSA_F4); in TEST()
94 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 512, RSA_F4); in TEST()
102 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS_UNKNOWN, 3072, RSA_F4); in TEST()
164 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4); in TEST()
175 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS384, 3072, RSA_F4); in TEST()
186 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS512, 4096, RSA_F4); in TEST()
198 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4); in TEST()
[all …]
H A Djwt_rsa_ssa_pss_sign_verify_key_manager_test.cc44 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
55 JwtRsaSsaPssKeyFormat CreateKeyFormat(JwtRsaSsaPssAlgorithm algorithm, in CreateKeyFormat()
104 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4); in TEST()
111 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS384, 3072, RSA_F4); in TEST()
118 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS512, 4096, RSA_F4); in TEST()
125 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4); in TEST()
134 key->mutable_public_key()->set_algorithm(JwtRsaSsaPssAlgorithm::PS_UNKNOWN); in TEST()
140 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4); in TEST()
149 public_key->set_algorithm(JwtRsaSsaPssAlgorithm::PS_UNKNOWN); in TEST()
155 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4); in TEST()
[all …]
H A Draw_jwt_rsa_ssa_pss_verify_key_manager_test.cc46 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
70 JwtRsaSsaPssKeyFormat CreateKeyFormat(JwtRsaSsaPssAlgorithm algorithm, in CreateKeyFormat()
89 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 3072, RSA_F4)) in CreateValidPublicKey()
108 key.set_algorithm(JwtRsaSsaPssAlgorithm::PS_UNKNOWN); in TEST()
123 CreateKeyFormat(JwtRsaSsaPssAlgorithm::PS256, 3072, RSA_F4); in TEST()
164 JwtRsaSsaPssAlgorithm algorithm;
193 JwtRsaSsaPssAlgorithm::PS256});
H A Djwt_rsa_ssa_pss_verify_key_manager.cc30 using google::crypto::tink::JwtRsaSsaPssAlgorithm;
76 const JwtRsaSsaPssAlgorithm& algorithm) { in AlgorithmName()
78 case JwtRsaSsaPssAlgorithm::PS256: in AlgorithmName()
80 case JwtRsaSsaPssAlgorithm::PS384: in AlgorithmName()
82 case JwtRsaSsaPssAlgorithm::PS512: in AlgorithmName()
H A Draw_jwt_rsa_ssa_pss_verify_key_manager.h69 const google::crypto::tink::JwtRsaSsaPssAlgorithm& algorithm);
73 const google::crypto::tink::JwtRsaSsaPssAlgorithm& algorithm);
76 const google::crypto::tink::JwtRsaSsaPssAlgorithm& algorithm);
H A Draw_jwt_rsa_ssa_pss_sign_key_manager.cc50 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
116 JwtRsaSsaPssAlgorithm algorithm = private_key.public_key().algorithm(); in Create()
H A Djwt_rsa_ssa_pss_verify_key_manager.h64 const google::crypto::tink::JwtRsaSsaPssAlgorithm& algorithm);
/aosp_15_r20/external/tink/go/proto/jwt_rsa_ssa_pss_go_proto/
H A Djwt_rsa_ssa_pss.pb.go40 type JwtRsaSsaPssAlgorithm int32 type
43 JwtRsaSsaPssAlgorithm_PS_UNKNOWN JwtRsaSsaPssAlgorithm = 0
44 …JwtRsaSsaPssAlgorithm_PS256 JwtRsaSsaPssAlgorithm = 1 // RSASSA-PSS using SHA-256 and MGF1 wi…
45 …JwtRsaSsaPssAlgorithm_PS384 JwtRsaSsaPssAlgorithm = 2 // RSASSA-PSS using SHA-384 and MGF1 wi…
46 …JwtRsaSsaPssAlgorithm_PS512 JwtRsaSsaPssAlgorithm = 3 // RSASSA-PSS using SHA-512 and MGF1 wi…
65 func (x JwtRsaSsaPssAlgorithm) Enum() *JwtRsaSsaPssAlgorithm {
66 p := new(JwtRsaSsaPssAlgorithm)
71 func (x JwtRsaSsaPssAlgorithm) String() string {
75 func (JwtRsaSsaPssAlgorithm) Descriptor() protoreflect.EnumDescriptor {
79 func (JwtRsaSsaPssAlgorithm) Type() protoreflect.EnumType {
[all …]
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/jwt/
H A DJwtRsaSsaPssSignKeyManager.java25 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
71 JwtRsaSsaPssAlgorithm algorithm = keyProto.getPublicKey().getAlgorithm(); in selfTestKey()
104 JwtRsaSsaPssAlgorithm algorithm = keyProto.getPublicKey().getAlgorithm(); in getPrimitive()
199 JwtRsaSsaPssAlgorithm algorithm = format.getAlgorithm();
241 JwtRsaSsaPssAlgorithm.PS256,
248 JwtRsaSsaPssAlgorithm.PS256,
255 JwtRsaSsaPssAlgorithm.PS256,
262 JwtRsaSsaPssAlgorithm.PS256,
269 JwtRsaSsaPssAlgorithm.PS384,
276 JwtRsaSsaPssAlgorithm.PS384,
[all …]
H A DJwtRsaSsaPssProtoSerialization.java32 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
99 JwtRsaSsaPssAlgorithm, JwtRsaSsaPssParameters.Algorithm>
102 .<JwtRsaSsaPssAlgorithm, JwtRsaSsaPssParameters.Algorithm>builder()
103 .add(JwtRsaSsaPssAlgorithm.PS256, JwtRsaSsaPssParameters.Algorithm.PS256)
104 .add(JwtRsaSsaPssAlgorithm.PS384, JwtRsaSsaPssParameters.Algorithm.PS384)
105 .add(JwtRsaSsaPssAlgorithm.PS512, JwtRsaSsaPssParameters.Algorithm.PS512)
H A DJwtRsaSsaPssVerifyKeyManager.java22 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
48 static final Enums.HashType hashForPssAlgorithm(JwtRsaSsaPssAlgorithm algorithm) in hashForPssAlgorithm()
62 static final int saltLengthForPssAlgorithm(JwtRsaSsaPssAlgorithm algorithm) in saltLengthForPssAlgorithm()
H A DJwkSetConverter.java28 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
414 JwtRsaSsaPssAlgorithm algorithm; in convertToRsaSsaPssKey()
417 algorithm = JwtRsaSsaPssAlgorithm.PS256; in convertToRsaSsaPssKey()
420 algorithm = JwtRsaSsaPssAlgorithm.PS384; in convertToRsaSsaPssKey()
423 algorithm = JwtRsaSsaPssAlgorithm.PS512; in convertToRsaSsaPssKey()
/aosp_15_r20/external/tink/java_src/src/test/java/com/google/crypto/tink/jwt/
H A DJwtRsaSsaPssSignKeyManagerTest.java31 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
79 JwtRsaSsaPssAlgorithm algorithm, int modulusSizeInBits, BigInteger publicExponent) { in createKeyFormat()
88 public static final JwtRsaSsaPssAlgorithm[] ALGO_PARAMETER =
89 new JwtRsaSsaPssAlgorithm[] {
90 JwtRsaSsaPssAlgorithm.PS256, JwtRsaSsaPssAlgorithm.PS384, JwtRsaSsaPssAlgorithm.PS512
124 @FromDataPoints("algorithmParam") JwtRsaSsaPssAlgorithm algorithm, in validateKeyFormat_ok()
143 createKeyFormat(JwtRsaSsaPssAlgorithm.PS256, 2047, RSAKeyGenParameterSpec.F4); in invalidKeyFormat_smallKey_throw()
150 JwtRsaSsaPssAlgorithm algorithm, int keySize) throws GeneralSecurityException { in invalidKeyFormat_smallPublicExponents_throw()
185 public void createKeys_ok(@FromDataPoints("algorithmParam") JwtRsaSsaPssAlgorithm algorithm) in createKeys_ok()
210 createKeyFormat(JwtRsaSsaPssAlgorithm.PS256, 2048, RSAKeyGenParameterSpec.F4); in createKey_alwaysNewElement_ok()
[all …]
H A DJwtRsaSsaPssProtoSerializationTest.java31 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
118 final JwtRsaSsaPssAlgorithm protoAlgorithm;
121 JwtRsaSsaPssParameters.Algorithm algorithm, JwtRsaSsaPssAlgorithm protoAlgorithm) { in AlgorithmTuple()
130 new AlgorithmTuple(JwtRsaSsaPssParameters.Algorithm.PS256, JwtRsaSsaPssAlgorithm.PS256),
131 new AlgorithmTuple(JwtRsaSsaPssParameters.Algorithm.PS384, JwtRsaSsaPssAlgorithm.PS384),
132 new AlgorithmTuple(JwtRsaSsaPssParameters.Algorithm.PS512, JwtRsaSsaPssAlgorithm.PS512),
186 .setAlgorithm(JwtRsaSsaPssAlgorithm.PS256) in serializeParseParameters_kidStrategyBase64_works()
221 .setAlgorithm(JwtRsaSsaPssAlgorithm.PS512) in parseParameters_crunchy_cannotBeParsed_throws()
283 .setAlgorithm(JwtRsaSsaPssAlgorithm.PS256) in serializeParsePublicKey_kidCustom_equal()
323 .setAlgorithm(JwtRsaSsaPssAlgorithm.PS256) in serializeParsePublicKey_base64Kid_equal()
[all …]
H A DJwtRsaSsaPssVerifyKeyManagerTest.java22 import com.google.crypto.tink.proto.JwtRsaSsaPssAlgorithm;
47 public static final JwtRsaSsaPssAlgorithm[] ALGO_PARAMETER =
48 new JwtRsaSsaPssAlgorithm[] {
49 JwtRsaSsaPssAlgorithm.PS256, JwtRsaSsaPssAlgorithm.PS384, JwtRsaSsaPssAlgorithm.PS512
73 @FromDataPoints("algorithmParam") JwtRsaSsaPssAlgorithm algorithm, in validateKey_ok()
/aosp_15_r20/external/tink/cc/jwt/
H A Djwt_key_templates.cc39 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
95 KeyTemplate* NewJwtRsaSsaPssKeyTemplate(JwtRsaSsaPssAlgorithm algorithm, in NewJwtRsaSsaPssKeyTemplate()
239 JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4, OutputPrefixType::TINK); in JwtPs256_2048_F4_Template()
245 JwtRsaSsaPssAlgorithm::PS256, 2048, RSA_F4, OutputPrefixType::RAW); in RawJwtPs256_2048_F4_Template()
251 JwtRsaSsaPssAlgorithm::PS256, 3072, RSA_F4, OutputPrefixType::TINK); in JwtPs256_3072_F4_Template()
257 JwtRsaSsaPssAlgorithm::PS256, 3072, RSA_F4, OutputPrefixType::RAW); in RawJwtPs256_3072_F4_Template()
263 JwtRsaSsaPssAlgorithm::PS384, 3072, RSA_F4, OutputPrefixType::TINK); in JwtPs384_3072_F4_Template()
269 JwtRsaSsaPssAlgorithm::PS384, 3072, RSA_F4, OutputPrefixType::RAW); in RawJwtPs384_3072_F4_Template()
275 JwtRsaSsaPssAlgorithm::PS512, 4096, RSA_F4, OutputPrefixType::TINK); in JwtPs512_4096_F4_Template()
281 JwtRsaSsaPssAlgorithm::PS512, 4096, RSA_F4, OutputPrefixType::RAW); in RawJwtPs512_4096_F4_Template()
H A Djwk_set_converter.cc44 using ::google::crypto::tink::JwtRsaSsaPssAlgorithm;
208 public_key_proto.set_algorithm(JwtRsaSsaPssAlgorithm::PS256); in PsPublicKeyDataFromKeyStruct()
210 public_key_proto.set_algorithm(JwtRsaSsaPssAlgorithm::PS384); in PsPublicKeyDataFromKeyStruct()
212 public_key_proto.set_algorithm(JwtRsaSsaPssAlgorithm::PS512); in PsPublicKeyDataFromKeyStruct()
541 case JwtRsaSsaPssAlgorithm::PS256: in PsPublicKeyToKeyStruct()
544 case JwtRsaSsaPssAlgorithm::PS384: in PsPublicKeyToKeyStruct()
547 case JwtRsaSsaPssAlgorithm::PS512: in PsPublicKeyToKeyStruct()
/aosp_15_r20/external/tink/java_src/proto/
H A Djwt_rsa_ssa_pss.proto26 enum JwtRsaSsaPssAlgorithm { enum
36 JwtRsaSsaPssAlgorithm algorithm = 2;
80 JwtRsaSsaPssAlgorithm algorithm = 2;
/aosp_15_r20/external/tink/python/tink/proto/
H A Djwt_rsa_ssa_pss.proto26 enum JwtRsaSsaPssAlgorithm { enum
36 JwtRsaSsaPssAlgorithm algorithm = 2;
80 JwtRsaSsaPssAlgorithm algorithm = 2;
/aosp_15_r20/external/tink/proto/
H A Djwt_rsa_ssa_pss.proto26 enum JwtRsaSsaPssAlgorithm { enum
36 JwtRsaSsaPssAlgorithm algorithm = 2;
80 JwtRsaSsaPssAlgorithm algorithm = 2;
/aosp_15_r20/external/tink/cc/proto/
H A Djwt_rsa_ssa_pss.proto26 enum JwtRsaSsaPssAlgorithm { enum
36 JwtRsaSsaPssAlgorithm algorithm = 2;
80 JwtRsaSsaPssAlgorithm algorithm = 2;
/aosp_15_r20/external/tink/go/jwt/
H A Djwt_rsa_ssa_pss_verify_key_manager.go48 var validPSAlgToHash = map[jrsppb.JwtRsaSsaPssAlgorithm]string{
54 var psAlgToSaltLen = map[jrsppb.JwtRsaSsaPssAlgorithm]int{
H A Djwk_converter.go158 var psNameToAlg = map[string]jrpsspb.JwtRsaSsaPssAlgorithm{
420 var psAlgToStr map[jrpsspb.JwtRsaSsaPssAlgorithm]string = map[jrpsspb.JwtRsaSsaPssAlgorithm]string{
/aosp_15_r20/external/tink/python/tink/jwt/
H A D_jwt_key_templates.py62 algorithm: jwt_rsa_ssa_pss_pb2.JwtRsaSsaPssAlgorithm, modulus_size: int, argument

12