Crypto
Context
Class
constructor
parent
Class
name
decrypt
digest
Id
digest
Name
encrypt
export
Keys
get
Encryption
Protocol
get
Key
Exchange
Protocol
get
Signature
Protocol
import
Keys
sign
verify
NODE-GTK API Reference
GMime-3.0
GMime
CryptoContextClass
Class CryptoContextClass
Hierarchy
CryptoContextClass
Index
Constructors
constructor
Properties
parent
Class
name
Methods
decrypt
digest
Id
digest
Name
encrypt
export
Keys
get
Encryption
Protocol
get
Key
Exchange
Protocol
get
Signature
Protocol
import
Keys
sign
verify
Constructors
constructor
new
Crypto
Context
Class
(
)
:
CryptoContextClass
Returns
CryptoContextClass
Properties
parent
Class
parent
Class
:
GObject
.
ObjectClass
Static
name
name
:
string
Methods
decrypt
decrypt
(
ctx
:
CryptoContext
, flags
:
DecryptFlags
, sessionKey
:
string
, istream
:
GMime
.
Stream
, ostream
:
GMime
.
Stream
)
:
DecryptResult
Parameters
ctx:
CryptoContext
flags:
DecryptFlags
sessionKey:
string
istream:
GMime
.
Stream
ostream:
GMime
.
Stream
Returns
DecryptResult
digest
Id
digest
Id
(
ctx
:
CryptoContext
, name
:
string
)
:
DigestAlgo
Parameters
ctx:
CryptoContext
name:
string
Returns
DigestAlgo
digest
Name
digest
Name
(
ctx
:
CryptoContext
, digest
:
DigestAlgo
)
:
string
Parameters
ctx:
CryptoContext
digest:
DigestAlgo
Returns
string
encrypt
encrypt
(
ctx
:
CryptoContext
, sign
:
boolean
, userid
:
string
, flags
:
EncryptFlags
, recipients
:
string
[]
, istream
:
GMime
.
Stream
, ostream
:
GMime
.
Stream
)
:
number
Parameters
ctx:
CryptoContext
sign:
boolean
userid:
string
flags:
EncryptFlags
recipients:
string
[]
istream:
GMime
.
Stream
ostream:
GMime
.
Stream
Returns
number
export
Keys
export
Keys
(
ctx
:
CryptoContext
, keys
:
string
, ostream
:
GMime
.
Stream
)
:
number
Parameters
ctx:
CryptoContext
keys:
string
ostream:
GMime
.
Stream
Returns
number
get
Encryption
Protocol
get
Encryption
Protocol
(
ctx
:
CryptoContext
)
:
string
Parameters
ctx:
CryptoContext
Returns
string
get
Key
Exchange
Protocol
get
Key
Exchange
Protocol
(
ctx
:
CryptoContext
)
:
string
Parameters
ctx:
CryptoContext
Returns
string
get
Signature
Protocol
get
Signature
Protocol
(
ctx
:
CryptoContext
)
:
string
Parameters
ctx:
CryptoContext
Returns
string
import
Keys
import
Keys
(
ctx
:
CryptoContext
, istream
:
GMime
.
Stream
)
:
number
Parameters
ctx:
CryptoContext
istream:
GMime
.
Stream
Returns
number
sign
sign
(
ctx
:
CryptoContext
, detach
:
boolean
, userid
:
string
, istream
:
GMime
.
Stream
, ostream
:
GMime
.
Stream
)
:
number
Parameters
ctx:
CryptoContext
detach:
boolean
userid:
string
istream:
GMime
.
Stream
ostream:
GMime
.
Stream
Returns
number
verify
verify
(
ctx
:
CryptoContext
, flags
:
GMime
.
VerifyFlags
, istream
:
GMime
.
Stream
, sigstream
:
GMime
.
Stream
, ostream
:
GMime
.
Stream
)
:
SignatureList
Parameters
ctx:
CryptoContext
flags:
GMime
.
VerifyFlags
istream:
GMime
.
Stream
sigstream:
GMime
.
Stream
ostream:
GMime
.
Stream
Returns
SignatureList
Crypto
Context
Class
constructor
parent
Class
name
decrypt
digest
Id
digest
Name
encrypt
export
Keys
get
Encryption
Protocol
get
Key
Exchange
Protocol
get
Signature
Protocol
import
Keys
sign
verify
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHTWltZV8zXzAuR01pbWUuQ3J5cHRvQ29udGV4dENsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2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