exth_crypto v0.1.6 ExthCrypto.Test

A variety of helper functions to make the tests consistent in their usage of keys, etc.

Link to this section Summary

Functions

Returns an initialization vector of the given size that is specifically not random at all (just for testing)

Returns a generic elliptic curve key pair

Returns a generic elliptic curve public key based on a given curve, which is paired with the corresponding public key

Returns a generic elliptic curve public key based on a given curve

Link to this section Functions

Link to this function init_vector(base \\ 1, block_size \\ 16)

Returns an initialization vector of the given size that is specifically not random at all (just for testing).

Link to this function key_pair(key \\ :key_a)

Returns a generic elliptic curve key pair.

Link to this function private_key(key \\ :key_a)

Returns a generic elliptic curve public key based on a given curve, which is paired with the corresponding public key.

Link to this function public_key(key \\ :key_a)

Returns a generic elliptic curve public key based on a given curve.

Link to this function symmetric_key(key \\ :key_a)