From caeb47c64022337903246ea08cd8db65383db631 Mon Sep 17 00:00:00 2001 From: Hugues de Valon Date: Tue, 22 Oct 2019 11:55:33 +0100 Subject: [PATCH] Remove references to key lifetime This change makes the operations simpler by removing the KeyLifetime attribute of the keys. The choice between using permanent or volatile keys is now going to be done at the provider level with providers using either volatile or permanent keys. Signed-off-by: Hugues de Valon --- protobuf/asym_sign.proto | 6 ++---- protobuf/asym_verify.proto | 6 ++---- protobuf/destroy_key.proto | 6 ++---- protobuf/export_public_key.proto | 6 ++---- protobuf/key_attributes.proto | 9 ++------- 5 files changed, 10 insertions(+), 23 deletions(-) diff --git a/protobuf/asym_sign.proto b/protobuf/asym_sign.proto index 98e7993..c088176 100644 --- a/protobuf/asym_sign.proto +++ b/protobuf/asym_sign.proto @@ -16,16 +16,14 @@ */ syntax = "proto3"; -import "key_attributes.proto"; - package asym_sign; message OpAsymmetricSignProto { string key_name = 1; - key_attributes.KeyLifetime key_lifetime = 2; + reserved 2; bytes hash = 3; } message ResultAsymmetricSignProto { bytes signature = 1; -} \ No newline at end of file +} diff --git a/protobuf/asym_verify.proto b/protobuf/asym_verify.proto index 5c95723..06fdd24 100644 --- a/protobuf/asym_verify.proto +++ b/protobuf/asym_verify.proto @@ -16,15 +16,13 @@ */ syntax = "proto3"; -import "key_attributes.proto"; - package asym_verify; message OpAsymmetricVerifyProto { string key_name = 1; - key_attributes.KeyLifetime key_lifetime = 2; + reserved 2; bytes hash = 3; bytes signature = 4; } -message ResultAsymmetricVerifyProto { } \ No newline at end of file +message ResultAsymmetricVerifyProto { } diff --git a/protobuf/destroy_key.proto b/protobuf/destroy_key.proto index fbb5cd1..d8c91d7 100644 --- a/protobuf/destroy_key.proto +++ b/protobuf/destroy_key.proto @@ -16,13 +16,11 @@ */ syntax = "proto3"; -import "key_attributes.proto"; - package destroy_key; message OpDestroyKeyProto { string key_name = 1; - key_attributes.KeyLifetime key_lifetime = 2; + reserved 2; } -message ResultDestroyKeyProto { } \ No newline at end of file +message ResultDestroyKeyProto { } diff --git a/protobuf/export_public_key.proto b/protobuf/export_public_key.proto index 6d598b7..8adfdda 100644 --- a/protobuf/export_public_key.proto +++ b/protobuf/export_public_key.proto @@ -16,15 +16,13 @@ */ syntax = "proto3"; -import "key_attributes.proto"; - package export_public_key; message OpExportPublicKeyProto { string key_name = 1; - key_attributes.KeyLifetime key_lifetime = 2; + reserved 2; } message ResultExportPublicKeyProto { bytes key_data = 1; -} \ No newline at end of file +} diff --git a/protobuf/key_attributes.proto b/protobuf/key_attributes.proto index 801638c..2da7e31 100644 --- a/protobuf/key_attributes.proto +++ b/protobuf/key_attributes.proto @@ -18,11 +18,6 @@ syntax = "proto3"; package key_attributes; -enum KeyLifetime { - Volatile = 0; - Persistent = 1; -} - enum KeyType { HMAC_Key = 0; Derivation_Key = 1; @@ -171,7 +166,7 @@ message KeyAgreement { } message KeyAttributesProto { - KeyLifetime key_lifetime = 1; + reserved 1; KeyType key_type = 2; EccCurve ecc_curve = 3; oneof algorithm_proto { @@ -191,4 +186,4 @@ message KeyAttributesProto { bool permit_sign = 8; bool permit_verify = 9; bool permit_derive = 10; -} \ No newline at end of file +}