passforios-gopenpgp/models/models.go
2019-05-15 15:17:03 +02:00

26 lines
635 B
Go

// Package models provides structs containing message data.
package models
// EncryptedSplit contains a separate session key packet and symmetrically
// encrypted data packet.
type EncryptedSplit struct {
DataPacket []byte
KeyPacket []byte
Algo string
}
// EncryptedSigned contains an encrypted message and signature.
type EncryptedSigned struct {
Encrypted string
Signature string
}
// DecryptSignedVerify contains a decrypted message and verification result.
type DecryptSignedVerify struct {
//clear text
Plaintext string
//bitmask verify status : 0
Verify int
//error message if verify failed
Message string
}