000011662 - RKM Client: How to set output size (header format)

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000011662
Applies ToRSA Key Manager Client
IssueRKM Client: How to set output size (header format)
Size of encrypted data in 2.x is greater than in 1.5.x
Cause

RKM Client 2.x uses a different output format than RKM Client 1.5.x.  This is because there is new key ID (UUID and MUID) that is longer, and optional aliases and attributes for the keys.

If you require the 1.5.x format, you can call a function or method to set the header format.

Resolution

In RKM C# Client:

Call

  Rsa.KeyManagerClient.RkmContext.EncryptByClass()

 

with the third parameter set to

  RkmCryptoFormatIdentifier.Ver151

or

  RkmCryptoFormatIdentifier.Ver151_Base64.

 

This is not in the KM_Client_Wrapper API, but you can use code similar to the samples\EncryptionAndDecryption\EncryptionAndDecryption.cs sample program.

Legacy Article IDa56911

Attachments

    Outcomes