I have the task of transferring small binary messages (1 or 2 kilobytes long) between a desktop application and mobile devices. Messages should be encrypted asymmetrically (for example, RSA). From what I learned, you should use a hybrid cryptosystem for this kind of task:
I would not want to invent my own format for storing encrypted text and an encrypted symmetric key. So I came across the CMS standard (cryptographic message syntax). At first glance, it looks exactly the way I need it. If I understand the standard correctly, it enters ciphertext and an encrypted symmetric key, as well as information about the algorithms used.
Can anyone tell if the CMS standard should be used for the intended task? Is OpenSSL CMS support sufficient for my needs?
Cheers, Christian
CMS , . , CMS, API OpenSSL .
- CMS, X.509, . PKI, ( RSA, , ).
OpenSSL API CMS; , , cms.c apps/ OpenSSL; 1000 , , , , , .
Source: https://habr.com/ru/post/1709768/More articles:Is there a way to reorder the fields in the source SSIS file? - flat-fileКак имитировать использование большой базы данных с SQL Server 2005 - sql-server-2005PHP header redirection in new window? - redirectLocation of the title in a new tab - phpExpand SQL statement in Java - javaИмпорт файла dmp, созданного DataPump в Oracle Express 10g - oracle-xeCreate an icon for a link, which is JavaScript? - javascriptОткрыть мета-перенаправление HTML в новом окне - htmlIs it possible to write a generic function in .NET that accepts only numeric types? - genericsНевозможно создать unit test для модуля - Означает ли это плохой дизайн? - designAll Articles