github.com/microsoft/moc@v0.17.1/rpc/common/moc_common_security.proto (about) 1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the Apache v2.0 license. 3 4 syntax = "proto3"; 5 option go_package = "github.com/microsoft/moc/rpc/common"; 6 7 package moc; 8 9 import "moc_common_common.proto"; 10 11 enum Algorithm { 12 A_UNKNOWN = 0; 13 RSA15 = 1; 14 RSAOAEP = 2; 15 RSAOAEP256 = 3; 16 A256KW = 4; 17 A256CBC = 5; 18 } 19 20 enum JSONWebKeySignatureAlgorithm { 21 RSNULL = 0; 22 ES256 = 1; 23 ES256K = 2; 24 ES384 = 3; 25 ES512 = 4; 26 PS256 = 5; 27 PS384 = 6; 28 PS512 = 7; 29 RS256 = 8; 30 RS384 = 9; 31 RS512 = 10; 32 } 33 34 enum KeyOperation { 35 ENCRYPT = 0 [deprecated=true]; 36 DECRYPT = 1 [deprecated=true]; 37 WRAPKEY = 2 [deprecated=true]; 38 UNWRAPKEY = 3 [deprecated=true]; 39 SIGN = 4 [deprecated=true]; 40 VERIFY = 5 [deprecated=true]; 41 } 42 43 // https://docs.microsoft.com/en-us/rest/api/keyvault/createkey/createkey#jsonwebkeytype 44 enum JsonWebKeyType { 45 EC = 0; 46 EC_HSM = 1; 47 RSA = 2; 48 RSA_HSM = 3; 49 OCT = 4; 50 AES = 5; 51 } 52 53 enum JsonWebKeyCurveName { 54 P_256 = 0; 55 P_256K = 1; 56 P_384 = 2; 57 P_521 = 3; 58 } 59 60 enum KeySize { 61 K_UNKNOWN = 0; 62 _256 = 1; 63 _2048 = 2; 64 _3072 = 3; 65 _4096 = 4; 66 } 67 68 enum IdentityOperation { 69 REVOKE = 0 [deprecated=true]; 70 ROTATE = 1 [deprecated=true]; 71 } 72 73 enum IdentityCertificateOperation { 74 CREATE_CERTIFICATE = 0 [deprecated=true]; 75 RENEW_CERTIFICATE = 1 [deprecated=true]; 76 } 77 78 enum KeyWrappingAlgorithm { 79 CKM_RSA_AES_KEY_WRAP = 0; 80 RSA_AES_KEY_WRAP_256 = 1; 81 RSA_AES_KEY_WRAP_384 = 2; 82 } 83 84 message Scope { 85 string location = 1; 86 string resourceGroup = 2; 87 ProviderType providerType = 3; 88 string resource = 4; 89 }