/aosp_15_r20/external/tink/go/proto/jwt_rsa_ssa_pkcs1_go_proto/ |
H A D | jwt_rsa_ssa_pkcs1.pb.go | 40 type JwtRsaSsaPkcs1Algorithm int32 type 43 JwtRsaSsaPkcs1Algorithm_RS_UNKNOWN JwtRsaSsaPkcs1Algorithm = 0 44 JwtRsaSsaPkcs1Algorithm_RS256 JwtRsaSsaPkcs1Algorithm = 1 // RSASSA-PKCS1-v1_5 using SHA-256 45 JwtRsaSsaPkcs1Algorithm_RS384 JwtRsaSsaPkcs1Algorithm = 2 // RSASSA-PKCS1-v1_5 using SHA-384 46 JwtRsaSsaPkcs1Algorithm_RS512 JwtRsaSsaPkcs1Algorithm = 3 // RSASSA-PKCS1-v1_5 using SHA-512 65 func (x JwtRsaSsaPkcs1Algorithm) Enum() *JwtRsaSsaPkcs1Algorithm { 66 p := new(JwtRsaSsaPkcs1Algorithm) 71 func (x JwtRsaSsaPkcs1Algorithm) String() string { 75 func (JwtRsaSsaPkcs1Algorithm) Descriptor() protoreflect.EnumDescriptor { 79 func (JwtRsaSsaPkcs1Algorithm) Type() protoreflect.EnumType { [all …]
|
/aosp_15_r20/external/tink/cc/jwt/internal/ |
H A D | raw_jwt_rsa_ssa_pkcs1_verify_key_manager.cc | 45 using google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 92 const JwtRsaSsaPkcs1Algorithm& algorithm) { in ValidateAlgorithm() 94 case JwtRsaSsaPkcs1Algorithm::RS256: in ValidateAlgorithm() 95 case JwtRsaSsaPkcs1Algorithm::RS384: in ValidateAlgorithm() 96 case JwtRsaSsaPkcs1Algorithm::RS512: in ValidateAlgorithm() 106 const JwtRsaSsaPkcs1Algorithm& algorithm) { in HashForPkcs1Algorithm() 108 case JwtRsaSsaPkcs1Algorithm::RS256: in HashForPkcs1Algorithm() 110 case JwtRsaSsaPkcs1Algorithm::RS384: in HashForPkcs1Algorithm() 112 case JwtRsaSsaPkcs1Algorithm::RS512: in HashForPkcs1Algorithm()
|
H A D | raw_jwt_rsa_ssa_pkcs1_sign_key_manager_test.cc | 46 using ::google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 64 JwtRsaSsaPkcs1KeyFormat CreateKeyFormat(JwtRsaSsaPkcs1Algorithm algorithm, in CreateKeyFormat() 79 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 3072, RSA_F4); in TEST() 86 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS384, 3072, RSA_F4); in TEST() 93 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS512, 3072, RSA_F4); in TEST() 100 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS_UNKNOWN, 3072, RSA_F4); in TEST() 107 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 2047, RSA_F4); in TEST() 171 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 3072, RSA_F4); in TEST() 182 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4); in TEST() 194 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS512, 4096, RSA_F4); in TEST() [all …]
|
H A D | jwt_rsa_ssa_pkcs1_sign_verify_key_manager_test.cc | 44 using ::google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 55 JwtRsaSsaPkcs1KeyFormat CreateKeyFormat(JwtRsaSsaPkcs1Algorithm algorithm, in CreateKeyFormat() 104 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4); in TEST() 111 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS384, 3072, RSA_F4); in TEST() 118 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS512, 4096, RSA_F4); in TEST() 125 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4); in TEST() 134 key->mutable_public_key()->set_algorithm(JwtRsaSsaPkcs1Algorithm::RS_UNKNOWN); in TEST() 140 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4); in TEST() 150 public_key->set_algorithm(JwtRsaSsaPkcs1Algorithm::RS_UNKNOWN); in TEST() 156 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4); in TEST() [all …]
|
H A D | raw_jwt_rsa_ssa_pkcs1_verify_key_manager_test.cc | 49 using ::google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 75 JwtRsaSsaPkcs1KeyFormat CreateKeyFormat(JwtRsaSsaPkcs1Algorithm algorithm, in CreateKeyFormat() 89 return CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 3072, RSA_F4); in ValidKeyFormat() 117 key.set_algorithm(JwtRsaSsaPkcs1Algorithm::RS_UNKNOWN); in TEST() 133 CreateKeyFormat(JwtRsaSsaPkcs1Algorithm::RS256, 3072, RSA_F4); in TEST() 174 JwtRsaSsaPkcs1Algorithm algorithm; in TEST() 202 JwtRsaSsaPkcs1Algorithm::RS256}; in TEST() 205 key.set_algorithm(JwtRsaSsaPkcs1Algorithm::RS256); in TEST()
|
H A D | jwt_rsa_ssa_pkcs1_verify_key_manager.cc | 30 using google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 76 const JwtRsaSsaPkcs1Algorithm& algorithm) { in AlgorithmName() 78 case JwtRsaSsaPkcs1Algorithm::RS256: in AlgorithmName() 80 case JwtRsaSsaPkcs1Algorithm::RS384: in AlgorithmName() 82 case JwtRsaSsaPkcs1Algorithm::RS512: in AlgorithmName()
|
H A D | raw_jwt_rsa_ssa_pkcs1_verify_key_manager.h | 71 const google::crypto::tink::JwtRsaSsaPkcs1Algorithm& algorithm); 75 const google::crypto::tink::JwtRsaSsaPkcs1Algorithm& algorithm);
|
H A D | jwt_rsa_ssa_pkcs1_verify_key_manager.h | 64 const google::crypto::tink::JwtRsaSsaPkcs1Algorithm& algorithm);
|
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/jwt/ |
H A D | JwtRsaSsaPkcs1SignKeyManager.java | 25 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 70 JwtRsaSsaPkcs1Algorithm algorithm = keyProto.getPublicKey().getAlgorithm(); in selfTestKey() 103 JwtRsaSsaPkcs1Algorithm algorithm = keyProto.getPublicKey().getAlgorithm(); in getPrimitive() 201 JwtRsaSsaPkcs1Algorithm algorithm = format.getAlgorithm(); 243 JwtRsaSsaPkcs1Algorithm.RS256, 250 JwtRsaSsaPkcs1Algorithm.RS256, 257 JwtRsaSsaPkcs1Algorithm.RS256, 264 JwtRsaSsaPkcs1Algorithm.RS256, 271 JwtRsaSsaPkcs1Algorithm.RS384, 278 JwtRsaSsaPkcs1Algorithm.RS384, [all …]
|
H A D | JwtRsaSsaPkcs1ProtoSerialization.java | 32 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 99 JwtRsaSsaPkcs1Algorithm, JwtRsaSsaPkcs1Parameters.Algorithm> 102 .<JwtRsaSsaPkcs1Algorithm, JwtRsaSsaPkcs1Parameters.Algorithm>builder() 103 .add(JwtRsaSsaPkcs1Algorithm.RS256, JwtRsaSsaPkcs1Parameters.Algorithm.RS256) 104 .add(JwtRsaSsaPkcs1Algorithm.RS384, JwtRsaSsaPkcs1Parameters.Algorithm.RS384) 105 .add(JwtRsaSsaPkcs1Algorithm.RS512, JwtRsaSsaPkcs1Parameters.Algorithm.RS512)
|
H A D | JwkSetConverter.java | 26 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 366 JwtRsaSsaPkcs1Algorithm algorithm; in convertToRsaSsaPkcs1Key() 369 algorithm = JwtRsaSsaPkcs1Algorithm.RS256; in convertToRsaSsaPkcs1Key() 372 algorithm = JwtRsaSsaPkcs1Algorithm.RS384; in convertToRsaSsaPkcs1Key() 375 algorithm = JwtRsaSsaPkcs1Algorithm.RS512; in convertToRsaSsaPkcs1Key()
|
H A D | JwtRsaSsaPkcs1VerifyKeyManager.java | 22 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 48 public static Enums.HashType hashForPkcs1Algorithm(JwtRsaSsaPkcs1Algorithm algorithm) in hashForPkcs1Algorithm()
|
/aosp_15_r20/external/tink/java_src/src/test/java/com/google/crypto/tink/jwt/ |
H A D | JwtRsaSsaPkcs1SignKeyManagerTest.java | 31 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 79 JwtRsaSsaPkcs1Algorithm algorithm, int modulusSizeInBits, BigInteger publicExponent) { in createKeyFormat() 88 public static final JwtRsaSsaPkcs1Algorithm[] ALGO_PARAMETER = 89 new JwtRsaSsaPkcs1Algorithm[] { 90 JwtRsaSsaPkcs1Algorithm.RS256, JwtRsaSsaPkcs1Algorithm.RS384, JwtRsaSsaPkcs1Algorithm.RS512 124 @FromDataPoints("algorithmParam") JwtRsaSsaPkcs1Algorithm algorithm, in validateKeyFormat_ok() 142 @FromDataPoints("algorithmParam") JwtRsaSsaPkcs1Algorithm algorithm) in invalidKeyFormat_smallKey_throw() 151 @FromDataPoints("algorithmParam") JwtRsaSsaPkcs1Algorithm algorithm, in invalidKeyFormat_smallPublicExponents_throw() 188 public void createKeys_ok(@FromDataPoints("algorithmParam") JwtRsaSsaPkcs1Algorithm algorithm) in createKeys_ok() 213 createKeyFormat(JwtRsaSsaPkcs1Algorithm.RS256, 2048, RSAKeyGenParameterSpec.F4); in createKey_alwaysNewElement_ok() [all …]
|
H A D | JwtRsaSsaPkcs1ProtoSerializationTest.java | 31 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 118 final JwtRsaSsaPkcs1Algorithm protoAlgorithm; 121 JwtRsaSsaPkcs1Parameters.Algorithm algorithm, JwtRsaSsaPkcs1Algorithm protoAlgorithm) { in AlgorithmTuple() 130 new AlgorithmTuple(JwtRsaSsaPkcs1Parameters.Algorithm.RS256, JwtRsaSsaPkcs1Algorithm.RS256), 131 new AlgorithmTuple(JwtRsaSsaPkcs1Parameters.Algorithm.RS384, JwtRsaSsaPkcs1Algorithm.RS384), 132 new AlgorithmTuple(JwtRsaSsaPkcs1Parameters.Algorithm.RS512, JwtRsaSsaPkcs1Algorithm.RS512), 186 .setAlgorithm(JwtRsaSsaPkcs1Algorithm.RS256) in serializeParseParameters_kidStrategyBase64_works() 221 .setAlgorithm(JwtRsaSsaPkcs1Algorithm.RS512) in parseParameters_crunchy_cannotBeParsed_throws() 283 .setAlgorithm(JwtRsaSsaPkcs1Algorithm.RS256) in serializeParsePublicKey_kidCustom_equal() 323 .setAlgorithm(JwtRsaSsaPkcs1Algorithm.RS256) in serializeParsePublicKey_base64Kid_equal() [all …]
|
H A D | JwtRsaSsaPkcs1VerifyKeyManagerTest.java | 22 import com.google.crypto.tink.proto.JwtRsaSsaPkcs1Algorithm; 47 public static final JwtRsaSsaPkcs1Algorithm[] ALGO_PARAMETER = 48 new JwtRsaSsaPkcs1Algorithm[] { 49 JwtRsaSsaPkcs1Algorithm.RS256, JwtRsaSsaPkcs1Algorithm.RS384, JwtRsaSsaPkcs1Algorithm.RS512 73 @FromDataPoints("algorithmParam") JwtRsaSsaPkcs1Algorithm algorithm, in validateKey_ok()
|
/aosp_15_r20/external/tink/cc/jwt/ |
H A D | jwt_key_templates.cc | 37 using ::google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 75 KeyTemplate* NewJwtRsaSsaPkcs1KeyTemplate(JwtRsaSsaPkcs1Algorithm algorithm, in NewJwtRsaSsaPkcs1KeyTemplate() 191 JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4, OutputPrefixType::TINK); in JwtRs256_2048_F4_Template() 197 JwtRsaSsaPkcs1Algorithm::RS256, 2048, RSA_F4, OutputPrefixType::RAW); in RawJwtRs256_2048_F4_Template() 203 JwtRsaSsaPkcs1Algorithm::RS256, 3072, RSA_F4, OutputPrefixType::TINK); in JwtRs256_3072_F4_Template() 209 JwtRsaSsaPkcs1Algorithm::RS256, 3072, RSA_F4, OutputPrefixType::RAW); in RawJwtRs256_3072_F4_Template() 215 JwtRsaSsaPkcs1Algorithm::RS384, 3072, RSA_F4, OutputPrefixType::TINK); in JwtRs384_3072_F4_Template() 221 JwtRsaSsaPkcs1Algorithm::RS384, 3072, RSA_F4, OutputPrefixType::RAW); in RawJwtRs384_3072_F4_Template() 227 JwtRsaSsaPkcs1Algorithm::RS512, 4096, RSA_F4, OutputPrefixType::TINK); in JwtRs512_4096_F4_Template() 233 JwtRsaSsaPkcs1Algorithm::RS512, 4096, RSA_F4, OutputPrefixType::RAW); in RawJwtRs512_4096_F4_Template()
|
H A D | jwk_set_converter.cc | 42 using ::google::crypto::tink::JwtRsaSsaPkcs1Algorithm; 134 public_key_proto.set_algorithm(JwtRsaSsaPkcs1Algorithm::RS256); in RsPublicKeyDataFromKeyStruct() 136 public_key_proto.set_algorithm(JwtRsaSsaPkcs1Algorithm::RS384); in RsPublicKeyDataFromKeyStruct() 138 public_key_proto.set_algorithm(JwtRsaSsaPkcs1Algorithm::RS512); in RsPublicKeyDataFromKeyStruct() 501 case JwtRsaSsaPkcs1Algorithm::RS256: in RsPublicKeyToKeyStruct() 504 case JwtRsaSsaPkcs1Algorithm::RS384: in RsPublicKeyToKeyStruct() 507 case JwtRsaSsaPkcs1Algorithm::RS512: in RsPublicKeyToKeyStruct()
|
/aosp_15_r20/external/tink/python/tink/proto/ |
H A D | jwt_rsa_ssa_pkcs1.proto | 26 enum JwtRsaSsaPkcs1Algorithm { enum 36 JwtRsaSsaPkcs1Algorithm algorithm = 2; 80 JwtRsaSsaPkcs1Algorithm algorithm = 2;
|
/aosp_15_r20/external/tink/cc/proto/ |
H A D | jwt_rsa_ssa_pkcs1.proto | 26 enum JwtRsaSsaPkcs1Algorithm { enum 36 JwtRsaSsaPkcs1Algorithm algorithm = 2; 80 JwtRsaSsaPkcs1Algorithm algorithm = 2;
|
/aosp_15_r20/external/tink/java_src/proto/ |
H A D | jwt_rsa_ssa_pkcs1.proto | 26 enum JwtRsaSsaPkcs1Algorithm { enum 36 JwtRsaSsaPkcs1Algorithm algorithm = 2; 80 JwtRsaSsaPkcs1Algorithm algorithm = 2;
|
/aosp_15_r20/external/tink/proto/ |
H A D | jwt_rsa_ssa_pkcs1.proto | 26 enum JwtRsaSsaPkcs1Algorithm { enum 36 JwtRsaSsaPkcs1Algorithm algorithm = 2; 80 JwtRsaSsaPkcs1Algorithm algorithm = 2;
|
/aosp_15_r20/external/tink/go/jwt/ |
H A D | jwk_converter.go | 199 var rsNameToAlg = map[string]jrsppb.JwtRsaSsaPkcs1Algorithm{ 455 var rsAlgToStr map[jrsppb.JwtRsaSsaPkcs1Algorithm]string = map[jrsppb.JwtRsaSsaPkcs1Algorithm]strin…
|
H A D | jwt_rsa_ssa_pkcs1_verifier_key_manager.go | 50 var validRSAlgToHash = map[jrsppb.JwtRsaSsaPkcs1Algorithm]string{
|
H A D | jwt_key_templates.go | 64 func createJWTRSKeyTemplate(algorithm jrsppb.JwtRsaSsaPkcs1Algorithm, modulusSizeInBits uint32, out… argument
|
/aosp_15_r20/external/tink/python/tink/jwt/ |
H A D | _jwt_key_templates.py | 49 algorithm: jwt_rsa_ssa_pkcs1_pb2.JwtRsaSsaPkcs1Algorithm, modulus_size: int, argument
|