platform icon indicating copy to clipboard operation
platform copied to clipboard

feat(core): KID in NanoTDF Policy Key Access

Open pflynn-virtru opened this issue 1 year ago • 0 comments

Policy Key Access support See https://github.com/opentdf/spec/tree/main/schema/nanotdf#342323-optional-policy-key-access

Added a new function lookupKidByPublicKey to the Provider in the KAS service, which looks up the key ID based on the provided public key. This function is utilized for key ID lookup in the NanoTDF rewrap method instead of the previous method. Also, included the PublicKeyBytes in the NanoTDF struct and other relevant areas. Moreover, created GetECCompressedKeyLengthFromECCMode in the EC Key Pair to extract the length of the compressed key given an ECC mode. The new approach allows us to associate public keys with their respective key IDs more efficiently.

#900 #717 #1203

pflynn-virtru avatar Jul 23 '24 19:07 pflynn-virtru