Blame crypto/camellia/cmll_ctr.c
|
Packit |
c4476c |
/*
|
|
Packit |
c4476c |
* Copyright 2006-2016 The OpenSSL Project Authors. All Rights Reserved.
|
|
Packit |
c4476c |
*
|
|
Packit |
c4476c |
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
Packit |
c4476c |
* this file except in compliance with the License. You can obtain a copy
|
|
Packit |
c4476c |
* in the file LICENSE in the source distribution or at
|
|
Packit |
c4476c |
* https://www.openssl.org/source/license.html
|
|
Packit |
c4476c |
*/
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
#include <openssl/camellia.h>
|
|
Packit |
c4476c |
#include <openssl/modes.h>
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
void Camellia_ctr128_encrypt(const unsigned char *in, unsigned char *out,
|
|
Packit |
c4476c |
size_t length, const CAMELLIA_KEY *key,
|
|
Packit |
c4476c |
unsigned char ivec[CAMELLIA_BLOCK_SIZE],
|
|
Packit |
c4476c |
unsigned char ecount_buf[CAMELLIA_BLOCK_SIZE],
|
|
Packit |
c4476c |
unsigned int *num)
|
|
Packit |
c4476c |
{
|
|
Packit |
c4476c |
|
|
Packit |
c4476c |
CRYPTO_ctr128_encrypt(in, out, length, key, ivec, ecount_buf, num,
|
|
Packit |
c4476c |
(block128_f) Camellia_encrypt);
|
|
Packit |
c4476c |
}
|