Lines Matching refs:HashCtx
49 VOID *HashCtx;
53 HashCtx = NULL;
60 HashCtx = AllocatePool (CtxSize);
61 if (HashCtx == NULL) {
64 Status = Sha1Init (HashCtx);
65 Status = Sha1Update (HashCtx, Data, DataSize);
66 Status = Sha1Final (HashCtx, HashValue);
73 HashCtx = AllocatePool (CtxSize);
74 if (HashCtx == NULL) {
77 Status = Sha256Init (HashCtx);
78 Status = Sha256Update (HashCtx, Data, DataSize);
79 Status = Sha256Final (HashCtx, HashValue);
86 HashCtx = AllocatePool (CtxSize);
87 if (HashCtx == NULL) {
90 Status = Sha384Init (HashCtx);
91 Status = Sha384Update (HashCtx, Data, DataSize);
92 Status = Sha384Final (HashCtx, HashValue);
99 HashCtx = AllocatePool (CtxSize);
100 if (HashCtx == NULL) {
103 Status = Sha512Init (HashCtx);
104 Status = Sha512Update (HashCtx, Data, DataSize);
105 Status = Sha512Final (HashCtx, HashValue);
109 if (HashCtx != NULL) {
110 FreePool (HashCtx);