package jose
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Jose.Jwe
Source
Source
type t = {
header : Header.t;
cek : string;
(*Content Encryption Key
*)iv : string;
(*Initialization Vector
*)payload : string;
(*plaintext to be encrypted
*)aad : string option;
(*Additional Authentication Data, for future use
*)
}
A JWE ready for encryption
make header payload
creates a JWE from a Header.t
and the plaintext that you want to encrypt