如何在libgcrypt中使用GPG导出的键?

时间:2022-05-02 18:23:58

Was wondering how could I use private/public keys exported by GPG to be used by libgcrypt? Libgcrypt needs to s-expression structures with its associated mpi values and I don't know how to extract that from the GPG export :(

想知道如何使用GPG导出的私钥/公钥供libgcrypt使用?Libgcrypt需要s-expression结构及其相关的mpi值,我不知道如何从GPG导出中提取:(

Thanks in advance!

提前谢谢!

2 个解决方案

#1


0  

Here are some references:

以下是一些参考:

ASCII Armor is a GPG extension to OpenPGP and is not part of the libgcrypt library. the function dearmor_file is in GnuPG.

ASCII装甲是OpenPGP的GPG扩展,不是libgcrypt库的一部分。函数dearmor_file在GnuPG中。

#2


0  

Related answer is found at: Using output from gpg --list-packets on a key to get the mpi values to generate s-expressions

相关的答案在:使用gpg -list-packet对键的输出来获取mpi值来生成s表达式

#1


0  

Here are some references:

以下是一些参考:

ASCII Armor is a GPG extension to OpenPGP and is not part of the libgcrypt library. the function dearmor_file is in GnuPG.

ASCII装甲是OpenPGP的GPG扩展,不是libgcrypt库的一部分。函数dearmor_file在GnuPG中。

#2


0  

Related answer is found at: Using output from gpg --list-packets on a key to get the mpi values to generate s-expressions

相关的答案在:使用gpg -list-packet对键的输出来获取mpi值来生成s表达式