Lines Matching refs:key

147 // configured with a cipher then |cipher|, |key| and |iv| may be |NULL| and
148 // |enc| may be -1 to reuse the previous values. The operation will use |key|
149 // as the key and |iv| as the IV (if any). These should have the correct
154 const uint8_t *key, const uint8_t *iv,
160 const uint8_t *key, const uint8_t *iv);
165 const uint8_t *key, const uint8_t *iv);
255 // EVP_CIPHER_CTX_key_length returns the key size, in bytes, of the cipher
291 // EVP_CIPHER_CTX_set_key_length sets the key length for |ctx|. This is only
292 // valid for ciphers that can take a variable length key. It returns one on
308 // EVP_CIPHER_key_length returns the key size, in bytes, for |cipher|. If
309 // |cipher| can take a variable key length then this function returns the
310 // default key length and |EVP_CIPHER_flags| will return a value with
328 // EVP_BytesToKey generates a key and IV for the cipher |type| by iterating
329 // |md| |count| times using |data| and |salt|. On entry, the |key| and |iv|
330 // buffers must have enough space to hold a key and IV for |type|. It returns
331 // the length of the key on success or zero on error.
334 size_t data_len, unsigned count, uint8_t *key,
353 // key.
357 // should always be called when initialising a new operation, even if the key
358 // is NULL to indicate that the same key is being used.
389 const uint8_t *key, const uint8_t *iv,
394 const EVP_CIPHER *cipher, const uint8_t *key,
399 const EVP_CIPHER *cipher, const uint8_t *key,
482 // key_len contains the length of the key, which may differ from
483 // |cipher->key_len| if the cipher can take a variable key length.
533 // key_len contains the key size, in bytes, for the cipher. If the cipher
534 // takes a variable key size then this contains the default size.
540 // ctx_size contains the size, in bytes, of the per-key context for this
550 int (*init)(EVP_CIPHER_CTX *ctx, const uint8_t *key, const uint8_t *iv,