rmd160.c (5800571960234f9d1f1011bf135799b2014d4268) | rmd160.c (d6ebf5286f8f94a254a8c90d4b9f2a8b076a8634) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later | |
2/* 3 * Cryptographic API. 4 * 5 * RIPEMD-160 - RACE Integrity Primitives Evaluation Message Digest. 6 * 7 * Based on the reference implementation by Antoon Bosselaers, ESAT-COSIC 8 * 9 * Copyright (c) 2008 Adrian-Ken Rueegsegger <ken@codelabs.ch> | 1/* 2 * Cryptographic API. 3 * 4 * RIPEMD-160 - RACE Integrity Primitives Evaluation Message Digest. 5 * 6 * Based on the reference implementation by Antoon Bosselaers, ESAT-COSIC 7 * 8 * Copyright (c) 2008 Adrian-Ken Rueegsegger <ken@codelabs.ch> |
9 * 10 * This program is free software; you can redistribute it and/or modify it 11 * under the terms of the GNU General Public License as published by the Free 12 * Software Foundation; either version 2 of the License, or (at your option) 13 * any later version. 14 * |
|
10 */ 11#include <crypto/internal/hash.h> 12#include <linux/init.h> 13#include <linux/module.h> 14#include <linux/mm.h> 15#include <linux/types.h> 16#include <asm/byteorder.h> 17 --- 319 unchanged lines hidden (view full) --- 337static struct shash_alg alg = { 338 .digestsize = RMD160_DIGEST_SIZE, 339 .init = rmd160_init, 340 .update = rmd160_update, 341 .final = rmd160_final, 342 .descsize = sizeof(struct rmd160_ctx), 343 .base = { 344 .cra_name = "rmd160", | 15 */ 16#include <crypto/internal/hash.h> 17#include <linux/init.h> 18#include <linux/module.h> 19#include <linux/mm.h> 20#include <linux/types.h> 21#include <asm/byteorder.h> 22 --- 319 unchanged lines hidden (view full) --- 342static struct shash_alg alg = { 343 .digestsize = RMD160_DIGEST_SIZE, 344 .init = rmd160_init, 345 .update = rmd160_update, 346 .final = rmd160_final, 347 .descsize = sizeof(struct rmd160_ctx), 348 .base = { 349 .cra_name = "rmd160", |
350 .cra_driver_name = "rmd160-generic", |
|
345 .cra_blocksize = RMD160_BLOCK_SIZE, 346 .cra_module = THIS_MODULE, 347 } 348}; 349 350static int __init rmd160_mod_init(void) 351{ 352 return crypto_register_shash(&alg); --- 14 unchanged lines hidden --- | 351 .cra_blocksize = RMD160_BLOCK_SIZE, 352 .cra_module = THIS_MODULE, 353 } 354}; 355 356static int __init rmd160_mod_init(void) 357{ 358 return crypto_register_shash(&alg); --- 14 unchanged lines hidden --- |