Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MarkerPacket.java « bcpg « spongycastle « org « java « main « src « pg - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4efbe85cf4d8579e29ee4b8ddfe70e13cd448da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.spongycastle.bcpg;

import java.io.IOException;

/**
 * Basic type for a marker packet
 */
public class MarkerPacket 
    extends ContainedPacket
{    
    // "PGP"
        
    byte[]    marker = { (byte)0x50, (byte)0x47, (byte)0x50 };
    
    public MarkerPacket(
        BCPGInputStream  in)
        throws IOException
    {
         in.readFully(marker);
    }
    
    public void encode(
        BCPGOutputStream    out)
        throws IOException
    {
        out.writePacket(MARKER, marker, true);
    }
}