1275970Scy/* 2275970Scy * Copyright 2006-2020 The OpenSSL Project Authors. All Rights Reserved. 3275970Scy * 4275970Scy * Licensed under the Apache License 2.0 (the "License"). You may not use 5275970Scy * this file except in compliance with the License. You can obtain a copy 6275970Scy * in the file LICENSE in the source distribution or at 7275970Scy * https://www.openssl.org/source/license.html 8275970Scy */ 9275970Scy 10275970Scy/* 11275970Scy * Camellia low level APIs are deprecated for public use, but still ok for 12275970Scy * internal use. 13275970Scy */ 14275970Scy#include "internal/deprecated.h" 15275970Scy 16275970Scy#include <openssl/camellia.h> 17275970Scy#include <openssl/modes.h> 18275970Scy 19275970Scy/* 20275970Scy * The input and output encrypted as though 128bit ofb mode is being used. 21275970Scy * The extra state information to record how much of the 128bit block we have 22275970Scy * used is contained in *num; 23275970Scy */ 24275970Scyvoid Camellia_ofb128_encrypt(const unsigned char *in, unsigned char *out, 25275970Scy size_t length, const CAMELLIA_KEY *key, 26275970Scy unsigned char *ivec, int *num) 27275970Scy{ 28275970Scy CRYPTO_ofb128_encrypt(in, out, length, key, ivec, num, 29275970Scy (block128_f) Camellia_encrypt); 30275970Scy} 31275970Scy