passforios-gopenpgp/models/models.go

27 lines
635 B
Go
Raw Normal View History

2019-05-15 14:57:35 +02:00
// Package models provides structs containing message data.
package models
2019-05-15 14:57:35 +02:00
// EncryptedSplit contains a separate session key packet and symmetrically
// encrypted data packet.
type EncryptedSplit struct {
DataPacket []byte
KeyPacket []byte
Algo string
}
2019-05-15 14:57:35 +02:00
// EncryptedSigned contains an encrypted message and signature.
type EncryptedSigned struct {
Encrypted string
Signature string
}
2019-05-15 14:57:35 +02:00
// 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
}