HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/src/linux-headers-7.0.0-1009-aws/include/crypto/df_sp80090a.h
/* SPDX-License-Identifier: GPL-2.0 */

/*
 * Copyright Stephan Mueller <[email protected]>, 2014
 */

#ifndef _CRYPTO_DF80090A_H
#define _CRYPTO_DF80090A_H

#include <crypto/internal/cipher.h>
#include <crypto/aes.h>

static inline int crypto_drbg_ctr_df_datalen(u8 statelen, u8 blocklen)
{
	return statelen +       /* df_data */
		blocklen +      /* pad */
		blocklen +      /* iv */
		statelen + blocklen;  /* temp */
}

int crypto_drbg_ctr_df(struct aes_enckey *aes,
		       unsigned char *df_data,
		       size_t bytes_to_return,
		       struct list_head *seedlist,
		       u8 blocklen_bytes,
		       u8 statelen);

#endif /* _CRYPTO_DF80090A_H */