Re: mVisa Receive-Side Shared Secret Key Length

API_Products
Visa Developer Support Specialist

Re: mVisa Receive-Side Shared Secret Key Length

Hey @josh,

 

Visa Direct offers secure digital payments.

 

Digital payment solutions can use Visa Direct to send funds directly to financial accounts - quickly, simply, and securely.

 

Visa Direct offers security with a safe way to pay your customers, backed by Visa’s leading payment security.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

sukson
Regular Visitor

Re: mVisa Receive-Side Shared Secret Key Length

Hi, have you found the solution/answer for this question?
I have the same problem but couldn't find any good answer. Pls share if you found one. Thanks in advance.

API_Products
Visa Developer Support Specialist

Re: mVisa Receive-Side Shared Secret Key Length

Hey @sukson,

 

Can you please let us know what the problem is? I'd be happy to help.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

terryvoice
Newbie

Re: mVisa Receive-Side Shared Secret Key Length

The shared secret key's length of 40 bytes that you received for mVisa Receive Side API might include additional components beyond just the raw AES encryption key. In cryptographic contexts, key lengths are often specified in bits, and when dealing with AES-256, it corresponds to a key length of 256 bits or 32 bytes.

 

However, the length of a key in a cryptographic system can sometimes include additional elements, such as salt values, initialization vectors, or other metadata that are used in the encryption or decryption process. These additional components are not the actual key used for the encryption algorithm but are necessary for the correct functioning of the cryptographic scheme.

In your case, the extra 8 bytes (40 bytes - 32 bytes) might be accounted for by such additional components. It's crucial to follow the documentation provided by mVisa or consult with their support to understand the specifics of the key format and whether there are additional components included in the shared secret key.

 

In cryptographic systems, the key derivation process and key handling mechanisms can vary between implementations, and it's not uncommon to have a key structure that includes more than just the raw key material. Always refer to the official documentation or contact the provider for accurate information about key formats and lengths.