@@ -1173,25 +1173,25 @@ class function THashFactory.TCrypto.CreateBlake2B(const AConfig: IBlake2BConfig;
11731173class function THashFactory.TCrypto .CreateBlake2B_160: IHash;
11741174begin
11751175 Result := THashFactory.TCrypto.CreateBlake2B
1176- (TBlake2BConfig.Create(THashSize.hsHashSize160));
1176+ (TBlake2BConfig.Create(THashSize.hsHashSize160) as IBlake2BConfig );
11771177end ;
11781178
11791179class function THashFactory.TCrypto .CreateBlake2B_256: IHash;
11801180begin
11811181 Result := THashFactory.TCrypto.CreateBlake2B
1182- (TBlake2BConfig.Create(THashSize.hsHashSize256));
1182+ (TBlake2BConfig.Create(THashSize.hsHashSize256) as IBlake2BConfig );
11831183end ;
11841184
11851185class function THashFactory.TCrypto .CreateBlake2B_384: IHash;
11861186begin
11871187 Result := THashFactory.TCrypto.CreateBlake2B
1188- (TBlake2BConfig.Create(THashSize.hsHashSize384));
1188+ (TBlake2BConfig.Create(THashSize.hsHashSize384) as IBlake2BConfig );
11891189end ;
11901190
11911191class function THashFactory.TCrypto .CreateBlake2B_512: IHash;
11921192begin
11931193 Result := THashFactory.TCrypto.CreateBlake2B
1194- (TBlake2BConfig.Create(THashSize.hsHashSize512));
1194+ (TBlake2BConfig.Create(THashSize.hsHashSize512) as IBlake2BConfig );
11951195end ;
11961196
11971197class function THashFactory.TCrypto .CreateBlake2S(const AConfig: IBlake2SConfig;
@@ -1210,25 +1210,25 @@ class function THashFactory.TCrypto.CreateBlake2S(const AConfig: IBlake2SConfig;
12101210class function THashFactory.TCrypto .CreateBlake2S_128: IHash;
12111211begin
12121212 Result := THashFactory.TCrypto.CreateBlake2S
1213- (TBlake2SConfig.Create(THashSize.hsHashSize128));
1213+ (TBlake2SConfig.Create(THashSize.hsHashSize128) as IBlake2SConfig );
12141214end ;
12151215
12161216class function THashFactory.TCrypto .CreateBlake2S_160: IHash;
12171217begin
12181218 Result := THashFactory.TCrypto.CreateBlake2S
1219- (TBlake2SConfig.Create(THashSize.hsHashSize160));
1219+ (TBlake2SConfig.Create(THashSize.hsHashSize160) as IBlake2SConfig );
12201220end ;
12211221
12221222class function THashFactory.TCrypto .CreateBlake2S_224: IHash;
12231223begin
12241224 Result := THashFactory.TCrypto.CreateBlake2S
1225- (TBlake2SConfig.Create(THashSize.hsHashSize224));
1225+ (TBlake2SConfig.Create(THashSize.hsHashSize224) as IBlake2SConfig );
12261226end ;
12271227
12281228class function THashFactory.TCrypto .CreateBlake2S_256: IHash;
12291229begin
12301230 Result := THashFactory.TCrypto.CreateBlake2S
1231- (TBlake2SConfig.Create(THashSize.hsHashSize256));
1231+ (TBlake2SConfig.Create(THashSize.hsHashSize256) as IBlake2SConfig );
12321232end ;
12331233
12341234class function THashFactory.TCrypto .CreateBlake2BP(AHashSize: Int32;
0 commit comments