public override ProtectedMemory ComputeHashProtected(IProtectedString protectedString) { using ProtectedMemory protectedMemory = protectedString.GetProtectedUtf8Bytes(); return(ComputeHashProtected(protectedMemory)); }
public string ComputeHash(IProtectedString protectedString) { using ProtectedMemory protectedMemory = protectedString.GetProtectedUtf8Bytes(); return(ComputeHash(protectedMemory)); }
public ProtectedMemory ComputeHmacProtected(IProtectedString key, IProtectedString message) { using ProtectedMemory mKey = key.GetProtectedUtf8Bytes(); using ProtectedMemory mMessage = message.GetProtectedUtf8Bytes(); return(ComputeHmacProtected(mKey, mMessage)); }