| /crypto/krb5/ |
| A D | selftest.c | 89 goto out; in load_buf() 99 goto out; in load_buf() 101 out: in load_buf() 135 goto out; in krb5_test_one_prf() 142 goto out; in krb5_test_one_prf() 153 out: in krb5_test_one_prf() 203 out: in krb5_test_key() 232 out: in krb5_test_one_key() 363 out: in krb5_test_one_enc() 479 out: in krb5_test_one_mic() [all …]
|
| A D | rfc3961_simplified.c | 112 if (WARN_ON(in->len != out->len)) in rfc3961_do_encrypt() 114 if (out->len % crypto_sync_skcipher_blocksize(tfm) != 0) in rfc3961_do_encrypt() 123 memcpy(out->data, in->data, out->len); in rfc3961_do_encrypt() 124 sg_init_one(sg, out->data, out->len); in rfc3961_do_encrypt() 128 skcipher_request_set_crypt(req, sg, sg, out->len, local_iv); in rfc3961_do_encrypt() 190 u8 *out = result->data; in rfc3961_nfold() local 203 memset(out, 0, outbits); in rfc3961_nfold() 232 byte += out[i % outbits]; in rfc3961_nfold() 233 out[i % outbits] = byte & 0xff; in rfc3961_nfold() 243 byte += out[i]; in rfc3961_nfold() [all …]
|
| /crypto/ |
| A D | sha512.c | 33 u8 *p = out; in __crypto_sha512_export() 82 sha384_final(SHA384_CTX(desc), out); in crypto_sha384_final() 87 const u8 *data, unsigned int len, u8 *out) in crypto_sha384_digest() argument 89 sha384(data, len, out); in crypto_sha384_digest() 134 sha512_final(SHA512_CTX(desc), out); in crypto_sha512_final() 139 const u8 *data, unsigned int len, u8 *out) in crypto_sha512_digest() argument 141 sha512(data, len, out); in crypto_sha512_digest() 182 hmac_sha384_final(HMAC_SHA384_CTX(desc), out); in crypto_hmac_sha384_final() 188 u8 *out) in crypto_hmac_sha384_digest() argument 234 hmac_sha512_final(HMAC_SHA512_CTX(desc), out); in crypto_hmac_sha512_final() [all …]
|
| A D | sha256.c | 33 u8 *p = out; in __crypto_sha256_export() 80 sha224_final(SHA224_CTX(desc), out); in crypto_sha224_final() 85 const u8 *data, unsigned int len, u8 *out) in crypto_sha224_digest() argument 87 sha224(data, len, out); in crypto_sha224_digest() 128 sha256_final(SHA256_CTX(desc), out); in crypto_sha256_final() 133 const u8 *data, unsigned int len, u8 *out) in crypto_sha256_digest() argument 135 sha256(data, len, out); in crypto_sha256_digest() 176 hmac_sha224_final(HMAC_SHA224_CTX(desc), out); in crypto_hmac_sha224_final() 182 u8 *out) in crypto_hmac_sha224_digest() argument 228 hmac_sha256_final(HMAC_SHA256_CTX(desc), out); in crypto_hmac_sha256_final() [all …]
|
| A D | sha1.c | 32 u8 *p = out; in __crypto_sha1_export() 74 static int crypto_sha1_final(struct shash_desc *desc, u8 *out) in crypto_sha1_final() argument 76 sha1_final(SHA1_CTX(desc), out); in crypto_sha1_final() 81 const u8 *data, unsigned int len, u8 *out) in crypto_sha1_digest() argument 83 sha1(data, len, out); in crypto_sha1_digest() 87 static int crypto_sha1_export(struct shash_desc *desc, void *out) in crypto_sha1_export() argument 89 return __crypto_sha1_export(SHA1_CTX(desc), out); in crypto_sha1_export() 122 hmac_sha1_final(HMAC_SHA1_CTX(desc), out); in crypto_hmac_sha1_final() 127 const u8 *data, unsigned int len, u8 *out) in crypto_hmac_sha1_digest() argument 129 hmac_sha1(HMAC_SHA1_KEY(desc->tfm), data, len, out); in crypto_hmac_sha1_digest() [all …]
|
| A D | sm4.c | 74 u32 out; in sm4_t_non_lin_sub() local 76 out = (u32)sbox[x & 0xff]; in sm4_t_non_lin_sub() 77 out |= (u32)sbox[(x >> 8) & 0xff] << 8; in sm4_t_non_lin_sub() 78 out |= (u32)sbox[(x >> 16) & 0xff] << 16; in sm4_t_non_lin_sub() 79 out |= (u32)sbox[(x >> 24) & 0xff] << 24; in sm4_t_non_lin_sub() 81 return out; in sm4_t_non_lin_sub() 160 void sm4_crypt_block(const u32 *rk, u8 *out, const u8 *in) in sm4_crypt_block() argument 176 put_unaligned_be32(x[3 - 0], out + 0 * 4); in sm4_crypt_block() 177 put_unaligned_be32(x[3 - 1], out + 1 * 4); in sm4_crypt_block() 178 put_unaligned_be32(x[3 - 2], out + 2 * 4); in sm4_crypt_block() [all …]
|
| A D | shash.c | 100 unsigned int len, u8 *out), in crypto_shash_op_and_zero() argument 121 if (out) in crypto_shash_finup() 161 if (*blenp || !out) { in crypto_shash_finup() 164 if (!out) in crypto_shash_finup() 172 data, len, out); in crypto_shash_finup() 177 unsigned int len, u8 *out) in shash_default_digest() argument 184 unsigned int len, u8 *out) in crypto_shash_digest() argument 192 data, len, out); in crypto_shash_digest() 208 void *out)) in __crypto_shash_export() 219 memcpy(out, buf, ss); in __crypto_shash_export() [all …]
|
| A D | scatterwalk.c | 115 scatterwalk_start(&walk.out, dst); in memcpy_sglist() 171 walk->out.__addr = buffer; in skcipher_next_slow() 172 walk->in.__addr = walk->out.addr; in skcipher_next_slow() 193 walk->out.__addr = tmp; in skcipher_next_copy() 204 (u8 *)(sg_page(walk->out.sg) + (walk->out.offset >> PAGE_SHIFT)); in skcipher_next_fast() 206 scatterwalk_map(&walk->out); in skcipher_next_fast() 207 walk->in.__addr = walk->out.__addr; in skcipher_next_fast() 332 scatterwalk_map(&walk->out); in skcipher_walk_done() 345 memcpy_to_scatterwalk(&walk->out, walk->out.addr, n); in skcipher_walk_done() 369 goto out; in skcipher_walk_done() [all …]
|
| A D | crc32.c | 67 static int __crc32_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) in __crc32_finup() argument 69 put_unaligned_le32(crc32_le(*crcp, data, len), out); in __crc32_finup() 74 unsigned int len, u8 *out) in crc32_finup() argument 76 return __crc32_finup(shash_desc_ctx(desc), data, len, out); in crc32_finup() 79 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() argument 83 put_unaligned_le32(*crcp, out); in crc32_final() 88 unsigned int len, u8 *out) in crc32_digest() argument 90 return __crc32_finup(crypto_shash_ctx(desc->tfm), data, len, out); in crc32_digest()
|
| A D | crc32c.c | 92 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument 96 put_unaligned_le32(~ctx->crc, out); in chksum_final() 100 static int __chksum_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) in __chksum_finup() argument 102 put_unaligned_le32(~crc32c(*crcp, data, len), out); in __chksum_finup() 107 unsigned int len, u8 *out) in chksum_finup() argument 111 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup() 115 unsigned int length, u8 *out) in chksum_digest() argument 119 return __chksum_finup(&mctx->key, data, length, out); in chksum_digest()
|
| A D | kdf_sp800108.c | 33 goto out; in crypto_kdf108_ctr_generate() 37 goto out; in crypto_kdf108_ctr_generate() 43 goto out; in crypto_kdf108_ctr_generate() 51 goto out; in crypto_kdf108_ctr_generate() 54 goto out; in crypto_kdf108_ctr_generate() 59 goto out; in crypto_kdf108_ctr_generate() 66 out: in crypto_kdf108_ctr_generate()
|
| A D | zstd.c | 121 goto out; in zstd_compress() 126 goto out; in zstd_compress() 133 goto out; in zstd_compress() 147 goto out; in zstd_compress() 162 goto out; in zstd_compress() 168 goto out; in zstd_compress() 184 out: in zstd_compress() 230 goto out; in zstd_decompress() 235 goto out; in zstd_decompress() 255 goto out; in zstd_decompress() [all …]
|
| A D | aria_generic.c | 195 static void __aria_crypt(struct aria_ctx *ctx, u8 *out, const u8 *in, in __aria_crypt() argument 242 put_unaligned_be32(reg0, &out[0]); in __aria_crypt() 243 put_unaligned_be32(reg1, &out[4]); in __aria_crypt() 244 put_unaligned_be32(reg2, &out[8]); in __aria_crypt() 245 put_unaligned_be32(reg3, &out[12]); in __aria_crypt() 248 void aria_encrypt(void *_ctx, u8 *out, const u8 *in) in aria_encrypt() argument 252 __aria_crypt(ctx, out, in, ctx->enc_key); in aria_encrypt() 256 void aria_decrypt(void *_ctx, u8 *out, const u8 *in) in aria_decrypt() argument 260 __aria_crypt(ctx, out, in, ctx->dec_key); in aria_decrypt() 268 __aria_crypt(ctx, out, in, ctx->enc_key); in __aria_encrypt() [all …]
|
| A D | aes_generic.c | 1176 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() argument 1209 put_unaligned_le32(b0[0], out); in crypto_aes_encrypt() 1210 put_unaligned_le32(b0[1], out + 4); in crypto_aes_encrypt() 1211 put_unaligned_le32(b0[2], out + 8); in crypto_aes_encrypt() 1212 put_unaligned_le32(b0[3], out + 12); in crypto_aes_encrypt() 1246 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() argument 1279 put_unaligned_le32(b0[0], out); in crypto_aes_decrypt() 1280 put_unaligned_le32(b0[1], out + 4); in crypto_aes_decrypt() 1281 put_unaligned_le32(b0[2], out + 8); in crypto_aes_decrypt() 1282 put_unaligned_le32(b0[3], out + 12); in crypto_aes_decrypt()
|
| A D | seed.c | 363 static void seed_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_encrypt() argument 391 put_unaligned_be32(x3, &out[0]); in seed_encrypt() 392 put_unaligned_be32(x4, &out[4]); in seed_encrypt() 393 put_unaligned_be32(x1, &out[8]); in seed_encrypt() 394 put_unaligned_be32(x2, &out[12]); in seed_encrypt() 399 static void seed_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in seed_decrypt() argument 427 put_unaligned_be32(x3, &out[0]); in seed_decrypt() 428 put_unaligned_be32(x4, &out[4]); in seed_decrypt() 429 put_unaligned_be32(x1, &out[8]); in seed_decrypt() 430 put_unaligned_be32(x2, &out[12]); in seed_decrypt()
|
| A D | geniv.c | 98 out: in aead_geniv_alloc() 104 goto out; in aead_geniv_alloc() 119 goto out; in aead_init_geniv() 125 goto out; in aead_init_geniv() 130 goto out; in aead_init_geniv() 138 out: in aead_init_geniv()
|
| A D | sm4_generic.c | 41 static void sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_encrypt() argument 45 sm4_crypt_block(ctx->rkey_enc, out, in); in sm4_encrypt() 50 static void sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_decrypt() argument 54 sm4_crypt_block(ctx->rkey_dec, out, in); in sm4_decrypt()
|
| A D | aegis128-neon-inner.c | 248 void *out = dst; in crypto_aegis128_encrypt_chunk_neon() local 252 in = out = memcpy(buf + AEGIS_BLOCK_SIZE - size, src, size); in crypto_aegis128_encrypt_chunk_neon() 259 vst1q_u8(out + size - AEGIS_BLOCK_SIZE, in crypto_aegis128_encrypt_chunk_neon() 263 memcpy(dst, out, size); in crypto_aegis128_encrypt_chunk_neon() 265 vst1q_u8(out - AEGIS_BLOCK_SIZE, msg); in crypto_aegis128_encrypt_chunk_neon() 294 void *out = dst; in crypto_aegis128_decrypt_chunk_neon() local 298 in = out = memcpy(buf + AEGIS_BLOCK_SIZE - size, src, size); in crypto_aegis128_decrypt_chunk_neon() 305 vst1q_u8(out + size - AEGIS_BLOCK_SIZE, in crypto_aegis128_decrypt_chunk_neon() 309 memcpy(dst, out, size); in crypto_aegis128_decrypt_chunk_neon() 311 vst1q_u8(out - AEGIS_BLOCK_SIZE, msg); in crypto_aegis128_decrypt_chunk_neon()
|
| A D | aes_ti.c | 20 static void aesti_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_encrypt() argument 31 aes_encrypt(ctx, out, in); in aesti_encrypt() 36 static void aesti_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_decrypt() argument 47 aes_decrypt(ctx, out, in); in aesti_decrypt()
|
| A D | xxhash_generic.c | 51 static int xxhash64_final(struct shash_desc *desc, u8 *out) in xxhash64_final() argument 55 put_unaligned_le64(xxh64_digest(&dctx->xxhstate), out); in xxhash64_final() 61 unsigned int length, u8 *out) in xxhash64_digest() argument 65 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
|
| A D | cbc.c | 37 goto out; in crypto_cbc_encrypt_inplace() 49 out: in crypto_cbc_encrypt_inplace() 77 goto out; in crypto_cbc_decrypt_segment() 90 out: in crypto_cbc_decrypt_segment() 101 goto out; in crypto_cbc_decrypt_inplace() 118 out: in crypto_cbc_decrypt_inplace()
|
| A D | hmac.c | 82 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() argument 86 return crypto_shash_export(desc, out); in hmac_export() 99 static int hmac_export_core(struct shash_desc *pdesc, void *out) in hmac_export_core() argument 103 return crypto_shash_export_core(desc, out); in hmac_export_core() 131 unsigned int nbytes, u8 *out) in hmac_finup() argument 141 return crypto_shash_finup(desc, data, nbytes, out) ?: in hmac_finup() 143 crypto_shash_finup(desc, out, ds, out); in hmac_finup() 305 return crypto_ahash_export(ahash_request_ctx(preq), out); in hmac_export_ahash() 320 return crypto_ahash_export_core(ahash_request_ctx(preq), out); in hmac_export_core_ahash() 376 goto out; in hmac_finup_done() [all …]
|
| A D | crypto_null.c | 34 static int null_final(struct shash_desc *desc, u8 *out) in null_final() argument 40 unsigned int len, u8 *out) in null_digest() argument 124 goto out; in crypto_null_mod_init() 140 out: in crypto_null_mod_init()
|
| A D | drbg.c | 499 out: in drbg_ctr_df() 565 goto out; in drbg_ctr_update() 572 out: in drbg_ctr_update() 840 out: in drbg_hash_df() 883 out: in drbg_hash_update() 915 out: in drbg_hash_process_addtl() 955 out: in drbg_hash_hashgen() 1003 out: in drbg_hash_generate() 1097 out: in drbg_seed_from_random() 1233 out: in drbg_seed() [all …]
|
| A D | rsa-pkcs1pad.c | 85 goto out; in pkcs1pad_encrypt_complete() 92 goto out; in pkcs1pad_encrypt_complete() 97 goto out; in pkcs1pad_encrypt_complete() 106 out: in pkcs1pad_encrypt_complete() 119 goto out; in pkcs1pad_encrypt_complete_cb() 123 out: in pkcs1pad_encrypt_complete_cb() 234 goto out; in pkcs1pad_decrypt_complete_cb() 238 out: in pkcs1pad_decrypt_complete_cb()
|