/aosp_15_r20/external/tink/cc/jwt/internal/ |
H A D | raw_jwt_ecdsa_verify_key_manager.cc | 42 using google::crypto::tink::JwtEcdsaAlgorithm; 73 const JwtEcdsaAlgorithm& algorithm) { in CurveForEcdsaAlgorithm() 75 case JwtEcdsaAlgorithm::ES256: in CurveForEcdsaAlgorithm() 77 case JwtEcdsaAlgorithm::ES384: in CurveForEcdsaAlgorithm() 79 case JwtEcdsaAlgorithm::ES512: in CurveForEcdsaAlgorithm() 88 const JwtEcdsaAlgorithm& algorithm) { in HashForEcdsaAlgorithm() 90 case JwtEcdsaAlgorithm::ES256: in HashForEcdsaAlgorithm() 92 case JwtEcdsaAlgorithm::ES384: in HashForEcdsaAlgorithm() 94 case JwtEcdsaAlgorithm::ES512: in HashForEcdsaAlgorithm() 103 const JwtEcdsaAlgorithm& algorithm) { in ValidateAlgorithm() [all …]
|
H A D | jwt_ecdsa_sign_verify_key_manager_test.cc | 40 using ::google::crypto::tink::JwtEcdsaAlgorithm; 85 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in TEST() 91 key_format.set_algorithm(JwtEcdsaAlgorithm::ES384); in TEST() 97 key_format.set_algorithm(JwtEcdsaAlgorithm::ES512); in TEST() 103 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in TEST() 112 key->mutable_public_key()->set_algorithm(JwtEcdsaAlgorithm::ES_UNKNOWN); in TEST() 118 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in TEST() 127 public_key->set_algorithm(JwtEcdsaAlgorithm::ES_UNKNOWN); in TEST() 133 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in TEST() 203 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in TEST() [all …]
|
H A D | jwt_ecdsa_verify_key_manager.cc | 31 using google::crypto::tink::JwtEcdsaAlgorithm; 74 const JwtEcdsaAlgorithm& algorithm) { in AlgorithmName() 76 case JwtEcdsaAlgorithm::ES256: in AlgorithmName() 78 case JwtEcdsaAlgorithm::ES384: in AlgorithmName() 80 case JwtEcdsaAlgorithm::ES512: in AlgorithmName()
|
H A D | raw_jwt_ecdsa_verify_key_manager.h | 65 const google::crypto::tink::JwtEcdsaAlgorithm& algorithm); 69 const google::crypto::tink::JwtEcdsaAlgorithm& algorithm); 73 const google::crypto::tink::JwtEcdsaAlgorithm& algorithm);
|
H A D | raw_jwt_ecdsa_sign_key_manager_test.cc | 47 using ::google::crypto::tink::JwtEcdsaAlgorithm; 75 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in CreateValidEs256KeyFormat() 86 key_format.set_algorithm(JwtEcdsaAlgorithm::ES_UNKNOWN); in TEST() 130 key.mutable_public_key()->set_algorithm(JwtEcdsaAlgorithm::ES_UNKNOWN); in TEST()
|
H A D | raw_jwt_ecdsa_verify_key_manager_test.cc | 49 using ::google::crypto::tink::JwtEcdsaAlgorithm; 72 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in CreateValidEs256PrivateKey() 90 key.set_algorithm(JwtEcdsaAlgorithm::ES_UNKNOWN); in TEST()
|
H A D | jwt_ecdsa_verify_key_manager.h | 64 const google::crypto::tink::JwtEcdsaAlgorithm& algorithm);
|
H A D | jwt_public_key_wrappers_test.cc | 40 using ::google::crypto::tink::JwtEcdsaAlgorithm; 63 key_format.set_algorithm(JwtEcdsaAlgorithm::ES256); in CreateTemplate()
|
/aosp_15_r20/external/tink/go/proto/jwt_ecdsa_go_proto/ |
H A D | jwt_ecdsa.pb.go | 40 type JwtEcdsaAlgorithm int32 type 43 JwtEcdsaAlgorithm_ES_UNKNOWN JwtEcdsaAlgorithm = 0 44 JwtEcdsaAlgorithm_ES256 JwtEcdsaAlgorithm = 1 // ECDSA using P-256 and SHA-256 45 JwtEcdsaAlgorithm_ES384 JwtEcdsaAlgorithm = 2 // ECDSA using P-384 and SHA-384 46 JwtEcdsaAlgorithm_ES512 JwtEcdsaAlgorithm = 3 // ECDSA using P-521 and SHA-512 65 func (x JwtEcdsaAlgorithm) Enum() *JwtEcdsaAlgorithm { 66 p := new(JwtEcdsaAlgorithm) 71 func (x JwtEcdsaAlgorithm) String() string { 75 func (JwtEcdsaAlgorithm) Descriptor() protoreflect.EnumDescriptor { 79 func (JwtEcdsaAlgorithm) Type() protoreflect.EnumType { [all …]
|
/aosp_15_r20/external/tink/java_src/src/test/java/com/google/crypto/tink/jwt/ |
H A D | JwtEcdsaVerifyKeyManagerTest.java | 22 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 46 public static final JwtEcdsaAlgorithm[] PARAMETERS_ALGOS = 47 new JwtEcdsaAlgorithm[] { 48 JwtEcdsaAlgorithm.ES256, JwtEcdsaAlgorithm.ES384, JwtEcdsaAlgorithm.ES512 68 public void validateKey_ok(@FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) in validateKey_ok() 82 public void createPrimitive_ok(@FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) in createPrimitive_ok() 105 @FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) throws Exception { in createPrimitive_anotherKey_throw()
|
H A D | JwtEcdsaProtoSerializationTest.java | 30 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 71 .setAlgorithm(JwtEcdsaAlgorithm.ES256) in serializeParseParameters_kidStrategyIsIgnored_works() 96 .setAlgorithm(JwtEcdsaAlgorithm.ES256) in serializeParseParameters_kidStrategyBase64_works() 121 .setAlgorithm(JwtEcdsaAlgorithm.ES384) in serializeParseParameters_kidStrategyIsIgnored_es384_works() 146 .setAlgorithm(JwtEcdsaAlgorithm.ES512) in serializeParseParameters_kidStrategyIsIgnored_es512_works() 179 .setAlgorithm(JwtEcdsaAlgorithm.ES512) in parseParameters_crunchy_cannotBeParsed_throws() 206 .setAlgorithm(JwtEcdsaAlgorithm.ES256) in serializeParsePublicKey_es256_kidIgnored_equal() 250 .setAlgorithm(JwtEcdsaAlgorithm.ES384) in serializeParsePublicKey_es384_kidIgnored_equal() 295 .setAlgorithm(JwtEcdsaAlgorithm.ES512) in serializeParsePublicKey_es521_kidIgnored_equal() 323 .setAlgorithm(JwtEcdsaAlgorithm.ES512) in serializeParsePublicKey_es521_kidIgnored_equal() [all …]
|
H A D | JwtEcdsaSignKeyManagerTest.java | 28 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 74 private static JwtEcdsaKeyFormat createKeyFormat(JwtEcdsaAlgorithm algorithm) { in createKeyFormat() 79 public static final JwtEcdsaAlgorithm[] PARAMETERS_ALGOS = 80 new JwtEcdsaAlgorithm[] { 81 JwtEcdsaAlgorithm.ES256, JwtEcdsaAlgorithm.ES384, JwtEcdsaAlgorithm.ES512 107 public void validateKeyFormat_ok(@FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) in validateKeyFormat_ok() 119 public void createKeys_ok(@FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) in createKeys_ok() 130 @FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) throws Exception { in createKey_alwaysNewElement_ok() 147 @FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) throws Exception { in getPublicKey_checkValues() 157 @FromDataPoints("parametersAlgos") JwtEcdsaAlgorithm algorithm) throws Exception { in createCorruptedPublicKeyPrimitive_throws() [all …]
|
/aosp_15_r20/external/tink/java_src/src/main/java/com/google/crypto/tink/jwt/ |
H A D | JwtEcdsaSignKeyManager.java | 25 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 88 JwtEcdsaAlgorithm algorithm = keyProto.getPublicKey().getAlgorithm(); in getPrimitive() 173 JwtEcdsaAlgorithm ecdsaAlgorithm = format.getAlgorithm(); 206 createKeyFormat(JwtEcdsaAlgorithm.ES256, KeyTemplate.OutputPrefixType.RAW)); 209 createKeyFormat(JwtEcdsaAlgorithm.ES256, KeyTemplate.OutputPrefixType.TINK)); 212 createKeyFormat(JwtEcdsaAlgorithm.ES384, KeyTemplate.OutputPrefixType.RAW)); 215 createKeyFormat(JwtEcdsaAlgorithm.ES384, KeyTemplate.OutputPrefixType.TINK)); 218 createKeyFormat(JwtEcdsaAlgorithm.ES512, KeyTemplate.OutputPrefixType.RAW)); 221 createKeyFormat(JwtEcdsaAlgorithm.ES512, KeyTemplate.OutputPrefixType.TINK)); 238 JwtEcdsaAlgorithm algorithm, KeyTemplate.OutputPrefixType prefixType) {
|
H A D | JwtEcdsaVerifyKeyManager.java | 22 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 44 static final EllipticCurves.CurveType getCurve(JwtEcdsaAlgorithm algorithm) in getCurve() 58 public static Enums.HashType hashForEcdsaAlgorithm(JwtEcdsaAlgorithm algorithm) in hashForEcdsaAlgorithm() 72 static final void validateEcdsaAlgorithm(JwtEcdsaAlgorithm algorithm) in validateEcdsaAlgorithm()
|
H A D | JwtEcdsaProtoSerialization.java | 31 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 96 private static JwtEcdsaAlgorithm toProtoAlgorithm(JwtEcdsaParameters.Algorithm algorithm) in toProtoAlgorithm() 99 return JwtEcdsaAlgorithm.ES256; in toProtoAlgorithm() 102 return JwtEcdsaAlgorithm.ES384; in toProtoAlgorithm() 105 return JwtEcdsaAlgorithm.ES512; in toProtoAlgorithm() 110 private static JwtEcdsaParameters.Algorithm toAlgorithm(JwtEcdsaAlgorithm algorithm) in toAlgorithm()
|
H A D | JwkSetConverter.java | 24 import com.google.crypto.tink.proto.JwtEcdsaAlgorithm; 462 JwtEcdsaAlgorithm algorithm; in convertToEcdsaKey() 466 algorithm = JwtEcdsaAlgorithm.ES256; in convertToEcdsaKey() 470 algorithm = JwtEcdsaAlgorithm.ES384; in convertToEcdsaKey() 474 algorithm = JwtEcdsaAlgorithm.ES512; in convertToEcdsaKey()
|
/aosp_15_r20/external/tink/cc/jwt/ |
H A D | jwt_key_templates.cc | 33 using ::google::crypto::tink::JwtEcdsaAlgorithm; 63 KeyTemplate* NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm algorithm, in NewJwtEcdsaKeyTemplate() 155 NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm::ES256, OutputPrefixType::TINK); in JwtEs256Template() 161 NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm::ES256, OutputPrefixType::RAW); in RawJwtEs256Template() 167 NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm::ES384, OutputPrefixType::TINK); in JwtEs384Template() 173 NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm::ES384, OutputPrefixType::RAW); in RawJwtEs384Template() 179 NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm::ES512, OutputPrefixType::TINK); in JwtEs512Template() 185 NewJwtEcdsaKeyTemplate(JwtEcdsaAlgorithm::ES512, OutputPrefixType::RAW); in RawJwtEs512Template()
|
H A D | jwk_set_converter.cc | 46 using ::google::crypto::tink::JwtEcdsaAlgorithm; 290 public_key_proto.set_algorithm(JwtEcdsaAlgorithm::ES256); in EsPublicKeyDataFromKeyStruct() 296 public_key_proto.set_algorithm(JwtEcdsaAlgorithm::ES384); in EsPublicKeyDataFromKeyStruct() 302 public_key_proto.set_algorithm(JwtEcdsaAlgorithm::ES512); in EsPublicKeyDataFromKeyStruct() 458 case JwtEcdsaAlgorithm::ES256: in EsPublicKeyToKeyStruct() 462 case JwtEcdsaAlgorithm::ES384: in EsPublicKeyToKeyStruct() 466 case JwtEcdsaAlgorithm::ES512: in EsPublicKeyToKeyStruct()
|
/aosp_15_r20/external/tink/cc/proto/ |
H A D | jwt_ecdsa.proto | 26 enum JwtEcdsaAlgorithm { enum 36 JwtEcdsaAlgorithm algorithm = 2; 60 JwtEcdsaAlgorithm algorithm = 2;
|
/aosp_15_r20/external/tink/python/tink/proto/ |
H A D | jwt_ecdsa.proto | 26 enum JwtEcdsaAlgorithm { enum 36 JwtEcdsaAlgorithm algorithm = 2; 60 JwtEcdsaAlgorithm algorithm = 2;
|
/aosp_15_r20/external/tink/java_src/proto/ |
H A D | jwt_ecdsa.proto | 26 enum JwtEcdsaAlgorithm { enum 36 JwtEcdsaAlgorithm algorithm = 2; 60 JwtEcdsaAlgorithm algorithm = 2;
|
/aosp_15_r20/external/tink/proto/ |
H A D | jwt_ecdsa.proto | 26 enum JwtEcdsaAlgorithm { enum 36 JwtEcdsaAlgorithm algorithm = 2; 60 JwtEcdsaAlgorithm algorithm = 2;
|
/aosp_15_r20/external/tink/go/jwt/ |
H A D | jwt_ecdsa_verifier_key_manager_test.go | 77 func createECDSAPublicKey(algorithm jepb.JwtEcdsaAlgorithm, kid *string, version uint32) (*jepb.Jwt… argument 100 func createECDSASerializedPublicKey(algorithm jepb.JwtEcdsaAlgorithm, kid *string, version uint32) … argument
|
H A D | jwt_ecdsa_signer_key_manager_test.go | 67 func createECDSASerializedKeyFormat(algorithm jepb.JwtEcdsaAlgorithm, version uint32) ([]byte, erro… argument 92 algorithm jepb.JwtEcdsaAlgorithm
|
H A D | jwt_ecdsa_verifier_key_manager.go | 53 var esAlgToParams = map[jepb.JwtEcdsaAlgorithm]ecdsaParams{
|