Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <linux/spinlock_types.h>
#include <linux/scatterlist.h>
#include <linux/crypto.h>
#include <linux/hash.h>
#include <crypto/internal/hash.h>
#include <linux/dma-mapping.h>
#include <crypto/algapi.h>
#include <crypto/aes.h>
#include <crypto/sha.h>
#include "crypto4xx_reg_def.h"
#include "crypto4xx_sa.h"
#include "crypto4xx_core.h"
Go to the source code of this file.
Functions | |
void | set_dynamic_sa_command_0 (struct dynamic_sa_ctl *sa, u32 save_h, u32 save_iv, u32 ld_h, u32 ld_iv, u32 hdr_proc, u32 h, u32 c, u32 pad_type, u32 op_grp, u32 op, u32 dir) |
void | set_dynamic_sa_command_1 (struct dynamic_sa_ctl *sa, u32 cm, u32 hmac_mc, u32 cfb, u32 esn, u32 sn_mask, u32 mute, u32 cp_pad, u32 cp_pay, u32 cp_hdr) |
int | crypto4xx_encrypt (struct ablkcipher_request *req) |
int | crypto4xx_decrypt (struct ablkcipher_request *req) |
int | crypto4xx_setkey_aes_cbc (struct crypto_ablkcipher *cipher, const u8 *key, unsigned int keylen) |
int | crypto4xx_hash_init (struct ahash_request *req) |
int | crypto4xx_hash_update (struct ahash_request *req) |
int | crypto4xx_hash_final (struct ahash_request *req) |
int | crypto4xx_hash_digest (struct ahash_request *req) |
int | crypto4xx_sha1_alg_init (struct crypto_tfm *tfm) |
int crypto4xx_decrypt | ( | struct ablkcipher_request * | req | ) |
Definition at line 86 of file crypto4xx_alg.c.
int crypto4xx_encrypt | ( | struct ablkcipher_request * | req | ) |
Definition at line 72 of file crypto4xx_alg.c.
int crypto4xx_hash_digest | ( | struct ahash_request * | req | ) |
Definition at line 272 of file crypto4xx_alg.c.
int crypto4xx_hash_final | ( | struct ahash_request * | req | ) |
Definition at line 267 of file crypto4xx_alg.c.
int crypto4xx_hash_init | ( | struct ahash_request * | req | ) |
Definition at line 236 of file crypto4xx_alg.c.
int crypto4xx_hash_update | ( | struct ahash_request * | req | ) |
Definition at line 253 of file crypto4xx_alg.c.
int crypto4xx_setkey_aes_cbc | ( | struct crypto_ablkcipher * | cipher, |
const u8 * | key, | ||
unsigned int | keylen | ||
) |
Definition at line 169 of file crypto4xx_alg.c.
int crypto4xx_sha1_alg_init | ( | struct crypto_tfm * | tfm | ) |
SHA1 Algorithm
Definition at line 288 of file crypto4xx_alg.c.
void set_dynamic_sa_command_0 | ( | struct dynamic_sa_ctl * | sa, |
u32 | save_h, | ||
u32 | save_iv, | ||
u32 | ld_h, | ||
u32 | ld_iv, | ||
u32 | hdr_proc, | ||
u32 | h, | ||
u32 | c, | ||
u32 | pad_type, | ||
u32 | op_grp, | ||
u32 | op, | ||
u32 | dir | ||
) |
AMCC SoC PPC4xx Crypto Driver
Copyright (c) 2008 Applied Micro Circuits Corporation. All rights reserved. James Hsiao jhsia o@am cc.co m
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
This file implements the Linux crypto algorithms.
Definition at line 35 of file crypto4xx_alg.c.