[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcrypt-devel
Subject:    Libgcrypt: Import and export of keys
From:       LUNDBERG Peter <Peter.LUNDBERG () 3ds ! com>
Date:       2017-02-24 15:39:16
Message-ID: 327E5DBE7F70B1499C26DD1C125C07E50105BB493D () EU-DCC-MBX11 ! dsone ! 3ds ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,
I'm new to Libgcrypt and when browsing the reference manual I cannot see ho=
w to perform the following scenarios regarding public key encryption:


1.       Given a private/public key in a byte array, how to import them int=
o an S-Expression?

2.       Given an S-expression with a private/public key, how to export the=
m into a byte array?

Best Regards,

Peter LUNDBERG

CATIA Systems/Dymola R&D Development Manager





Office: +46 4 6270 6708
peter.lundberg@3ds.com<mailto:peter.lundberg@3ds.com>

[3DS Logo]

3DS.COM/CATIA<http://www.3ds.com/CATIA>


Dassault Systemes AB | IDEON Gateway Scheelev=E4gen 27 | | Sweden





This email and any attachments are intended solely for the use of the indiv=
idual or entity to whom it is addressed and may be confidential and/or priv=
ileged.

If you are not one of the named recipients or have received this email in e=
rror,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this em=
ail and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or responsi=
bility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{mso-style-priority:34;
	margin-top:0in;
	margin-right:0in;
	margin-bottom:0in;
	margin-left:.5in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
/* List Definitions */
@list l0
	{mso-list-id:1964574800;
	mso-list-type:hybrid;
	mso-list-template-ids:-2121512922 67698703 67698713 67698715 67698703 67698713 \
67698715 67698703 67698713 67698715;} @list l0:level1
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level2
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level3
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level4
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level5
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level6
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
@list l0:level7
	{mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level8
	{mso-level-number-format:alpha-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:left;
	text-indent:-.25in;}
@list l0:level9
	{mso-level-number-format:roman-lower;
	mso-level-tab-stop:none;
	mso-level-number-position:right;
	text-indent:-9.0pt;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">I&#8217;m new to Libgcrypt and when browsing the reference \
manual I cannot see how to perform the following scenarios regarding public key \
encryption:<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if \
!supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt &quot;Times \
New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Given a \
private/public key in a byte array, how to import them into an \
S-Expression?<o:p></o:p></p> <p class="MsoListParagraph" \
style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span \
style="mso-list:Ignore">2.<span style="font:7.0pt &quot;Times New \
Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Given an \
S-expression with a private/public key, how to export them into a byte \
array?<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><i><span \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">Best \
Regards,</span></i><span style="font-size:12.0pt;font-family:&quot;Times New \
Roman&quot;,&quot;serif&quot;"><o:p></o:p></span></p> <table class="MsoNormalTable" \
border="0" cellspacing="0" cellpadding="0" width="740" style="width:555.0pt"> <tbody>
<tr style="height:9.0pt">
<td colspan="4" style="padding:0in 0in 0in 0in;height:9.0pt"></td>
</tr>
<tr>
<td colspan="4" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">Peter \
LUNDBERG <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan="4" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">CATIA \
Systems/Dymola R&amp;D Development Manager<o:p></o:p></span></p> </td>
</tr>
<tr style="height:3.75pt">
<td colspan="4" style="padding:0in 0in 0in 0in;height:3.75pt"></td>
</tr>
<tr>
<td colspan="4" style="padding:0in 0in 0in 0in">
<p class="MsoNormal"><img width="740" height="2" id="_x0000_i1026" \
src="cid:image001.jpg@01D28EBC.89B39810"><span \
style="font-size:12.0pt"><o:p></o:p></span></p> </td>
</tr>
<tr style="height:3.75pt">
<td colspan="4" style="padding:0in 0in 0in 0in;height:3.75pt"></td>
</tr>
<tr>
<td width="307" style="width:230.25pt;padding:0in 0in 0in 0in">
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black">Office: \
&#43;46 4 6270 6708<br> <a href="mailto:peter.lundberg@3ds.com"><span \
style="color:blue">peter.lundberg@3ds.com</span></a><o:p></o:p></span></p> </td>
<td width="45" rowspan="2" style="width:33.75pt;padding:0in 0in 0in 0in"></td>
<td width="343" rowspan="2" valign="top" style="width:257.25pt;padding:0in 0in 0in \
0in"> <p class="MsoNormal"><img border="0" width="343" height="41" id="_x0000_i1025" \
src="cid:image002.png@01D28EBC.89B39810" alt="3DS Logo"><span \
style="font-size:12.0pt"><o:p></o:p></span></p> </td>
<td width="45" rowspan="2" style="width:33.75pt;padding:0in 0in 0in 0in"></td>
</tr>
<tr style="height:15.75pt">
<td width="307" style="width:230.25pt;padding:0in 0in 0in 0in;height:15.75pt">
<p class="MsoNormal"><span \
style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:black"><a \
href="http://www.3ds.com/CATIA" target="_blank"><b><span \
style="color:#1C2674">3DS.COM/CATIA</span></b></a><o:p></o:p></span></p> </td>
</tr>
<tr style="height:6.0pt">
<td colspan="4" style="padding:0in 0in 0in 0in;height:6.0pt"></td>
</tr>
<tr style="height:15.0pt">
<td colspan="4" valign="top" style="padding:0in 0in 0in 0in;height:15.0pt">
<p class="MsoNormal"><i><span \
style="font-size:7.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#005386">Dassault \
Systemes AB</span></i><span \
style="font-size:7.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#005386"> \
| <i>IDEON Gateway Scheelevägen 27</i> | | <i>Sweden<br>
<br>
<o:p></o:p></i></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p style="FONT-SIZE: 9pt; MARGIN: 0px 0px 0px 35.4pt; COLOR: #9d9d9d; FONT-STYLE: \
italic; FONT-FAMILY: Arial, Helvetica, sans-serif"> This email and any attachments \
are intended solely for the use of the individual or entity to whom it is addressed \
and may be confidential and/or privileged.</p> <p style="FONT-SIZE: 9pt; MARGIN: 0px \
0px 0px 35.4pt; COLOR: #9d9d9d; FONT-STYLE: italic; FONT-FAMILY: Arial, Helvetica, \
sans-serif"> If you are not one of the named recipients or have received this email \
in error, </p> <p style="FONT-SIZE: 9pt; MARGIN: 0px 0px 0px 35.4pt; COLOR: #9d9d9d; \
FONT-STYLE: italic; FONT-FAMILY: Arial, Helvetica, sans-serif"> (i) you should not \
read, disclose, or copy it,</p> <p style="FONT-SIZE: 9pt; MARGIN: 0px 0px 0px 35.4pt; \
COLOR: #9d9d9d; FONT-STYLE: italic; FONT-FAMILY: Arial, Helvetica, sans-serif"> (ii) \
please notify sender of your receipt by reply email and delete this email and all \
attachments,</p> <p style="FONT-SIZE: 9pt; MARGIN: 0px 0px 0px 35.4pt; COLOR: \
#9d9d9d; FONT-STYLE: italic; FONT-FAMILY: Arial, Helvetica, sans-serif"> (iii) \
Dassault Systemes does not accept or assume any liability or responsibility for any \
use of or reliance on this email.</p> <p style="FONT-STYLE: italic; MARGIN: 0px 0px \
0px 35.4pt; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #9d9d9d; FONT-SIZE: \
9pt"> </p>
<p style="FONT-SIZE: 9pt; MARGIN: 0px 0px 0px 35.4pt; COLOR: #9d9d9d; FONT-STYLE: \
italic; FONT-FAMILY: Arial, Helvetica, sans-serif"> For other languages, go to \
http://www.3ds.com/terms/email-disclaimer </p> </body>
</html>


["image001.jpg" (image/jpeg)]
["image002.png" (image/png)]

_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel

--===============5064586937941023761==--


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic