2018-11-05 22:55:45 +01:00
|
|
|
// Provides high-level public data models used for communication mainly with mobile clients
|
2018-09-11 11:09:28 +02:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
//EncryptedSplit when encrypt attachemt
|
|
|
|
|
type EncryptedSplit struct {
|
|
|
|
|
DataPacket []byte
|
|
|
|
|
KeyPacket []byte
|
|
|
|
|
Algo string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//EncryptedSigned encrypt_sign_package
|
|
|
|
|
type EncryptedSigned struct {
|
|
|
|
|
Encrypted string
|
|
|
|
|
Signature string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//DecryptSignedVerify decrypt_sign_verify
|
|
|
|
|
type DecryptSignedVerify struct {
|
|
|
|
|
//clear text
|
|
|
|
|
Plaintext string
|
|
|
|
|
//bitmask verify status : 0
|
|
|
|
|
Verify int
|
|
|
|
|
//error message if verify failed
|
|
|
|
|
Message string
|
|
|
|
|
}
|