initialize -package:crypton

Initialize a new ChaCha context with the number of rounds, the key and the nonce associated.
Initialize a new ChaChaPoly1305 State The key length need to be 256 bits, and the nonce procured using either nonce8 or nonce12
RC4 context initialization. seed the context with an initial key. the key size need to be adequate otherwise security takes a hit.
Initialize a new Salsa context with the number of rounds, the key and the nonce associated.
Initialize a new XSalsa context with the number of rounds, the key and the nonce associated.
Initialize a new incremental HMAC context
Initialize a new incremental KMAC context with the supplied customization string and key.
initialize a Poly1305 context
Create a generator for variates using the given seed, of which up to 256 elements will be used. For arrays of less than 256 elements, part of the default seed will be used to finish initializing the generator's state. Examples:
initialize (singleton 42)
initialize (fromList [4, 8, 15, 16, 23, 42])
If a seed contains fewer than 256 elements, it is first used verbatim, then its elements are xored against elements of the default seed until 256 elements are reached. If a seed contains exactly 258 elements, then the last two elements are used to set the generator's initial state. This allows for complete generator reproducibility, so that e.g. gen' == gen in the following example:
gen' <- initialize . fromSeed =<< save
In the MWC algorithm, the carry value must be strictly smaller than the multiplicator (see https://en.wikipedia.org/wiki/Multiply-with-carry). Hence, if a seed contains exactly 258 elements, the carry value, which is the last of the 258 values, is moduloed by the multiplicator. Note that if the first carry value is strictly smaller than the multiplicator, all subsequent carry values are also strictly smaller than the multiplicator (a proof of this is in the comments of the code of uniformWord32), hence when restoring a saved state, we have the guarantee that moduloing the saved carry won't modify its value.
Given the program name and command line arguments, initialize the GLUT library and negotiate a session with the window system. During this process, initialize may cause the termination of the GLUT program with an error message to the user if GLUT cannot be properly initialized. Examples of this situation include the failure to connect to the window system, the lack of window system support for OpenGL, and invalid command line options. initialize also processes command line options, but the specific options parsed are window system dependent. Any command line arguments which are not GLUT-specific are returned. X Implementation Notes: The X Window System specific options parsed by initialize are as follows:
  • -display DISPLAY: Specify the X server to connect to. If not specified, the value of the DISPLAY environment variable is used.
  • -geometry WxH+X+Y: Determines where windows should be created on the screen. The parameter following -geometry should be formatted as a standard X geometry specification. The effect of using this option is to change the GLUT initial size and initial position the same as if initialWindowSize or initialWindowPosition were modified directly.
  • -iconic: Requests all top-level windows be created in an iconic state.
  • -indirect: Force the use of indirect OpenGL rendering contexts.
  • -direct: Force the use of direct OpenGL rendering contexts (not all GLX implementations support direct rendering contexts). A fatal error is generated if direct rendering is not supported by the OpenGL implementation. If neither -indirect or -direct are used to force a particular behavior, GLUT will attempt to use direct rendering if possible and otherwise fallback to indirect rendering.
  • -gldebug: After processing callbacks and/or events, call reportErrors to check if there are any pending OpenGL errors. Using this option is helpful in detecting OpenGL run-time errors.
  • -sync: Enable synchronous X protocol transactions. This option makes it easier to track down potential X protocol errors.
Initializes SDL and the given subsystems. Do not call any SDL functions prior to this one, unless otherwise documented that you may do so. You may call this function again with additional subsystems to initialize. Throws SDLException if initialization fails.
Initialise a curl instance
Initialize mutable array to some default value.
Initializes SDL2_image by loading support for the chosen image formats. Explicit initialization is optional. You should call this function if you prefer to load image support yourself, at a time when your process isn't as busy. Otherwise, image support will be loaded dynamically when you attempt to load a JPG, PNG, TIF or WEBP-formatted file. You may call this function multiple times.
Initializes the library. Unless noted otherwise, this must be called before any other part of the library is used. You may call this multiple times.
Creating timeout manager which works every N micro seconds where N is the first argument.
Initialize the library by loading support for a certain set of sample/music formats. Note that calling this is not strictly necessary: support for a certain format will be loaded automatically when attempting to load data in that format. Using initialize allows you to decide when to load support. You may call this function multiple times.
Initializes a Metrics value, creating a new Store for it.
  • Since v0.1.0.0