Home
last modified time | relevance | path

Searched refs:blocklen (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/crypto/
H A Dafsplit.c31 static void qcrypto_afsplit_xor(size_t blocklen, in qcrypto_afsplit_xor() argument
37 for (i = 0; i < blocklen; i++) { in qcrypto_afsplit_xor()
44 size_t blocklen, in qcrypto_afsplit_hash() argument
50 size_t hashcount = blocklen / digestlen; in qcrypto_afsplit_hash()
51 size_t finallen = blocklen % digestlen; in qcrypto_afsplit_hash()
89 size_t blocklen, in qcrypto_afsplit_encode() argument
95 g_autofree uint8_t *block = g_new0(uint8_t, blocklen); in qcrypto_afsplit_encode()
99 if (qcrypto_random_bytes(out + (i * blocklen), blocklen, errp) < 0) { in qcrypto_afsplit_encode()
103 qcrypto_afsplit_xor(blocklen, in qcrypto_afsplit_encode()
104 out + (i * blocklen), in qcrypto_afsplit_encode()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-crypto-afsplit.c31 size_t blocklen; member
41 .blocklen = 32,
73 .blocklen = 16,
82 .blocklen = 32,
93 .blocklen = 64,
133 size_t splitlen = data->blocklen * data->stripes; in test_afsplit()
135 uint8_t *key = g_new0(uint8_t, data->blocklen); in test_afsplit()
140 data->blocklen, data->stripes, in test_afsplit()
145 data->blocklen, data->stripes, in test_afsplit()
149 expect = hex_string(data->key, data->blocklen); in test_afsplit()
[all …]
/openbmc/qemu/include/crypto/
H A Dafsplit.h106 size_t blocklen,
128 size_t blocklen,
/openbmc/u-boot/tools/env/
H A Dfw_env.c892 size_t blocklen; /* erase / write length - one block on NAND, in flash_read_buf() local
912 blocklen = DEVESIZE(dev); in flash_read_buf()
915 if (readlen > blocklen - block_seek) in flash_read_buf()
916 readlen = blocklen - block_seek; in flash_read_buf()
918 blocklen = 0; in flash_read_buf()
934 blockstart += blocklen; in flash_read_buf()
956 readlen = min(blocklen, count - processed); in flash_read_buf()
958 blockstart += blocklen; in flash_read_buf()
974 size_t blocklen; /* length of NAND block / NOR erase sector */ in flash_write_buf() local
994 blocklen = count; in flash_write_buf()
[all …]
/openbmc/qemu/target/arm/tcg/
H A Dhelper-a64.c802 int blocklen = 4 << env_archcpu(env)->dcz_blocksize; in HELPER() local
803 uint64_t vaddr = vaddr_in & ~(blocklen - 1); in HELPER()
821 mem = probe_write(env, vaddr, blocklen, mmu_idx, ra); in HELPER()
828 for (int i = 0; i < blocklen; i++) { in HELPER()
837 memset(mem, 0, blocklen); in HELPER()