| /linux/crypto/ |
| H A D | sha256.c | 78 static int crypto_sha224_init(struct shash_desc *desc) in crypto_sha224_init() 84 static int crypto_sha224_update(struct shash_desc *desc, in crypto_sha224_update() 91 static int crypto_sha224_final(struct shash_desc *desc, u8 *out) in crypto_sha224_final() 97 static int crypto_sha224_digest(struct shash_desc *desc, in crypto_sha224_digest() 104 static int crypto_sha224_export(struct shash_desc *desc, void *out) in crypto_sha224_export() 109 static int crypto_sha224_import(struct shash_desc *desc, const void *in) in crypto_sha224_import() 114 static int crypto_sha224_export_core(struct shash_desc *desc, void *out) in crypto_sha224_export_core() 119 static int crypto_sha224_import_core(struct shash_desc *desc, const void *in) in crypto_sha224_import_core() 136 static int crypto_sha256_init(struct shash_desc *desc) in crypto_sha256_init() 142 static int crypto_sha256_update(struct shash_desc *desc, in crypto_sha256_update() [all …]
|
| H A D | sha512.c | 80 static int crypto_sha384_init(struct shash_desc *desc) in crypto_sha384_init() 86 static int crypto_sha384_update(struct shash_desc *desc, in crypto_sha384_update() 93 static int crypto_sha384_final(struct shash_desc *desc, u8 *out) in crypto_sha384_final() 99 static int crypto_sha384_digest(struct shash_desc *desc, in crypto_sha384_digest() 106 static int crypto_sha384_export(struct shash_desc *desc, void *out) in crypto_sha384_export() 111 static int crypto_sha384_import(struct shash_desc *desc, const void *in) in crypto_sha384_import() 116 static int crypto_sha384_export_core(struct shash_desc *desc, void *out) in crypto_sha384_export_core() 121 static int crypto_sha384_import_core(struct shash_desc *desc, const void *in) in crypto_sha384_import_core() 142 static int crypto_sha512_init(struct shash_desc *desc) in crypto_sha512_init() 148 static int crypto_sha512_update(struct shash_desc *desc, in crypto_sha512_update() [all …]
|
| H A D | md5.c | 69 static int crypto_md5_init(struct shash_desc *desc) in crypto_md5_init() 75 static int crypto_md5_update(struct shash_desc *desc, in crypto_md5_update() 82 static int crypto_md5_final(struct shash_desc *desc, u8 *out) in crypto_md5_final() 88 static int crypto_md5_digest(struct shash_desc *desc, in crypto_md5_digest() 95 static int crypto_md5_export(struct shash_desc *desc, void *out) in crypto_md5_export() 100 static int crypto_md5_import(struct shash_desc *desc, const void *in) in crypto_md5_import() 105 static int crypto_md5_export_core(struct shash_desc *desc, void *out) in crypto_md5_export_core() 110 static int crypto_md5_import_core(struct shash_desc *desc, const void *in) in crypto_md5_import_core() 125 static int crypto_hmac_md5_init(struct shash_desc *desc) in crypto_hmac_md5_init() 131 static int crypto_hmac_md5_update(struct shash_desc *desc, in crypto_hmac_md5_update() [all …]
|
| H A D | sha1.c | 73 static int crypto_sha1_init(struct shash_desc *desc) in crypto_sha1_init() 79 static int crypto_sha1_update(struct shash_desc *desc, in crypto_sha1_update() 86 static int crypto_sha1_final(struct shash_desc *desc, u8 *out) in crypto_sha1_final() 92 static int crypto_sha1_digest(struct shash_desc *desc, in crypto_sha1_digest() 99 static int crypto_sha1_export(struct shash_desc *desc, void *out) in crypto_sha1_export() 104 static int crypto_sha1_import(struct shash_desc *desc, const void *in) in crypto_sha1_import() 109 static int crypto_sha1_export_core(struct shash_desc *desc, void *out) in crypto_sha1_export_core() 114 static int crypto_sha1_import_core(struct shash_desc *desc, const void *in) in crypto_sha1_import_core() 129 static int crypto_hmac_sha1_init(struct shash_desc *desc) in crypto_hmac_sha1_init() 135 static int crypto_hmac_sha1_update(struct shash_desc *desc, in crypto_hmac_sha1_update() [all …]
|
| H A D | sha3.c | 13 static int crypto_sha3_224_init(struct shash_desc *desc) in crypto_sha3_224_init() 19 static int crypto_sha3_256_init(struct shash_desc *desc) in crypto_sha3_256_init() 25 static int crypto_sha3_384_init(struct shash_desc *desc) in crypto_sha3_384_init() 31 static int crypto_sha3_512_init(struct shash_desc *desc) in crypto_sha3_512_init() 37 static int crypto_sha3_update(struct shash_desc *desc, const u8 *data, in crypto_sha3_update() 44 static int crypto_sha3_final(struct shash_desc *desc, u8 *out) in crypto_sha3_final() 50 static int crypto_sha3_224_digest(struct shash_desc *desc, in crypto_sha3_224_digest() 57 static int crypto_sha3_256_digest(struct shash_desc *desc, in crypto_sha3_256_digest() 64 static int crypto_sha3_384_digest(struct shash_desc *desc, in crypto_sha3_384_digest() 71 static int crypto_sha3_512_digest(struct shash_desc *desc, in crypto_sha3_512_digest() [all …]
|
| H A D | sm3.c | 19 static int crypto_sm3_init(struct shash_desc *desc) in crypto_sm3_init() 25 static int crypto_sm3_update(struct shash_desc *desc, in crypto_sm3_update() 32 static int crypto_sm3_final(struct shash_desc *desc, u8 *out) in crypto_sm3_final() 38 static int crypto_sm3_digest(struct shash_desc *desc, in crypto_sm3_digest() 45 static int crypto_sm3_export_core(struct shash_desc *desc, void *out) in crypto_sm3_export_core() 51 static int crypto_sm3_import_core(struct shash_desc *desc, const void *in) in crypto_sm3_import_core()
|
| H A D | shash.c | 67 static int __crypto_shash_init(struct shash_desc *desc) in __crypto_shash_init() 81 int crypto_shash_init(struct shash_desc *desc) in crypto_shash_init() 89 static int shash_default_finup(struct shash_desc *desc, const u8 *data, in shash_default_finup() 99 int (*op)(struct shash_desc *desc, const u8 *data, in crypto_shash_op_and_zero() 101 struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out) in crypto_shash_op_and_zero() 110 int crypto_shash_finup(struct shash_desc *restrict desc, const u8 *data, in crypto_shash_finup() 176 static int shash_default_digest(struct shash_desc *desc, const u8 *data, in shash_default_digest() 183 int crypto_shash_digest(struct shash_desc *desc, const u8 *data, in crypto_shash_digest() 206 static int __crypto_shash_export(struct shash_desc *desc, void *out, in __crypto_shash_export() 207 int (*export)(struct shash_desc *desc, in __crypto_shash_export() [all …]
|
| H A D | aes.c | 59 static int __maybe_unused crypto_aes_cmac_init(struct shash_desc *desc) in crypto_aes_cmac_init() 65 static int __maybe_unused crypto_aes_cmac_update(struct shash_desc *desc, in crypto_aes_cmac_update() 73 static int __maybe_unused crypto_aes_cmac_final(struct shash_desc *desc, in crypto_aes_cmac_final() 80 static int __maybe_unused crypto_aes_cmac_digest(struct shash_desc *desc, in crypto_aes_cmac_digest() 99 static int __maybe_unused crypto_aes_cbcmac_init(struct shash_desc *desc) in crypto_aes_cbcmac_init() 105 static int __maybe_unused crypto_aes_cbcmac_update(struct shash_desc *desc, in crypto_aes_cbcmac_update() 113 static int __maybe_unused crypto_aes_cbcmac_final(struct shash_desc *desc, in crypto_aes_cbcmac_final() 120 static int __maybe_unused crypto_aes_cbcmac_digest(struct shash_desc *desc, in crypto_aes_cbcmac_digest()
|
| H A D | crc32.c | 47 static int crc32_init(struct shash_desc *desc) in crc32_init() 57 static int crc32_update(struct shash_desc *desc, const u8 *data, in crc32_update() 73 static int crc32_finup(struct shash_desc *desc, const u8 *data, in crc32_finup() 79 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() 87 static int crc32_digest(struct shash_desc *desc, const u8 *data, in crc32_digest()
|
| H A D | crc32c.c | 40 static int chksum_init(struct shash_desc *desc) in chksum_init() 66 static int chksum_update(struct shash_desc *desc, const u8 *data, in chksum_update() 75 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() 89 static int chksum_finup(struct shash_desc *desc, const u8 *data, in chksum_finup() 97 static int chksum_digest(struct shash_desc *desc, const u8 *data, in chksum_digest()
|
| H A D | hmac.c | 82 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() 84 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export() 89 static int hmac_import(struct shash_desc *pdesc, const void *in) in hmac_import() 91 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import() 99 static int hmac_export_core(struct shash_desc *pdesc, void *out) in hmac_export_core() 101 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_export_core() 106 static int hmac_import_core(struct shash_desc *pdesc, const void *in) in hmac_import_core() 109 struct shash_desc *desc = shash_desc_ctx(pdesc); in hmac_import_core() 115 static int hmac_init(struct shash_desc *pdesc) in hmac_init() 122 static int hmac_update(struct shash_desc *pdesc, in hmac_update() [all …]
|
| H A D | xxhash_generic.c | 31 static int xxhash64_init(struct shash_desc *desc) in xxhash64_init() 41 static int xxhash64_update(struct shash_desc *desc, const u8 *data, in xxhash64_update() 51 static int xxhash64_final(struct shash_desc *desc, u8 *out) in xxhash64_final() 60 static int xxhash64_digest(struct shash_desc *desc, const u8 *data, in xxhash64_digest()
|
| H A D | blake2b.c | 31 static int crypto_blake2b_init(struct shash_desc *desc) in crypto_blake2b_init() 41 static int crypto_blake2b_update(struct shash_desc *desc, in crypto_blake2b_update() 48 static int crypto_blake2b_final(struct shash_desc *desc, u8 *out) in crypto_blake2b_final() 54 static int crypto_blake2b_digest(struct shash_desc *desc, in crypto_blake2b_digest()
|
| H A D | crypto_null.c | 23 static int null_init(struct shash_desc *desc) in null_init() 28 static int null_update(struct shash_desc *desc, const u8 *data, in null_update() 34 static int null_final(struct shash_desc *desc, u8 *out) in null_final() 39 static int null_digest(struct shash_desc *desc, const u8 *data, in null_digest()
|
| H A D | michael_mic.c | 47 static int michael_init(struct shash_desc *desc) in michael_init() 59 static int michael_update(struct shash_desc *desc, const u8 *data, in michael_update() 97 static int michael_final(struct shash_desc *desc, u8 *out) in michael_final()
|
| /linux/include/crypto/ |
| H A D | hash.h | 173 struct shash_desc { struct 198 #define HASH_MAX_DESCSIZE (sizeof(struct shash_desc) + \ 204 char __##shash##_desc[sizeof(struct shash_desc) + HASH_MAX_DESCSIZE] \ 205 __aligned(__alignof__(struct shash_desc)); \ 206 struct shash_desc *shash = (struct shash_desc *)__##shash##_desc 250 int (*init)(struct shash_desc *desc); 251 int (*update)(struct shash_desc *desc, const u8 *data, 253 int (*final)(struct shash_desc *desc, u8 *out); 254 int (*finup)(struct shash_desc *desc, const u8 *data, 256 int (*digest)(struct shash_desc *desc, const u8 *data, [all …]
|
| /linux/drivers/crypto/ |
| H A D | padlock-sha.c | 27 static inline void *padlock_shash_desc_ctx(struct shash_desc *desc) in padlock_shash_desc_ctx() 32 static int padlock_sha1_init(struct shash_desc *desc) in padlock_sha1_init() 43 static int padlock_sha256_init(struct shash_desc *desc) in padlock_sha256_init() 51 static int padlock_sha_update(struct shash_desc *desc, in padlock_sha_update() 74 static int padlock_sha_export(struct shash_desc *desc, void *out) in padlock_sha_export() 81 static int padlock_sha_import(struct shash_desc *desc, const void *in) in padlock_sha_import() 102 static int padlock_sha_finup(struct shash_desc *desc, const u8 *in, in padlock_sha_finup() 114 static int padlock_sha1_finup(struct shash_desc *desc, const u8 *in, in padlock_sha1_finup() 136 static int padlock_sha256_finup(struct shash_desc *desc, const u8 *in, in padlock_sha256_finup() 243 static int padlock_sha1_update_nano(struct shash_desc *desc, in padlock_sha1_update_nano() [all …]
|
| /linux/drivers/crypto/xilinx/ |
| H A D | zynqmp-sha.c | 79 static int zynqmp_sha_continue(struct shash_desc *desc, in zynqmp_sha_continue() 80 struct shash_desc *fbdesc, int err) in zynqmp_sha_continue() 87 static int zynqmp_sha_init(struct shash_desc *desc) in zynqmp_sha_init() 99 static int zynqmp_sha_update(struct shash_desc *desc, const u8 *data, unsigned int length) in zynqmp_sha_update() 112 static int zynqmp_sha_finup(struct shash_desc *desc, const u8 *data, unsigned int length, u8 *out) in zynqmp_sha_finup() 123 static int __zynqmp_sha_digest(struct shash_desc *desc, const u8 *data, in __zynqmp_sha_digest() 159 static int zynqmp_sha_digest(struct shash_desc *desc, const u8 *data, unsigned int len, u8 *out) in zynqmp_sha_digest()
|
| /linux/arch/s390/crypto/ |
| H A D | hmac_s390.c | 182 static int s390_hmac_sha2_init(struct shash_desc *desc) in s390_hmac_sha2_init() 214 static int s390_hmac_sha2_update(struct shash_desc *desc, in s390_hmac_sha2_update() 231 static int s390_hmac_sha2_finup(struct shash_desc *desc, const u8 *src, in s390_hmac_sha2_finup() 249 static int s390_hmac_sha2_digest(struct shash_desc *desc, in s390_hmac_sha2_digest() 269 static int s390_hmac_export_zero(struct shash_desc *desc, void *out) in s390_hmac_export_zero() 287 static int s390_hmac_export(struct shash_desc *desc, void *out) in s390_hmac_export() 311 static int s390_hmac_import(struct shash_desc *desc, const void *in) in s390_hmac_import()
|
| /linux/fs/ubifs/ |
| H A D | auth.c | 63 struct shash_desc *inhash) in ubifs_prepare_auth_node() 89 static struct shash_desc *ubifs_get_desc(const struct ubifs_info *c, in ubifs_get_desc() 92 struct shash_desc *desc; in ubifs_get_desc() 120 struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c) in __ubifs_hash_get_desc() 474 int __ubifs_shash_copy_state(const struct ubifs_info *c, struct shash_desc *src, in __ubifs_shash_copy_state() 475 struct shash_desc *target) in __ubifs_shash_copy_state()
|
| H A D | ubifs.h | 718 struct shash_desc *log_hash; 734 struct shash_desc *log_hash; 1495 struct shash_desc *log_hash; 1535 struct shash_desc *__ubifs_hash_get_desc(const struct ubifs_info *c); 1536 static inline struct shash_desc *ubifs_hash_get_desc(const struct ubifs_info *c) in ubifs_hash_get_desc() 1542 struct shash_desc *desc) in ubifs_shash_init() 1551 struct shash_desc *desc, const void *buf, in ubifs_shash_update() 1566 struct shash_desc *desc, u8 *out) in ubifs_shash_final() 1583 struct shash_desc *inhash); 1714 int __ubifs_shash_copy_state(const struct ubifs_info *c, struct shash_desc *src, [all …]
|
| /linux/include/crypto/internal/ |
| H A D | hash.h | 161 int shash_ahash_update(struct ahash_request *req, struct shash_desc *desc); 162 int shash_ahash_finup(struct ahash_request *req, struct shash_desc *desc); 163 int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc); 390 int crypto_shash_export_core(struct shash_desc *desc, void *out); 402 int crypto_shash_import_core(struct shash_desc *desc, const void *in);
|
| /linux/drivers/crypto/nx/ |
| H A D | nx-sha512.c | 45 static int nx_sha512_init(struct shash_desc *desc) in nx_sha512_init() 63 static int nx_sha512_update(struct shash_desc *desc, const u8 *data, in nx_sha512_update() 144 static int nx_sha512_finup(struct shash_desc *desc, const u8 *src, in nx_sha512_finup() 211 static int nx_sha512_export(struct shash_desc *desc, void *out) in nx_sha512_export() 228 static int nx_sha512_import(struct shash_desc *desc, const void *in) in nx_sha512_import()
|
| H A D | nx-sha256.c | 45 static int nx_sha256_init(struct shash_desc *desc) in nx_sha256_init() 62 static int nx_sha256_update(struct shash_desc *desc, const u8 *data, in nx_sha256_update() 141 static int nx_sha256_finup(struct shash_desc *desc, const u8 *src, in nx_sha256_finup() 206 static int nx_sha256_export(struct shash_desc *desc, void *out) in nx_sha256_export() 223 static int nx_sha256_import(struct shash_desc *desc, const void *in) in nx_sha256_import()
|
| /linux/security/integrity/evm/ |
| H A D | evm_crypto.c | 75 static struct shash_desc *init_desc(char type, uint8_t hash_algo) in init_desc() 80 struct shash_desc *desc; in init_desc() 143 static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, in hmac_add_misc() 236 struct shash_desc *desc; in evm_calc_hmac_or_hash() 409 struct shash_desc *desc; in evm_init_hmac()
|