Because of the internal dependency on GNAT.SHA*, PBKDF2 package cannot be marked as Pure, Preelaborate. This is a great shame since cryptography functions are inherently Pure (same function called with the same parameters will always return same result) and don't usually have any initialization needed that would affect elaboration order.
Only solution - use an external sha and hmac implementation, as per #1
Because of the internal dependency on GNAT.SHA*, PBKDF2 package cannot be marked as Pure, Preelaborate. This is a great shame since cryptography functions are inherently Pure (same function called with the same parameters will always return same result) and don't usually have any initialization needed that would affect elaboration order. Only solution - use an external sha and hmac implementation, as per #1