diff options
author | Jonathan Doman <jonathan.doman@hp.com> | 2015-06-29 05:31:44 +0000 |
---|---|---|
committer | czhang46 <czhang46@Edk2> | 2015-06-29 05:31:44 +0000 |
commit | cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd (patch) | |
tree | 5d5edaf9f1a2f8546516971a2a9ac1de10e30f29 /SecurityPkg/Hash2DxeCrypto | |
parent | 16e3d2e89f1d044cd97009cf567044fbc1f22f03 (diff) | |
download | edk2-cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd.tar.gz edk2-cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd.tar.bz2 edk2-cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd.zip |
SecurityPkg: Add MD5 support to Hash2DxeCrypto
MD5 is part of the HASH2 protocol and it's trivial to support.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jonathan Doman <jonathan.doman@hp.com>
Reviewed-by: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@hp.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17729 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Hash2DxeCrypto')
-rw-r--r-- | SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c | 2 | ||||
-rw-r--r-- | SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c b/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c index 92cda36455..6a7ecf2a2d 100644 --- a/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c +++ b/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.c @@ -1,6 +1,7 @@ /** @file
This module implements Hash2 Protocol.
+(C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
the terms and conditions of the BSD License that accompanies this distribution.
@@ -125,6 +126,7 @@ typedef struct { } EFI_HASH_INFO;
EFI_HASH_INFO mHashInfo[] = {
+ {&gEfiHashAlgorithmMD5Guid, sizeof(EFI_MD5_HASH2), Md5GetContextSize, Md5Init, Md5Update, Md5Final },
{&gEfiHashAlgorithmSha1Guid, sizeof(EFI_SHA1_HASH2), Sha1GetContextSize, Sha1Init, Sha1Update, Sha1Final },
{&gEfiHashAlgorithmSha256Guid, sizeof(EFI_SHA256_HASH2), Sha256GetContextSize, Sha256Init, Sha256Update, Sha256Final },
{&gEfiHashAlgorithmSha384Guid, sizeof(EFI_SHA384_HASH2), Sha384GetContextSize, Sha384Init, Sha384Update, Sha384Final },
diff --git a/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf b/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf index 1dce0023a8..557dedbbea 100644 --- a/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf +++ b/SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf @@ -3,6 +3,7 @@ #
# This module will use EDKII crypto libary to HASH2 protocol.
#
+# (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>
# Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
@@ -49,6 +50,7 @@ UefiLib
[Guids]
+ gEfiHashAlgorithmMD5Guid ## CONSUMES ## GUID
gEfiHashAlgorithmSha1Guid ## CONSUMES ## GUID
gEfiHashAlgorithmSha256Guid ## CONSUMES ## GUID
gEfiHashAlgorithmSha384Guid ## CONSUMES ## GUID
|