/kernel/linux/linux-5.10/arch/mips/crypto/ |
H A D | poly1305-glue.c | 20 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 22 poly1305_init_mips(&dctx->h, key); in poly1305_init_arch() 23 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch() 24 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch() 25 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch() 26 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch() 27 dctx->buflen = 0; in poly1305_init_arch() 33 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in mips_poly1305_init() local 35 dctx->buflen = 0; in mips_poly1305_init() 36 dctx in mips_poly1305_init() 42 mips_poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, u32 hibit) mips_poly1305_blocks() argument 73 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); mips_poly1305_update() local 102 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int nbytes) poly1305_update_arch() argument 135 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 151 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); mips_poly1305_final() local [all...] |
/kernel/linux/linux-6.6/arch/mips/crypto/ |
H A D | poly1305-glue.c | 20 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 22 poly1305_init_mips(&dctx->h, key); in poly1305_init_arch() 23 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch() 24 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch() 25 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch() 26 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch() 27 dctx->buflen = 0; in poly1305_init_arch() 33 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in mips_poly1305_init() local 35 dctx->buflen = 0; in mips_poly1305_init() 36 dctx in mips_poly1305_init() 42 mips_poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, u32 hibit) mips_poly1305_blocks() argument 73 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); mips_poly1305_update() local 102 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int nbytes) poly1305_update_arch() argument 135 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 151 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); mips_poly1305_final() local [all...] |
/kernel/linux/linux-6.6/lib/zstd/decompress/ |
H A D | zstd_decompress.c | 213 size_t ZSTD_sizeof_DCtx (const ZSTD_DCtx* dctx) in ZSTD_sizeof_DCtx() argument 215 if (dctx==NULL) return 0; /* support sizeof NULL */ in ZSTD_sizeof_DCtx() 216 return sizeof(*dctx) in ZSTD_sizeof_DCtx() 217 + ZSTD_sizeof_DDict(dctx->ddictLocal) in ZSTD_sizeof_DCtx() 218 + dctx->inBuffSize + dctx->outBuffSize; in ZSTD_sizeof_DCtx() 232 static void ZSTD_DCtx_resetParameters(ZSTD_DCtx* dctx) in ZSTD_DCtx_resetParameters() argument 234 assert(dctx->streamStage == zdss_init); in ZSTD_DCtx_resetParameters() 235 dctx->format = ZSTD_f_zstd1; in ZSTD_DCtx_resetParameters() 236 dctx in ZSTD_DCtx_resetParameters() 242 ZSTD_initDCtx_internal(ZSTD_DCtx* dctx) ZSTD_initDCtx_internal() argument 268 ZSTD_DCtx* const dctx = (ZSTD_DCtx*) workspace; ZSTD_initStaticDCtx() local 282 { ZSTD_DCtx* const dctx = (ZSTD_DCtx*)ZSTD_customMalloc(sizeof(*dctx), customMem); ZSTD_createDCtx_internal() local 301 ZSTD_clearDict(ZSTD_DCtx* dctx) ZSTD_clearDict() argument 309 ZSTD_freeDCtx(ZSTD_DCtx* dctx) ZSTD_freeDCtx() argument 341 ZSTD_DCtx_selectFrameDDict(ZSTD_DCtx* dctx) ZSTD_DCtx_selectFrameDDict() argument 647 ZSTD_decodeFrameHeader(ZSTD_DCtx* dctx, const void* src, size_t headerSize) ZSTD_decodeFrameHeader() argument 783 ZSTD_insertBlock(ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize) ZSTD_insertBlock() argument 818 ZSTD_DCtx_trace_end(ZSTD_DCtx const* dctx, U64 uncompressedSize, U64 compressedSize, unsigned streaming) ZSTD_DCtx_trace_end() argument 831 ZSTD_decompressFrame(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void** srcPtr, size_t *srcSizePtr) ZSTD_decompressFrame() argument 938 ZSTD_decompressMultiFrame(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict, size_t dictSize, const ZSTD_DDict* ddict) ZSTD_decompressMultiFrame() argument 1008 ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const void* dict, size_t dictSize) ZSTD_decompress_usingDict() argument 1017 ZSTD_getDDict(ZSTD_DCtx* dctx) ZSTD_getDDict() argument 1034 ZSTD_decompressDCtx(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_decompressDCtx() argument 1044 ZSTD_DCtx* const dctx = ZSTD_createDCtx_internal(ZSTD_defaultCMem); ZSTD_decompress() local 1061 ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx) ZSTD_nextSrcSizeToDecompress() argument 1073 ZSTD_nextSrcSizeToDecompressWithInputSize(ZSTD_DCtx* dctx, size_t inputSize) ZSTD_nextSrcSizeToDecompressWithInputSize() argument 1081 ZSTD_nextInputType(ZSTD_DCtx* dctx) ZSTD_nextInputType() argument 1106 ZSTD_isSkipFrame(ZSTD_DCtx* dctx) ZSTD_isSkipFrame() argument 1112 ZSTD_decompressContinue(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) ZSTD_decompressContinue() argument 1270 ZSTD_refDictContent(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) ZSTD_refDictContent() argument 1374 ZSTD_decompress_insertDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) ZSTD_decompress_insertDictionary() argument 1395 ZSTD_decompressBegin(ZSTD_DCtx* dctx) ZSTD_decompressBegin() argument 1419 ZSTD_decompressBegin_usingDict(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) ZSTD_decompressBegin_usingDict() argument 1432 ZSTD_decompressBegin_usingDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) ZSTD_decompressBegin_usingDDict() argument 1487 ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const ZSTD_DDict* ddict) ZSTD_decompress_usingDDict() argument 1530 ZSTD_DCtx_loadDictionary_advanced(ZSTD_DCtx* dctx, const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType) ZSTD_DCtx_loadDictionary_advanced() argument 1546 ZSTD_DCtx_loadDictionary_byReference(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) ZSTD_DCtx_loadDictionary_byReference() argument 1551 ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize) ZSTD_DCtx_loadDictionary() argument 1556 ZSTD_DCtx_refPrefix_advanced(ZSTD_DCtx* dctx, const void* prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType) ZSTD_DCtx_refPrefix_advanced() argument 1563 ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, const void* prefix, size_t prefixSize) ZSTD_DCtx_refPrefix() argument 1590 ZSTD_initDStream_usingDDict(ZSTD_DStream* dctx, const ZSTD_DDict* ddict) ZSTD_initDStream_usingDDict() argument 1600 ZSTD_resetDStream(ZSTD_DStream* dctx) ZSTD_resetDStream() argument 1607 ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) ZSTD_DCtx_refDDict() argument 1631 ZSTD_DCtx_setMaxWindowSize(ZSTD_DCtx* dctx, size_t maxWindowSize) ZSTD_DCtx_setMaxWindowSize() argument 1643 ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format) ZSTD_DCtx_setFormat() argument 1695 ZSTD_DCtx_getParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int* value) ZSTD_DCtx_getParameter() argument 1718 ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter dParam, int value) ZSTD_DCtx_setParameter() argument 1751 ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset) ZSTD_DCtx_reset() argument 1768 ZSTD_sizeof_DStream(const ZSTD_DStream* dctx) ZSTD_sizeof_DStream() argument 2138 ZSTD_decompressStream_simpleArgs( ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, size_t* dstPos, const void* src, size_t srcSize, size_t* srcPos) ZSTD_decompressStream_simpleArgs() argument [all...] |
H A D | zstd_decompress_block.c | 73 static void ZSTD_allocateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity, const size_t litSize, in ZSTD_allocateLiteralsBuffer() argument 79 dctx->litBuffer = (BYTE*)dst + ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer() 80 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer() 81 dctx->litBufferLocation = ZSTD_in_dst; in ZSTD_allocateLiteralsBuffer() 88 dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OVERLENGTH; in ZSTD_allocateLiteralsBuffer() 89 dctx->litBufferEnd = dctx->litBuffer + litSize - ZSTD_LITBUFFEREXTRASIZE; in ZSTD_allocateLiteralsBuffer() 93 dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize; in ZSTD_allocateLiteralsBuffer() 94 dctx in ZSTD_allocateLiteralsBuffer() 119 ZSTD_decodeLiteralsBlock(ZSTD_DCtx* dctx, const void* src, size_t srcSize, void* dst, size_t dstCapacity, const streaming_operation streaming) ZSTD_decodeLiteralsBlock() argument 653 ZSTD_decodeSeqHeaders(ZSTD_DCtx* dctx, int* nbSeqPtr, const void* src, size_t srcSize) ZSTD_decodeSeqHeaders() argument 1272 ZSTD_dictionaryIsActive(ZSTD_DCtx const* dctx, BYTE const* prefixStart, BYTE const* oLitEnd) global() argument 1287 ZSTD_assertValidSequence( ZSTD_DCtx const* dctx, BYTE const* op, BYTE const* oend, seq_t const seq, BYTE const* prefixStart, BYTE const* virtualStart) global() argument 1322 ZSTD_decompressSequences_bodySplitLitBuffer( ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1539 ZSTD_decompressSequences_body(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1627 ZSTD_decompressSequences_default(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1637 ZSTD_decompressSequencesSplitLitBuffer_default(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1667 ZSTD_decompressSequencesLong_body( ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1834 ZSTD_decompressSequencesLong_default(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1851 ZSTD_decompressSequences_bmi2(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1861 ZSTD_decompressSequencesSplitLitBuffer_bmi2(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1873 ZSTD_decompressSequencesLong_bmi2(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1894 ZSTD_decompressSequences(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1908 ZSTD_decompressSequencesSplitLitBuffer(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1931 ZSTD_decompressSequencesLong(ZSTD_DCtx* dctx, void* dst, size_t maxDstSize, const void* seqStart, size_t seqSize, int nbSeq, const ZSTD_longOffset_e isLongOffset, const int frame) global() argument 1978 ZSTD_decompressBlock_internal(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize, const int frame, const streaming_operation streaming) global() argument 2052 ZSTD_checkContinuity(ZSTD_DCtx* dctx, const void* dst, size_t dstSize) global() argument 2063 ZSTD_decompressBlock(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize) global() argument [all...] |
H A D | zstd_ddict.c | 55 void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict) in ZSTD_copyDDictParameters() argument 58 assert(dctx != NULL); in ZSTD_copyDDictParameters() 60 dctx->dictID = ddict->dictID; in ZSTD_copyDDictParameters() 61 dctx->prefixStart = ddict->dictContent; in ZSTD_copyDDictParameters() 62 dctx->virtualStart = ddict->dictContent; in ZSTD_copyDDictParameters() 63 dctx->dictEnd = (const BYTE*)ddict->dictContent + ddict->dictSize; in ZSTD_copyDDictParameters() 64 dctx->previousDstEnd = dctx->dictEnd; in ZSTD_copyDDictParameters() 66 dctx->dictContentBeginForFuzzing = dctx in ZSTD_copyDDictParameters() [all...] |
/kernel/linux/linux-6.6/arch/powerpc/crypto/ |
H A D | poly1305-p10-glue.c | 39 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in crypto_poly1305_p10_init() local 41 poly1305_core_init(&dctx->h); in crypto_poly1305_p10_init() 42 dctx->buflen = 0; in crypto_poly1305_p10_init() 43 dctx->rset = 0; in crypto_poly1305_p10_init() 44 dctx->sset = false; in crypto_poly1305_p10_init() 49 static unsigned int crypto_poly1305_setdctxkey(struct poly1305_desc_ctx *dctx, in crypto_poly1305_setdctxkey() argument 54 if (unlikely(!dctx->sset)) { in crypto_poly1305_setdctxkey() 55 if (!dctx->rset && len >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdctxkey() 56 struct poly1305_core_key *key = &dctx->core_r; in crypto_poly1305_setdctxkey() 63 dctx in crypto_poly1305_setdctxkey() 80 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_p10_update() local 135 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_p10_final() local [all...] |
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | poly1305-glue.c | 32 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 34 poly1305_init_arm(&dctx->h, key); in poly1305_init_arch() 35 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch() 36 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch() 37 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch() 38 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch() 39 dctx->buflen = 0; in poly1305_init_arch() 45 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in arm_poly1305_init() local 47 dctx->buflen = 0; in arm_poly1305_init() 48 dctx in arm_poly1305_init() 54 arm_poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, u32 hibit, bool do_neon) arm_poly1305_blocks() argument 85 arm_poly1305_do_update(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, bool do_neon) arm_poly1305_do_update() argument 118 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); arm_poly1305_update() local 128 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); arm_poly1305_update_neon() local 139 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int nbytes) poly1305_update_arch() argument 188 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 204 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); arm_poly1305_final() local [all...] |
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | poly1305-glue.c | 32 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 34 poly1305_init_arm(&dctx->h, key); in poly1305_init_arch() 35 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch() 36 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch() 37 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch() 38 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch() 39 dctx->buflen = 0; in poly1305_init_arch() 45 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in arm_poly1305_init() local 47 dctx->buflen = 0; in arm_poly1305_init() 48 dctx in arm_poly1305_init() 54 arm_poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, u32 hibit, bool do_neon) arm_poly1305_blocks() argument 85 arm_poly1305_do_update(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, bool do_neon) arm_poly1305_do_update() argument 118 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); arm_poly1305_update() local 128 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); arm_poly1305_update_neon() local 139 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int nbytes) poly1305_update_arch() argument 188 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 204 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); arm_poly1305_final() local [all...] |
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | poly1305-glue.c | 28 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 30 poly1305_init_arm64(&dctx->h, key); in poly1305_init_arch() 31 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch() 32 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch() 33 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch() 34 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch() 35 dctx->buflen = 0; in poly1305_init_arch() 41 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in neon_poly1305_init() local 43 dctx->buflen = 0; in neon_poly1305_init() 44 dctx in neon_poly1305_init() 50 neon_poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, u32 hibit, bool do_neon) neon_poly1305_blocks() argument 81 neon_poly1305_do_update(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, bool do_neon) neon_poly1305_do_update() argument 115 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); neon_poly1305_update() local 125 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int nbytes) poly1305_update_arch() argument 170 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 186 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); neon_poly1305_final() local [all...] |
H A D | polyval-ce-glue.c | 94 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_arm64_init() local 96 memset(dctx, 0, sizeof(*dctx)); in polyval_arm64_init() 104 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_arm64_update() local 110 if (dctx->bytes) { in polyval_arm64_update() 111 n = min(srclen, dctx->bytes); in polyval_arm64_update() 112 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - dctx->bytes; in polyval_arm64_update() 114 dctx->bytes -= n; in polyval_arm64_update() 120 if (!dctx in polyval_arm64_update() 145 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); polyval_arm64_final() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | poly1305-glue.c | 28 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 30 poly1305_init_arm64(&dctx->h, key); in poly1305_init_arch() 31 dctx->s[0] = get_unaligned_le32(key + 16); in poly1305_init_arch() 32 dctx->s[1] = get_unaligned_le32(key + 20); in poly1305_init_arch() 33 dctx->s[2] = get_unaligned_le32(key + 24); in poly1305_init_arch() 34 dctx->s[3] = get_unaligned_le32(key + 28); in poly1305_init_arch() 35 dctx->buflen = 0; in poly1305_init_arch() 41 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in neon_poly1305_init() local 43 dctx->buflen = 0; in neon_poly1305_init() 44 dctx in neon_poly1305_init() 50 neon_poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, u32 hibit, bool do_neon) neon_poly1305_blocks() argument 81 neon_poly1305_do_update(struct poly1305_desc_ctx *dctx, const u8 *src, u32 len, bool do_neon) neon_poly1305_do_update() argument 115 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); neon_poly1305_update() local 125 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int nbytes) poly1305_update_arch() argument 170 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 186 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); neon_poly1305_final() local [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | poly1305_generic.c | 24 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in crypto_poly1305_init() local 26 poly1305_core_init(&dctx->h); in crypto_poly1305_init() 27 dctx->buflen = 0; in crypto_poly1305_init() 28 dctx->rset = 0; in crypto_poly1305_init() 29 dctx->sset = false; in crypto_poly1305_init() 34 static unsigned int crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, in crypto_poly1305_setdesckey() argument 37 if (!dctx->sset) { in crypto_poly1305_setdesckey() 38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey() 39 poly1305_core_setkey(&dctx->core_r, src); in crypto_poly1305_setdesckey() 42 dctx in crypto_poly1305_setdesckey() 57 poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) poly1305_blocks() argument 75 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_update() local 108 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_final() local [all...] |
H A D | ghash-generic.c | 48 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 50 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 81 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 83 u8 *dst = dctx->buffer; in ghash_update() 85 if (dctx->bytes) { in ghash_update() 86 int n = min(srclen, dctx->bytes); in ghash_update() 87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 89 dctx->bytes -= n; in ghash_update() 95 if (!dctx in ghash_update() 115 ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) ghash_flush() argument 133 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); ghash_final() local [all...] |
H A D | des_generic.c | 22 struct des_ctx *dctx = crypto_tfm_ctx(tfm); in des_setkey() local 25 err = des_expand_key(dctx, key, keylen); in des_setkey() 33 memset(dctx, 0, sizeof(*dctx)); in des_setkey() 39 const struct des_ctx *dctx = crypto_tfm_ctx(tfm); in crypto_des_encrypt() local 41 des_encrypt(dctx, dst, src); in crypto_des_encrypt() 46 const struct des_ctx *dctx = crypto_tfm_ctx(tfm); in crypto_des_decrypt() local 48 des_decrypt(dctx, dst, src); in crypto_des_decrypt() 54 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_setkey() local 57 err = des3_ede_expand_key(dctx, ke in des3_ede_setkey() 72 const struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); crypto_des3_ede_encrypt() local 80 const struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); crypto_des3_ede_decrypt() local [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | poly1305_generic.c | 24 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); in crypto_poly1305_init() local 26 poly1305_core_init(&dctx->h); in crypto_poly1305_init() 27 dctx->buflen = 0; in crypto_poly1305_init() 28 dctx->rset = 0; in crypto_poly1305_init() 29 dctx->sset = false; in crypto_poly1305_init() 34 static unsigned int crypto_poly1305_setdesckey(struct poly1305_desc_ctx *dctx, in crypto_poly1305_setdesckey() argument 37 if (!dctx->sset) { in crypto_poly1305_setdesckey() 38 if (!dctx->rset && srclen >= POLY1305_BLOCK_SIZE) { in crypto_poly1305_setdesckey() 39 poly1305_core_setkey(&dctx->core_r, src); in crypto_poly1305_setdesckey() 42 dctx in crypto_poly1305_setdesckey() 57 poly1305_blocks(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) poly1305_blocks() argument 75 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_update() local 108 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_final() local [all...] |
H A D | ghash-generic.c | 48 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 50 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 81 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 83 u8 *dst = dctx->buffer; in ghash_update() 85 if (dctx->bytes) { in ghash_update() 86 int n = min(srclen, dctx->bytes); in ghash_update() 87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 89 dctx->bytes -= n; in ghash_update() 95 if (!dctx in ghash_update() 115 ghash_flush(struct ghash_ctx *ctx, struct ghash_desc_ctx *dctx) ghash_flush() argument 133 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); ghash_final() local [all...] |
H A D | polyval-generic.c | 145 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_init() local 147 memset(dctx, 0, sizeof(*dctx)); in polyval_init() 155 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); in polyval_update() local 161 if (dctx->bytes) { in polyval_update() 162 n = min(srclen, dctx->bytes); in polyval_update() 163 pos = dctx->buffer + dctx->bytes - 1; in polyval_update() 165 dctx->bytes -= n; in polyval_update() 171 if (!dctx in polyval_update() 195 struct polyval_desc_ctx *dctx = shash_desc_ctx(desc); polyval_final() local [all...] |
H A D | des_generic.c | 22 struct des_ctx *dctx = crypto_tfm_ctx(tfm); in des_setkey() local 25 err = des_expand_key(dctx, key, keylen); in des_setkey() 33 memset(dctx, 0, sizeof(*dctx)); in des_setkey() 39 const struct des_ctx *dctx = crypto_tfm_ctx(tfm); in crypto_des_encrypt() local 41 des_encrypt(dctx, dst, src); in crypto_des_encrypt() 46 const struct des_ctx *dctx = crypto_tfm_ctx(tfm); in crypto_des_decrypt() local 48 des_decrypt(dctx, dst, src); in crypto_des_decrypt() 54 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_setkey() local 57 err = des3_ede_expand_key(dctx, ke in des3_ede_setkey() 72 const struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); crypto_des3_ede_encrypt() local 80 const struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); crypto_des3_ede_decrypt() local [all...] |
/kernel/linux/linux-5.10/drivers/crypto/vmx/ |
H A D | ghash.c | 47 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_init() local 49 dctx->bytes = 0; in p8_ghash_init() 50 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init() 76 struct p8_ghash_desc_ctx *dctx) in __ghash_block() 82 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_block() 83 dctx->buffer, GHASH_DIGEST_SIZE); in __ghash_block() 88 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block() 89 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block() 94 struct p8_ghash_desc_ctx *dctx, in __ghash_blocks() 75 __ghash_block(struct p8_ghash_ctx *ctx, struct p8_ghash_desc_ctx *dctx) __ghash_block() argument 93 __ghash_blocks(struct p8_ghash_ctx *ctx, struct p8_ghash_desc_ctx *dctx, const u8 *src, unsigned int srclen) __ghash_blocks() argument 121 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); p8_ghash_update() local 156 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); p8_ghash_final() local [all...] |
/kernel/linux/linux-6.6/drivers/crypto/vmx/ |
H A D | ghash.c | 48 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_init() local 50 dctx->bytes = 0; in p8_ghash_init() 51 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init() 77 struct p8_ghash_desc_ctx *dctx) in __ghash_block() 83 gcm_ghash_p8(dctx->shash, ctx->htable, in __ghash_block() 84 dctx->buffer, GHASH_DIGEST_SIZE); in __ghash_block() 89 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block() 90 gf128mul_lle((be128 *)dctx->shash, &ctx->key); in __ghash_block() 95 struct p8_ghash_desc_ctx *dctx, in __ghash_blocks() 76 __ghash_block(struct p8_ghash_ctx *ctx, struct p8_ghash_desc_ctx *dctx) __ghash_block() argument 94 __ghash_blocks(struct p8_ghash_ctx *ctx, struct p8_ghash_desc_ctx *dctx, const u8 *src, unsigned int srclen) __ghash_blocks() argument 122 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); p8_ghash_update() local 157 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); p8_ghash_final() local [all...] |
/kernel/linux/linux-6.6/arch/x86/crypto/ |
H A D | poly1305_glue.c | 132 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 134 poly1305_simd_init(&dctx->h, key); in poly1305_init_arch() 135 dctx->s[0] = get_unaligned_le32(&key[16]); in poly1305_init_arch() 136 dctx->s[1] = get_unaligned_le32(&key[20]); in poly1305_init_arch() 137 dctx->s[2] = get_unaligned_le32(&key[24]); in poly1305_init_arch() 138 dctx->s[3] = get_unaligned_le32(&key[28]); in poly1305_init_arch() 139 dctx->buflen = 0; in poly1305_init_arch() 140 dctx->sset = true; in poly1305_init_arch() 144 static unsigned int crypto_poly1305_setdctxkey(struct poly1305_desc_ctx *dctx, in crypto_poly1305_setdctxkey() argument 148 if (unlikely(!dctx in crypto_poly1305_setdctxkey() 168 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) poly1305_update_arch() argument 203 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 219 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_init() local 228 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_update() local 236 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_final() local [all...] |
/kernel/linux/linux-5.10/arch/x86/crypto/ |
H A D | poly1305_glue.c | 132 void poly1305_init_arch(struct poly1305_desc_ctx *dctx, const u8 key[POLY1305_KEY_SIZE]) in poly1305_init_arch() argument 134 poly1305_simd_init(&dctx->h, key); in poly1305_init_arch() 135 dctx->s[0] = get_unaligned_le32(&key[16]); in poly1305_init_arch() 136 dctx->s[1] = get_unaligned_le32(&key[20]); in poly1305_init_arch() 137 dctx->s[2] = get_unaligned_le32(&key[24]); in poly1305_init_arch() 138 dctx->s[3] = get_unaligned_le32(&key[28]); in poly1305_init_arch() 139 dctx->buflen = 0; in poly1305_init_arch() 140 dctx->sset = true; in poly1305_init_arch() 144 static unsigned int crypto_poly1305_setdctxkey(struct poly1305_desc_ctx *dctx, in crypto_poly1305_setdctxkey() argument 148 if (unlikely(!dctx in crypto_poly1305_setdctxkey() 168 poly1305_update_arch(struct poly1305_desc_ctx *dctx, const u8 *src, unsigned int srclen) poly1305_update_arch() argument 203 poly1305_final_arch(struct poly1305_desc_ctx *dctx, u8 *dst) poly1305_final_arch() argument 219 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_init() local 228 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_update() local 236 struct poly1305_desc_ctx *dctx = shash_desc_ctx(desc); crypto_poly1305_final() local [all...] |
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | ghash_s390.c | 32 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 35 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 36 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_init() 57 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 59 u8 *buf = dctx->buffer; in ghash_update() 61 if (dctx->bytes) { in ghash_update() 62 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 64 n = min(srclen, dctx->bytes); in ghash_update() 65 dctx in ghash_update() 92 ghash_flush(struct ghash_desc_ctx *dctx) ghash_flush() argument 109 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); ghash_final() local [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | ghash_s390.c | 32 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 35 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 36 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_init() 57 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 59 u8 *buf = dctx->buffer; in ghash_update() 61 if (dctx->bytes) { in ghash_update() 62 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 64 n = min(srclen, dctx->bytes); in ghash_update() 65 dctx in ghash_update() 92 ghash_flush(struct ghash_desc_ctx *dctx) ghash_flush() argument 109 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); ghash_final() local [all...] |
/kernel/linux/linux-5.10/lib/zstd/ |
H A D | decompress.c | 106 size_t ZSTD_decompressBegin(ZSTD_DCtx *dctx) in ZSTD_decompressBegin() argument 108 dctx->expected = ZSTD_frameHeaderSize_prefix; in ZSTD_decompressBegin() 109 dctx->stage = ZSTDds_getFrameHeaderSize; in ZSTD_decompressBegin() 110 dctx->previousDstEnd = NULL; in ZSTD_decompressBegin() 111 dctx->base = NULL; in ZSTD_decompressBegin() 112 dctx->vBase = NULL; in ZSTD_decompressBegin() 113 dctx->dictEnd = NULL; in ZSTD_decompressBegin() 114 dctx->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endian */ in ZSTD_decompressBegin() 115 dctx->litEntropy = dctx in ZSTD_decompressBegin() 128 ZSTD_DCtx *dctx; ZSTD_createDCtx_advanced() local 147 ZSTD_freeDCtx(ZSTD_DCtx *dctx) ZSTD_freeDCtx() argument 372 ZSTD_decodeFrameHeader(ZSTD_DCtx *dctx, const void *src, size_t headerSize) ZSTD_decodeFrameHeader() argument 432 ZSTD_decodeLiteralsBlock(ZSTD_DCtx *dctx, const void *src, size_t srcSize) ZSTD_decodeLiteralsBlock() argument 794 ZSTD_decodeSeqHeaders(ZSTD_DCtx *dctx, int *nbSeqPtr, const void *src, size_t srcSize) ZSTD_decodeSeqHeaders() argument 1093 ZSTD_decompressSequences(ZSTD_DCtx *dctx, void *dst, size_t maxDstSize, const void *seqStart, size_t seqSize) ZSTD_decompressSequences() argument 1348 ZSTD_decompressSequencesLong(ZSTD_DCtx *dctx, void *dst, size_t maxDstSize, const void *seqStart, size_t seqSize) ZSTD_decompressSequencesLong() argument 1445 ZSTD_decompressBlock_internal(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_decompressBlock_internal() argument 1469 ZSTD_checkContinuity(ZSTD_DCtx *dctx, const void *dst) ZSTD_checkContinuity() argument 1479 ZSTD_decompressBlock(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_decompressBlock() argument 1490 ZSTD_insertBlock(ZSTD_DCtx *dctx, const void *blockStart, size_t blockSize) ZSTD_insertBlock() argument 1566 ZSTD_decompressFrame(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void **srcPtr, size_t *srcSizePtr) ZSTD_decompressFrame() argument 1643 ZSTD_decompressMultiFrame(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize, const ZSTD_DDict *ddict) ZSTD_decompressMultiFrame() argument 1707 ZSTD_decompress_usingDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const void *dict, size_t dictSize) ZSTD_decompress_usingDict() argument 1712 ZSTD_decompressDCtx(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_decompressDCtx() argument 1721 ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx *dctx) ZSTD_nextSrcSizeToDecompress() argument 1723 ZSTD_nextInputType(ZSTD_DCtx *dctx) ZSTD_nextInputType() argument 1738 ZSTD_isSkipFrame(ZSTD_DCtx *dctx) ZSTD_isSkipFrame() argument 1743 ZSTD_decompressContinue(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize) ZSTD_decompressContinue() argument 1862 ZSTD_refDictContent(ZSTD_DCtx *dctx, const void *dict, size_t dictSize) ZSTD_refDictContent() argument 1943 ZSTD_decompress_insertDictionary(ZSTD_DCtx *dctx, const void *dict, size_t dictSize) ZSTD_decompress_insertDictionary() argument 1969 ZSTD_decompressBegin_usingDict(ZSTD_DCtx *dctx, const void *dict, size_t dictSize) ZSTD_decompressBegin_usingDict() argument 2147 ZSTD_decompress_usingDDict(ZSTD_DCtx *dctx, void *dst, size_t dstCapacity, const void *src, size_t srcSize, const ZSTD_DDict *ddict) ZSTD_decompress_usingDDict() argument 2161 ZSTD_DCtx *dctx; global() member [all...] |