@@ -3,79 +3,52 @@ package kms_service.v1;
33
44import "kms.v1.proto" ;
55
6+ // WARNING: This service is insecure and should not be used in production.
7+ //
8+ // Since this is the insecure endpoint, we do not duplicate
9+ // the documentation. Please see the documentation of the secure endpoint.
10+ // All insecure RPCs (i.e., the ones that have `Insecure` in the prefix)
11+ // have the same semantics as the secure ones.
612service CoreServiceEndpoint {
7- // Perform the threshold KMS initialization.
8- // This call returns an error on the centralized KMS.
913 rpc Init (kms.v1.InitRequest ) returns (kms.v1.Empty );
1014
11- // Start generating preprocessing materials for key generation asynchronously.
12- // This call returns an error on the centralized KMS.
1315 rpc KeyGenPreproc (kms.v1.KeyGenPreprocRequest ) returns (kms.v1.Empty );
1416
15- // This call returns an error on the centralized KMS.
1617 rpc GetKeyGenPreprocResult (kms.v1.RequestId ) returns (kms.v1.KeyGenPreprocResult );
1718
18- // Generate new keys asynchronously.
1919 rpc KeyGen (kms.v1.KeyGenRequest ) returns (kms.v1.Empty );
2020
21- // Return a URI where they can be accessed.
22- // The keys at the URI contains signature and authentication information.
23- // NOTE: Unprivileged and insecure call
2421 rpc GetKeyGenResult (kms.v1.RequestId ) returns (kms.v1.KeyGenResult );
2522
26- // Generate new keys asynchronously.
2723 rpc InsecureKeyGen (kms.v1.KeyGenRequest ) returns (kms.v1.Empty );
2824
29- // Return a URI where they can be accessed.
30- // The keys at the URI contains signature and authentication information.
31- // NOTE: Unprivileged and insecure call
3225 rpc GetInsecureKeyGenResult (kms.v1.RequestId ) returns (kms.v1.KeyGenResult );
3326
34- // Perform public decryption of a ciphertext and return the signed plaintext.
3527 rpc PublicDecrypt (kms.v1.PublicDecryptionRequest ) returns (kms.v1.Empty );
3628
37- // Get the public decryption result.
38- // This query fails if the result is not available yet.
3929 rpc GetPublicDecryptionResult (kms.v1.RequestId ) returns (kms.v1.PublicDecryptionResponse );
4030
41- // Perform user decryption of a ciphertext under a user-specified key and return a signcrypted
42- // share of the decrypted plaintext.
4331 rpc UserDecrypt (kms.v1.UserDecryptionRequest ) returns (kms.v1.Empty );
4432
45- // Get the user decryption result.
46- // This query fails if the result is not available yet.
4733 rpc GetUserDecryptionResult (kms.v1.RequestId ) returns (kms.v1.UserDecryptionResponse );
4834
49- // Start the CRS generation protocol asynchronously.
5035 rpc CrsGen (kms.v1.CrsGenRequest ) returns (kms.v1.Empty );
5136
52- // Get a reference to the CRS.
53- // This query fails if the result is not available yet.
5437 rpc GetCrsGenResult (kms.v1.RequestId ) returns (kms.v1.CrsGenResult );
5538
56- // Start the insecure CRS generation protocol asynchronously.
5739 rpc InsecureCrsGen (kms.v1.CrsGenRequest ) returns (kms.v1.Empty );
5840
59- // Get a reference to the insecure CRS.
60- // This query fails if the result is not available yet.
6141 rpc GetInsecureCrsGenResult (kms.v1.RequestId ) returns (kms.v1.CrsGenResult );
6242
63- // Create a new KMS context, it may be created without an existing one.
6443 rpc NewKmsContext (kms.v1.NewKmsContextRequest ) returns (kms.v1.Empty );
6544
66- // Destroy an existing KMS context.
6745 rpc DestroyKmsContext (kms.v1.DestroyKmsContextRequest ) returns (kms.v1.Empty );
6846
69- // Create a new custodian context, it may be created without an existing one.
7047 rpc NewCustodianContext (kms.v1.NewCustodianContextRequest ) returns (kms.v1.Empty );
7148
72- // Destroy an existing custodian context.
7349 rpc DestroyCustodianContext (kms.v1.DestroyCustodianContextRequest ) returns (kms.v1.Empty );
7450
75- // Get the public key that a custodian can use to encrypt a backup share
76- // before sending it to the KMS.
7751 rpc GetOperatorPublicKey (kms.v1.Empty ) returns (kms.v1.OperatorPublicKey );
7852
79- // Restore the contents of the KMS private storage from custodian backup shares.
8053 rpc CustodianBackupRestore (kms.v1.Empty ) returns (kms.v1.Empty );
8154}
0 commit comments