Skip to content

Add provider-specific constant ranges#48

Open
cipherboy wants to merge 1 commit intoopenbao:mainfrom
cipherboy:kms-provider-specific
Open

Add provider-specific constant ranges#48
cipherboy wants to merge 1 commit intoopenbao:mainfrom
cipherboy:kms-provider-specific

Conversation

@cipherboy
Copy link
Member

This will allow us to implement compatibility with Wrapper for GCP KMS which currently uses a custom algorithm.

Signed-off-by: Alexander Scheel <ascheel@gitlab.com>
CipherAlgo_RSA

CipherAlgo_Provider_Specific_Base CipherAlgorithm = 65536
CipherAlgo_Provider_Specific_Top CipherAlgorithm = 165536
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, are top values necessary? Is there a concern with [base, max_int]?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@satoqz I guess we can range to max_int, but I'd prefer to give us more headroom and partition halfway in that case. If we have more than 64k algorithms, that's admittedly a lot, but reserving the remaining 64k...4b for provider-specific seems unbalanced.

Thoughts?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷 fine by me.

KeyType_ED_Public
KeyType_ED_Private

KeyType_Provider_Specific_Base KeyType = 65536
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
KeyType_Provider_Specific_Base KeyType = 65536
KeyType_ProviderSpecificBase KeyType = 65536

nit, I think we can omit the underscores here as the identifier isn't made of acronyms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants