|
@@ -30,7 +30,7 @@ Rem
|
|
bbdoc: Gets a digest of the specified @name.
|
|
bbdoc: Gets a digest of the specified @name.
|
|
about: A #TNoSuchAlgorithmException is thrown if the requested digest is not available.
|
|
about: A #TNoSuchAlgorithmException is thrown if the requested digest is not available.
|
|
End Rem
|
|
End Rem
|
|
-Function GeTMessageDigest:TMessageDigest(name:String)
|
|
|
|
|
|
+Function GetMessageDigest:TMessageDigest(name:String)
|
|
Local d:TMessageDigest
|
|
Local d:TMessageDigest
|
|
Local register:TDigestRegister=digest_registry
|
|
Local register:TDigestRegister=digest_registry
|
|
|
|
|
|
@@ -46,6 +46,26 @@ Function GeTMessageDigest:TMessageDigest(name:String)
|
|
Return d
|
|
Return d
|
|
End Function
|
|
End Function
|
|
|
|
|
|
|
|
+Rem
|
|
|
|
+bbdoc: Returns a list of all currently registered digests.
|
|
|
|
+about: The returned digest names can be used with #GetMessageDigest to get a #TMessageDigest instance.
|
|
|
|
+End Rem
|
|
|
|
+Function ListDigests:TArrayList<String>()
|
|
|
|
+
|
|
|
|
+ Local list:TArrayLIst<String> = New TArrayList<String>()
|
|
|
|
+
|
|
|
|
+ Local register:TDigestRegister=digest_registry
|
|
|
|
+
|
|
|
|
+ While register
|
|
|
|
+ list.Add(register.ToString())
|
|
|
|
+ register = register._succ
|
|
|
|
+ Wend
|
|
|
|
+
|
|
|
|
+ list.Sort()
|
|
|
|
+
|
|
|
|
+ Return list
|
|
|
|
+End Function
|
|
|
|
+
|
|
Rem
|
|
Rem
|
|
bbdoc: This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
|
|
bbdoc: This exception is thrown when a particular cryptographic algorithm is requested but is not available in the environment.
|
|
End Rem
|
|
End Rem
|