Blame doc/librpm/html/structpgpPktPubkey__s.html

2ff057
2ff057
<html xmlns="http://www.w3.org/1999/xhtml">
2ff057
<head>
2ff057
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
2ff057
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2ff057
<meta name="generator" content="Doxygen 1.8.14"/>
2ff057
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2ff057
<title>rpm: pgpPktPubkey_s Struct Reference</title>
2ff057
<link href="tabs.css" rel="stylesheet" type="text/css"/>
2ff057
<script type="text/javascript" src="jquery.js"></script>
2ff057
<script type="text/javascript" src="dynsections.js"></script>
2ff057
<link href="doxygen.css" rel="stylesheet" type="text/css" />
2ff057
</head>
2ff057
<body>
2ff057
2ff057
2ff057
2ff057
 
2ff057
 
2ff057
  
2ff057
   
rpm
2ff057
    4.14.2
2ff057
   
2ff057
  
2ff057
 
2ff057
 
2ff057
2ff057
2ff057
2ff057
2ff057
<script type="text/javascript" src="menudata.js"></script>
2ff057
<script type="text/javascript" src="menu.js"></script>
2ff057
<script type="text/javascript">
2ff057
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
2ff057
$(function() {
2ff057
  initMenu('',false,false,'search.php','Search');
2ff057
});
2ff057
/* @license-end */</script>
2ff057
2ff057
2ff057
2ff057
  
2ff057
Data Fields  
2ff057
  
2ff057
pgpPktPubkey_s Struct Reference
2ff057
2ff057
2ff057
2ff057

5.1.

2ff057
 More...

2ff057
2ff057

#include <rpmpgp.h>

2ff057
2ff057

2ff057
Data Fields
2ff057
uint8_t version
2ff057
 
2ff057
pgpKeyID_t keyid
2ff057
 
2ff057
uint8_t algo
2ff057
 
2ff057
2ff057

Detailed Description

2ff057

5.1.

2ff057

Public-Key Encrypted Session Key Packets (Tag 1)

2ff057

A Public-Key Encrypted Session Key packet holds the session key used to encrypt a message. Zero or more Encrypted Session Key packets (either Public-Key or Symmetric-Key) may precede a Symmetrically Encrypted Data Packet, which holds an encrypted message. The message is encrypted with the session key, and the session key is itself encrypted and stored in the Encrypted Session Key packet(s). The Symmetrically Encrypted Data Packet is preceded by one Public-Key Encrypted Session Key packet for each OpenPGP key to which the message is encrypted. The recipient of the message finds a session key that is encrypted to their public key, decrypts the session key, and then uses the session key to decrypt the message.

2ff057

The body of this packet consists of:

    2ff057
  • A one-octet number giving the version number of the packet type. The currently defined value for packet version is 3. An implementation should accept, but not generate a version of 2, which is equivalent to V3 in all other respects.
  • 2ff057
  • An eight-octet number that gives the key ID of the public key that the session key is encrypted to.
  • 2ff057
  • A one-octet number giving the public key algorithm used.
  • 2ff057
  • A string of octets that is the encrypted session key. This string takes up the remainder of the packet, and its contents are dependent on the public key algorithm used.
  • 2ff057
    2ff057

    Algorithm Specific Fields for RSA encryption

      2ff057
    • multiprecision integer (MPI) of RSA encrypted value m**e mod n.
    • 2ff057
      2ff057

      Algorithm Specific Fields for Elgamal encryption:

        2ff057
      • MPI of Elgamal (Diffie-Hellman) value g**k mod p.
      • 2ff057
      • MPI of Elgamal (Diffie-Hellman) value m * y**k mod p.
      • 2ff057
        2ff057
        2ff057

        Definition at line 106 of file rpmpgp.h.

        2ff057

        Field Documentation

        2ff057
        2ff057

        ◆ algo

        2ff057
        2ff057
        2ff057
        2ff057
              
        2ff057
                
        2ff057
                  uint8_t pgpPktPubkey_s::algo
        2ff057
                
        2ff057
              
        2ff057
        2ff057

        public key algorithm used.

        2ff057
        2ff057

        Definition at line 109 of file rpmpgp.h.

        2ff057
        2ff057
        2ff057
        2ff057
        2ff057

        ◆ keyid

        2ff057
        2ff057
        2ff057
        2ff057
              
        2ff057
                
        2ff057
                  pgpKeyID_t pgpPktPubkey_s::keyid
        2ff057
                
        2ff057
              
        2ff057
        2ff057

        key ID of the public key for session key.

        2ff057
        2ff057

        Definition at line 108 of file rpmpgp.h.

        2ff057
        2ff057
        2ff057
        2ff057
        2ff057

        ◆ version

        2ff057
        2ff057
        2ff057
        2ff057
              
        2ff057
                
        2ff057
                  uint8_t pgpPktPubkey_s::version
        2ff057
                
        2ff057
              
        2ff057
        2ff057

        version number (generate 3, accept 2).

        2ff057
        2ff057

        Definition at line 107 of file rpmpgp.h.

        2ff057
        2ff057
        2ff057
        2ff057

        The documentation for this struct was generated from the following file:
          2ff057
        • rpmpgp.h
        • 2ff057
          2ff057
          2ff057
          2ff057

          <address class="footer"><small>
          2ff057
          Generated by  
          2ff057
          doxygen
          2ff057
           1.8.14
          2ff057
          </small></address>
          2ff057
          </body>
          2ff057
          </html>